Server Down, Many Php Processes Running

Hi All,





I am having a problem on my server, the server often down. So many PHP processes running makes memory leak.

I use it for 2 websites, cs cart 4.1

I use a VPS with 1GB RAM



I get an email notification as follows:

The chkservd sub-process with pid 11820 ran for 3601 seconds. This sub-process was terminated when it exceeded the time allowed between checks, which is 3600 seconds. To determine why, you can check /var/log/chkservd.log and /usr/local/cpanel/logs/tailwatchd_log.

You likely received this notification as a symptom of a larger problem. If your server is experiencing a high load, we recommend investigating the cause. If you continue to receive this notification, it is likely that your system is unable to handle demand or a misconfiguration is delaying restarts.

If you are sure that no misconfigurations exist, you should consider gradually increasing the following options in WHM's “Tweak Settings” feature: “The number of times ChkServd will allow a previous check to complete before terminating the check” and/or “The number of seconds between ChkServd service checks”.

Server: helios.masterweb.com

Primary IP: 103.11.74.50

Service: chkservd

Notification Type: hang



Memory Information: • Used: 925MB

• Available: 72MB

• Installed: 996MB

Load Information: 163.00 167.21 166.30

Uptime: 0 days, 3 hours, 19 seconds

IOStat Information: avg-cpu: %user %nice %system %iowait %steal %idle

2.61 0.00 0.69 73.78 0.10 22.82

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

sda 138.69 3531.99 1361.35 42379076 16334336

ChkServd Version: 15.4





Ps aux result like this :

502 3942 0.3 1.9 210168 19548 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4149 0.3 2.1 210228 21840 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4150 0.3 2.0 209904 20836 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4161 0.4 2.4 208648 24648 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4164 0.4 2.5 207884 25744 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4165 0.3 2.1 209404 21488 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4167 0.3 1.9 209404 19860 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4168 0.3 1.9 209396 19852 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4169 0.3 1.9 209192 19636 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4170 0.3 1.8 209400 18472 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4171 0.4 1.2 192792 12984 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4174 0.4 2.4 207616 25400 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4175 0.3 1.8 209396 19376 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4176 0.3 1.9 209660 19660 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4177 0.3 2.1 209396 22152 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4178 0.3 1.9 209400 19612 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4180 0.3 1.9 209400 19880 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4182 0.3 1.9 209452 20072 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4183 0.3 1.9 209396 19840 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4184 0.3 1.9 208928 19484 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4185 0.3 1.9 209400 19912 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4186 0.3 1.8 209408 18632 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4189 0.3 1.9 209400 19708 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4190 0.3 2.0 209412 20696 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4191 0.3 1.9 209400 19824 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4192 0.3 1.9 209180 19868 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4193 0.3 1.9 209396 19632 ? D 08:30 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4272 0.3 0.9 205000 9872 ? S 08:31 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4281 0.4 1.5 202948 15392 ? D 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4284 0.1 1.6 192540 16500 ? S 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4285 0.2 1.6 192540 16508 ? S 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4286 0.1 1.6 192800 16684 ? S 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4287 0.1 1.6 192800 16680 ? S 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4288 0.2 1.6 192800 16680 ? S 08:32 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4289 0.1 1.6 192800 16680 ? S 08:33 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4290 0.1 1.6 192800 16684 ? S 08:33 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 502 4291 0.2 1.6 192800 16668 ? S 08:33 0:00 /usr/bin/php /home/rodalinkcoid/public_html/store-01/index.php 505 4292 0.1 0.8 185256 8600 ? D 08:33 0:00 /usr/bin/php /home/prolindgroup/public_html/los/index.php 502 4293 0.0 0.1 14144 1496 ? D 08:33 0:00 /opt/suphp/sbin/suphp 502 4295 0.0 0.1 14144 1496 ? D 08:33 0:00 /opt/suphp/sbin/suphp



Anyone can help?

Very small amount of memory to run a VPS and a commercial site. Suggest you go up to something more reasonable like 4GB and you will probably see your problems go away. Your system is probably spending all its time paging memory in and out of disk.

[quote name='tbirnseth' timestamp='1413055544' post='193927']

Very small amount of memory to run a VPS and a commercial site. Suggest you go up to something more reasonable like 4GB and you will probably see your problems go away. Your system is probably spending all its time paging memory in and out of disk.

[/quote]



I've found the cause, there are tables that crashes / corrupted. After the repair I could go back to normal. This happened after I added 1 new storefront.

Thank you for your submission, is there a good reference for hosting cs cart? Target market is asia.

DB will creash when it runs out of memory causing tables to need repair. Tables will NEVER need to be repaired in normal operations without some fatal event hitting the db server.

[quote name='tbirnseth' timestamp='1413233733' post='194067']

DB will creash when it runs out of memory causing tables to need repair. Tables will NEVER need to be repaired in normal operations without some fatal event hitting the db server.

[/quote]



Thank you, maybe I will upgrade my server