server load is higher than 40. is it dangerous?

Batmunkh

Member
Jul 19, 2008
8
0
51
server load is higher than 40. is it dangerous? our server has 4 CPUs. also where can i find logs....
 

yapluka

Well-Known Member
Dec 24, 2003
301
1
168
France
cPanel Access Level
Root Administrator
A normal load average is typically 1 per CPU = 4 in your case.

You'll find most important logs in :
/var/log/
/etc/httpd/logs/
/usr/local/cpanel/logs/

This being said, if you don't know where the logs are, maybe you should consider to get management services - at least until you're comfortable enough to manage your server by yourself ? :)
 

Batmunkh

Member
Jul 19, 2008
8
0
51
few days ago it was fine. i couldn't find any mysql log from my server. i'm not sysadmin. but i use cpanel to manage my server. :D
 

Batmunkh

Member
Jul 19, 2008
8
0
51
if i disable alternative configuration of suPHP it's fine. but htaccess mod_rewrite doesn't work. If i enable suPHP it loads server load very high. how should i fix it?


*********************
top - 15:30:28 up 2 days, 21:31, 1 user, load average: 33.77, 30.94, 33.81
Tasks: 378 total, 14 running, 360 sleeping, 2 stopped, 2 zombie
Cpu(s): 73.6%us, 23.0%sy, 2.6%ni, 0.2%id, 0.0%wa, 0.0%hi, 0.7%si, 0.0%st
Mem: 6105748k total, 5325392k used, 780356k free, 106420k buffers
Swap: 12289716k total, 158176k used, 12131540k free, 3879440k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
17084 mysql 24 0 643m 118m 4408 S 109 2.0 267:24.58 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cp.alguu.net.pid --skip-external-locking
10949 munin 30 10 98756 11m 4916 R 11 0.2 0:00.32 /usr/local/bin/perl -w /usr/share/munin/munin-graph --cron
10503 azmn 15 0 135m 28m 6796 S 8 0.5 0:00.66 php5
10927 azmn 15 0 135m 28m 6828 S 6 0.5 0:00.19 php5
10999 azmn 15 0 135m 28m 6808 S 6 0.5 0:00.19 php5
11002 azmn 16 0 136m 27m 6660 S 6 0.5 0:00.18 php5
11032 azmn 15 0 134m 26m 6608 S 6 0.5 0:00.17 php5
11040 azmn 16 0 134m 26m 6608 S 6 0.5 0:00.17 php5
11039 azmn 15 0 130m 22m 6340 S 4 0.4 0:00.11 php5
11041 azmn 16 0 130m 22m 6340 S 4 0.4 0:00.11 php5
11045 azmn 17 0 129m 21m 6024 R 3 0.4 0:00.10 php5
10943 azmn 16 0 127m 19m 5532 S 3 0.3 0:00.09 php5
10947 azmn 17 0 127m 19m 5532 S 3 0.3 0:00.09 php5
10909 azmn 16 0 127m 19m 5532 S 3 0.3 0:00.08 php5
10911 azmn 16 0 127m 19m 5532 S 3 0.3 0:00.08 php5
10941 azmn 17 0 127m 19m 5532 S 3 0.3 0:00.08 php5
10883 azmn 15 0 135m 28m 6816 S 2 0.5 0:00.24 php5
10897 azmn 16 0 135m 28m 6808 S 2 0.5 0:00.18 php5
11044 azmn 17 0 123m 16m 4472 R 2 0.3 0:00.06 php5
11049 azmn 17 0 123m 16m 4472 R 2 0.3 0:00.06 php5
 

yapluka

Well-Known Member
Dec 24, 2003
301
1
168
France
cPanel Access Level
Root Administrator
suphp is good for a shared environment with no very active sites. Did you try to use fastcgi instead ?
Also is it normal that azmn is running so many php processes ?

When running suphp, top -c will show the full path of the php scripts that are running.
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
When php is in cgi/suphp mode it is less efficient, so the load tends to be higher. If you change it to dso mode the load should drop, but that is less secure.

According to your output it looks like most of the traffic is from 1 user.