Disclaimer: Its a collection from lots of other site(s) and few of my notes. I would also like to declare that I am not owning lots of its content. Please feel free to contact me directly if you want me to remove any of your content, that you don't want to share to other through this blog.
Friday, 14 June 2013
mysql perfomance_tunning
perfomance_tunning
Do check things on key_buffer_size query_check_size and query_cache_type.
For a 8GB RAM system we can set the following to get few improvements:
to check the current values (at) mysql prompt:
show variables like 'key_buffer_size';
show variables like 'query_cache_size';
show variables like 'query_cache_type';
to update the values:
set global key_buffer_size=3221225472; [ 3 GB ]
set global query_cache_size=268435456; [256 MB ]
set global query_cache_type=ON;
Do monitor the memory information such as swap and physical memory after changes and you might like to check the slow query log file to find still the same query is taking long time or not.
Labels:
mysql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment