I have MySQL Ver 14.12 Distrib 5.0.45 server running on Multiflex Intel Blade having 8G of RAM & 8 x Intel(R) Xeon(R) CPU E5410 @ 2.33GHz.
The problems I am facing are:
For the last 3-4 days my 2G swap space is getting full & the server goes into hangged state and I need to reboot the server each time.
Output of
free -m
:total used free shared buffers cached Mem: 7971 933 7037 0 0 800 -/+ buffers/cache: 132 7838 Swap: 1983 785 1198
I have added 2G more swap space but still problem exists.
/usr/local/mysql/bin/mysql -uroot -p -e "show variables like '%cache%';"
:+------------------------------+----------------------+ | Variable_name | Value | | binlog_cache_size | 32768 | | have_query_cache | YES | | key_cache_age_threshold | 300 | | key_cache_block_size | 1024 | | key_cache_division_limit | 100 | | max_binlog_cache_size | 18446744073709551615 | | ndb_cache_check_time | 0 | | query_cache_limit | 1048576 | | query_cache_min_res_unit | 4096 | | query_cache_size | 536870912 | | query_cache_type | ON | | query_cache_wlock_invalidate | OFF | | table_cache | 1024 | | thread_cache_size | 16 |
Any suggestions?
top
orhtop
(sorted by memory), and see what process is growing over time.