| Private Hosting Questions about VPS, dedicated servers and colocation. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#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 ![]() |
|
|
|
|
|
#2 (permalink) |
|
Surpass Abuse Admin
Super #1
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) |
|
|
|
|
|
#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?? |
|
|
|
|
|
#5 (permalink) | |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,769 posts
Gave thanks: 24
Thanked 32 times
|
Quote:
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... |
|
|
|
|
|
|
#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 |
|
|
|
|
|
#7 (permalink) |
|
Surpass Abuse Admin
Super #1
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:
~~~ [root jojo1 ~]# grep 'GET /' /etc/httpd/domlogs/joreyat.org | wc -l174554 ~~~ 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) |
|
|
|
|
|
#9 (permalink) |
|
Surpass Abuse Admin
Super #1
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) |
|
|
|