MySQL 쿼리 캐시 설정 확인

MySQL 쿼리 캐시 설정 확인

1 방법[ | ]

root@jmnote02:~# cat /etc/mysql/my.cnf  | grep -i query_cache
query_cache_limit	= 1M
query_cache_size        = 16M
mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+----------+
| Variable_name           | Value    |
+-------------------------+----------+
| Qcache_free_blocks      | 1575     |
| Qcache_free_memory      | 10945864 |
| Qcache_hits             | 1236902  |
| Qcache_inserts          | 776447   |
| Qcache_lowmem_prunes    | 368100   |
| Qcache_not_cached       | 20841    |
| Qcache_queries_in_cache | 3475     |
| Qcache_total_blocks     | 8586     |
+-------------------------+----------+
8 rows in set (0.00 sec)

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}