Hello,
I’m running Suse 11, in a vmware esx environment. The server setup is 2GB RAM, 2GB Swap, two AMD Processors.
Its being used as a LAMP server. Over the past couple of weeks, the MySQL has been filling up the memory and swap, the processor goes to 100% use and the system grinds to a halt. Using top shows:
top - 15:46:25 up 22:22, 4 users, load average: 17.59, 5.89, 2.22
Tasks: 114 total, 25 running, 89 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us,100.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2075172k total, 2026180k used, 48992k free, 212k buffers
Swap: 2216960k total, 2216960k used, 0k free, 4480k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20 root 15 -5 0 0 0 R 2 0.0 2:21.47 kswapd0
1 root 20 0 772 32 0 R 2 0.0 0:05.50 init
10223 mysql 20 0 608m 6116 256 S 1 0.3 4:58.08 mysqld
2154 root 20 0 1800 332 156 R 1 0.0 0:02.98 klogd
9142 dfse11 20 0 9252 496 296 R 1 0.0 0:04.76 sshd
13128 wwwrun 20 0 657m 248m 1280 R 1 12.3 1:42.37 httpd2-prefork
29755 wwwrun 20 0 94916 1728 432 D 1 0.1 0:04.32 httpd2-prefork
3009 wwwrun 20 0 861m 192m 1244 R 1 9.5 2:36.29 httpd2-prefork
28208 wwwrun 20 0 336m 225m 1652 R 1 11.1 0:57.50 httpd2-prefork
2151 root 20 0 2200 264 124 R 1 0.0 0:05.96 syslog-ng
5124 wwwrun 20 0 865m 190m 1348 R 1 9.4 2:35.50 httpd2-prefork
7201 root 20 0 14856 1004 208 R 1 0.0 0:19.98 smbd
15942 wwwrun 20 0 437m 191m 1636 R 1 9.4 1:59.64 httpd2-prefork
20906 wwwrun 20 0 204m 114m 344 R 1 5.7 0:27.88 httpd2-prefork
29752 root 20 0 1728 256 144 R 1 0.0 0:07.18 modprobe
29754 root 20 0 94916 1296 76 R 1 0.1 0:04.56 httpd2-prefork
29756 root 20 0 94916 1388 156 R 1 0.1 0:04.28 httpd2-prefork
I know that there are no exceptional queries being made to the database, I’ve checked over and over, I’ve tried various settings found on google, increasing various MySQL buffer and cache sizes, and altered the PHP code to use the mysqli extension rather than mysql.
Yet it still grinds to a halt.
An alternative I’ve been given is to use an MS-SQL cluster. Something I’m not too keen on.
Can anyone suggest anything? The system is much the same as the SUSE 9 setup that was running previously without any problems.
Thanks,
Karl.