SQLServer Slow performance with Higher RAM

时间:2016-10-20 13:01:17

标签: sql-server sql-server-2008-r2

I am using Sqlserver express 2008 (64bit) on Windows Server 2012R2 with 56GB RAM.

I have a webapplication written in c# asp.net MVC5 hosted on IIS 8.5 64bit. This application has been hosted as a 32 bit application as it has other 32 bit dependencies.

The data retrieval happens to be extremely slow, i.e. it takes approx 1.2 mins to run a simple query which returns 5 records. I have configured sql server min server memory to 8GB and max to 28 GB (if that matters, since its express edition I dont think it does matter)

The resource monitor shows the following statistics :

  • 6,82,000 Virtual Memory
  • 4,27,000 Working Virtual Memory
  • 1467000 sharable memory
  • 82000 Private memory

The problem is that the exact same setup works perfectly fine on same config with 8GB RAM.


I have 2 questions :

  1. Could this be a SQLserver bottleneck? If yes then how to go ahead with the troubleshooting.

  2. Does 32 bit application connecting to a 64bit instance of sqlserver have performance issues? Should I try a 32 bit instance instead.

1 个答案:

答案 0 :(得分:1)

当用户说我的应用程序/查询运行缓慢时,每个SQL DBA都存在。记忆很可能不是你的问题。通常,这将是查询的参数嗅探问题,表上的索引编制或其他一些问题。有许多方法可以对此进行故障排除,并且有许多脚本可以运行以查明发生的情况。我建议使用GITHUB提供的Brent Ozar工具包,并使用SP_BlitzFirst,SP_BlitzIndex和sp_BlitzCache。

Brent Ozar's First Responder Kit