icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Private Hosting » how can i know which script causes the high load?

Private Hosting Questions about VPS, dedicated servers and colocation.

Reply
 
LinkBack Thread Tools Search this Thread
Old March 27th, 2008, 3:28 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2008
Lives in Kingdom Of Saudi Arabia
Hosted on i have my own server :)
49 posts
Gave thanks: 1
Thanked 3 times
how can i know which script causes the high load?

Hi ..

i'm experiencing some of high load on my server sometimes ..

i have contacted support and they have tweaked some settings and blocked a folder that has many php scripts they think it causes the high load ..

well .. i'm not expert in using linux .. but i want to know how can i know exactly which file or script causing the high load .. either using WHM (better) or shell..

may any 1 help me?

thx
vAMP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 3:41 PM   #2 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
7,575 posts
Gave thanks: 10
Thanked 263 times
Based on our discussion in does openX cause high load on the server? it looks like this problem is still being caused by your site getting massive HTTP traffic. An upgrade is really the only way to solve this.
__________________
Surpass Abuse & Security

unofficial IRC chat: #surpass irc.blessed.net (efnet)
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 3:57 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2008
Lives in Kingdom Of Saudi Arabia
Hosted on i have my own server :)
49 posts
Gave thanks: 1
Thanked 3 times
well i considered that i was thinking about upgrading to dual core .. but for the past 6 weeks the load never reached 1 .. and suddenly it becomes between 6 and 12 .. and it seems there r a script that causes the problem ..

so i need to find it and try to optimize it .. if it doesn't work then i don't have any other options except upgrading ..

so how could i know which script causing the high load??
vAMP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 5:22 PM   #4 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2008
Lives in Kingdom Of Saudi Arabia
Hosted on i have my own server :)
49 posts
Gave thanks: 1
Thanked 3 times
any1?
vAMP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 6:29 PM   #5 (permalink)
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,769 posts
Gave thanks: 24
Thanked 32 times
Quote:
roottails:~# top

top - 18:24:07 up 16 days, 5:35, 1 user, load average: 0.02, 0.01, 0.00
Tasks: 104 total, 2 running, 102 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.7%us, 6.0%sy, 0.0%ni, 77.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 1027472k total, 981988k used, 45484k free, 185412k buffers
Swap: 1951888k total, 0k used, 1951888k free, 543728k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11232 miles 21 0 67544 44m 6156 R 29.0 4.5 0:00.87 php5-cgi
11243 miles 20 0 67544 44m 6156 R 49.0 4.5 0:01.47 php5-cgi
16342 www-data 15 0 11064 3260 1280 S 0.3 0.3 0:00.67 apache2
...
It'll show the top processes running at that time.
I have suPHP installed, and if a PHP script is taking up a lot of CPU, it shows the username and yeah...

Hope this helps...
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 7:12 PM   #6 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2008
Lives in Kingdom Of Saudi Arabia
Hosted on i have my own server :)
49 posts
Gave thanks: 1
Thanked 3 times
Thank u very much twirp !

but it just say "php" without the script name ..

top - 02:11:07 up 37 days, 58 min, 1 user, load average: 7.24, 8.81, 8.32
Tasks: 196 total, 8 running, 186 sleeping, 2 stopped, 0 zombie
Cpu(s): 27.7%us, 24.1%sy, 0.0%ni, 8.3%id, 38.3%wa, 0.8%hi, 0.8%si, 0.0%st
Mem: 1035324k total, 897148k used, 138176k free, 93536k buffers
Swap: 2096472k total, 120k used, 2096352k free, 476604k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24952 joreyat 17 0 56320 10m 5524 R 2.8 1.0 0:00.07 php
341 root 10 -5 0 0 0 S 0.4 0.0 17:50.42 kjournald
23647 mailman 18 0 10732 6584 2512 S 0.4 0.6 0:12.52 python2.4
24118 joreyat 15 0 2304 1096 792 R 0.4 0.1 0:00.77 top
24892 mysql 15 0 506m 72m 3336 S 0.4 7.2 53:04.52 mysqld
1 root 15 0 2044 628 540 S 0.0 0.1 0:20.68 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 R 0.0 0.0 0:05.41 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.42 events/0
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
10 root 10 -5 0 0 0 S 0.0 0.0 0:05.92 kblockd/0
11 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
91 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
94 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
96 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
vAMP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 7:19 PM   #7 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
7,575 posts
Gave thanks: 10
Thanked 263 times
Looks like it's the "adv" script that's causing problems... but I don't think that disabling this script will help at all. Your server is simply serving too much HTTP traffic:
~~~
[rootjojo1 ~]# grep 'GET /' /etc/httpd/domlogs/joreyat.org | wc -l
174554
~~~

174554 requests in about 12 hours. It's going to take more than a 2.4GHz P4 with 1GB RAM to serve out this kind of traffic, especially since all of your scripts are PHP based ...
__________________
Surpass Abuse & Security

unofficial IRC chat: #surpass irc.blessed.net (efnet)
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 7:24 PM   #8 (permalink)
Registered User
Seasoned Poster
 
Joined in Feb 2008
Lives in Kingdom Of Saudi Arabia
Hosted on i have my own server :)
49 posts
Gave thanks: 1
Thanked 3 times
adv script is the openX script :s

ok can u tell me which server is best for me?

PD or PD2 ?
vAMP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 27th, 2008, 7:26 PM   #9 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
7,575 posts
Gave thanks: 10
Thanked 263 times
I would go with at least a Core 2 Duo E6300 and 2GB RAM. This will give you the best performance for your money.
__________________
Surpass Abuse & Security

unofficial IRC chat: #surpass irc.blessed.net (efnet)
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On