PDA

View Full Version : How To Optimize Script (Pls. Help Urgent!)


princeedward
08-11-2008, 03:45 PM
hi to all...i'm totally no knowledge about all of this...so want to please anyone out there and guide me how to solve this problem...and also need best advice too how to avoid this problem next time...

my site is being suspended from host server due to server overload...



top - 00:24:25 up 7 days, 56 min, 3 users, load average: 18.10, 47.62, 32.36
Tasks: 212 total, 9 running, 202 sleeping, 0 stopped, 1 zombie
Cpu(s): 72.8% us, 23.6% sy, 0.0% ni, 3.3% id, 0.3% wa, 0.0% hi, 0.0% si
Mem: 2075740k total, 1396092k used, 679648k free, 83252k buffers
Swap: 2096472k total, 18348k used, 2078124k free, 753436k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19524 mysite 19 0 31884 17m 6284 R 6.6 0.9 0:00.20 /usr/bin/php /home/mysite/public_html/cmps_index.php
19530 mysite 19 0 29708 15m 6256 R 6.6 0.8 0:00.20 /usr/bin/php /home/mysite/public_html/misc.php
19534 mysite 19 0 32692 17m 6256 R 6.6 0.9 0:00.20 /usr/bin/php /home/mysite/public_html/cmps_index.php
19533 mysite 19 0 30760 16m 6216 R 6.3 0.8 0:00.19 /usr/bin/php /home/mysite/public_html/arcade.php
19519 mysite 19 0 29848 15m 6244 R 5.3 0.8 0:00.16 /usr/bin/php /home/mysite/public_html/horoscopes.php



top - 00:24:40 up 7 days, 56 min, 3 users, load average: 16.16, 45.74, 31.99
Tasks: 212 total, 14 running, 198 sleeping, 0 stopped, 0 zombie
Cpu(s): 78.7% us, 21.3% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2075740k total, 1432124k used, 643616k free, 83712k buffers
Swap: 2096472k total, 18348k used, 2078124k free, 755664k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19676 mysite 19 0 32172 17m 6276 R 12.0 0.9 0:00.36 /usr/bin/php /home/mysite/public_html/cmps_index.php
19666 mysite 20 0 31452 15m 6228 R 6.6 0.8 0:00.20 /usr/bin/php /home/mysite/public_html/misc.php
19679 mysite 19 0 31424 15m 6252 R 6.3 0.8 0:00.19 /usr/bin/php /home/mysite/public_html/misc.php
19689 mysite 18 0 30068 15m 6252 R 6.3 0.8 0:00.19 /usr/bin/php /home/mysite/public_html/misc.php
19667 mysite 19 0 30320 15m 6216 R 5.6 0.8 0:00.17 /usr/bin/php /home/mysite/public_html/awards.php
19688 mysite 19 0 32152 15m 6212 R 4.0 0.8 0:00.12 /usr/bin/php /home/mysite/public_html/cmps_index.php
19653 mysite 21 0 32792 17m 6244 R 3.3 0.9 0:00.34 /usr/bin/php /home/mysite/public_html/cmps_index.php
19693 mysite 18 0 28520 14m 5964 R 3.3 0.7 0:00.10 /usr/bin/php /home/mysite/public_html/register.php


thanks in advance for anybody's help and i really appreciate it...

best regards...

Lynne
08-12-2008, 03:00 AM
If you need help optimizing your server, you should post in the Server Configuration (http://www.vbulletin.com/forum/forumdisplay.php?f=14) forum over at vb.com. Make sure you read and post all the required information outlined in this thread - [Required]: Info for optimisation / troubleshooting requests [31/03/08 update] (http://www.vbulletin.com/forum/showthread.php?t=70117)