If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > query cache problem.....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-12, 23:25
chandu123 chandu123 is offline
Registered User
 
Join Date: Nov 2011
Posts: 17
query cache problem.....

Hi,

I am using workbench to know the status of the server and the query cache hit rate is 0.20 and key efficiency is 100% and the status variables are

mysql> SHOW GLOBAL STATUS LIKE 'Qcache%';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| Qcache_free_blocks | 54 |
| Qcache_free_memory | 26309232 |
| Qcache_hits | 934615 |
| Qcache_inserts | 454680839 |
| Qcache_lowmem_prunes | 230756 |
| Qcache_not_cached | 1700867 |
| Qcache_queries_in_cache | 6167 |
| Qcache_total_blocks | 12443 |
+-------------------------+-----------+
8 rows in set (0.00 sec)

please help me in improving query cache hit rate????
Reply With Quote
  #2 (permalink)  
Old 01-31-12, 04:11
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
You are missing query_cache_limit. This parameter defines the maximum result set size stored in the query cache. If your Qcache_hits to Qcache_inserts is low (which it appears to be here) this can suggest that your query_cache_limit is too low and should be increased. All other parameters look good.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 01-31-12, 04:38
chandu123 chandu123 is offline
Registered User
 
Join Date: Nov 2011
Posts: 17
thanks Ronan,
query_cache_limit variable is set to 1MB in my.cnf.Can it be increased to 2MB???
Reply With Quote
  #4 (permalink)  
Old 01-31-12, 08:04
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Change it and see the results. If it still results in poor usage of query cache then increase it again.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On