Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

Adhoc SQL hit ratio 6% ?please tell me how to improve it

$
0
0

i am using an embarcadero tool.it always shows an alert for adhoc sql hit ratio as it varies from 6% to 7%.how can i get a value above 80% for adhoc sql hit ratio. What should i be checking for this alert.how to know if SQL Server is configured to use as much physical memory as possible by checking the Max Server??

please help me to slove this issue any help is really appreciated thanks in advance

the documentation by embarcadero says Ad Hoc SQL Hit Ratio • Metrics • Troubleshooting When an ad hoc SQL statement is issued, the query plan is then stored in the SQL Server procedure cache area. Ifthe identical ad hoc statement is launched in the future, SQL Server uses the query plan already stored in the procedure cache if it is still there. The Ad Hoc SQL Hit Ratio statistic defines the percentage of times that a query plan for an ad hoc SQL statement is found in the procedure cache. A high ad hoc hit rate is desirable, but is harder to maintain at a high level than something like a procedure cache hit rate. Therefore, an 80% or greater ad hoc cache hit rate is a good performance benchmark for code reference. Note that when a database is first started, the ad hoc cache hit rate will not be at an optimal level because all code being used will be relatively new, and as such, must be read in from disk and placed into the cache. If, however, after a solid hour or two of steady database time, the ad hoc cache hit rate has not increased to desirable levels, you should look into the possibility of increasing the amount of memory allocated to the cache. Troubleshooting First, ensure SQL Server is configured to use as much physical memory as possible by checking the Max Server Memory configuration option. Also, consider increasing your SQL Server Min Memory parameter to allocate more memory to SQL Server. (To obtain optimal values for these parameters, an option is to install more physical


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>