Help - Search - Members - Calendar
Full Version: Stats/Server Overload
The Planet Forums > System Administration > Load Balancing
Fisherman
I just got an e-mail from the hamster that lives in my server. Can anyone help me to lower or balance the load on my server? I'm an ignoramus when it comes to this kind of thing.

QUOTE
IMPORTANT: Do not ignore this email.
 This is cPanel stats runner on something.something.com!
 While processing the log files for user lockup, the cpu has been  
maxed out for more then a 6 hour period.  The current load/uptime line on the server at the time of this email is 14:13:56  up 193 days, 23:33,  0 users,  load average: 1.42, 1.53, 1.63
 You should check the server to see why the load is so high and take  
steps to lower the load.  If you want stats to continue to run even with a high load; Edit /var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run /usr/local/cpanel/startup afterwards to pickup the changes).
Fisherman
El Bumpo!

Has anyone dealt with this problem?
nForcer
You bumped your own topic...after 2 hours and 12 minutes? icon_rolleyes.gif
Guspaz
He bumped his own topic even though it was not only on the first page, but was still the top post.
eddy2099
Yeah and it doesn't seems to do with the topic of Load Balancing at least not in the true sense.

The reason why you are getting the error was explained in the warning email sent by the system, your load is above 1.0 . The solution would be that if your load is perpetually that high then to do the following as described in the email

QUOTE
If you want stats to continue to run even with a high load; Edit /var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run /usr/local/cpanel/startup afterwards to pickup the changes).
Fisherman
QUOTE (eddy2099)
Yeah and it doesn't seems to do with the topic of Load Balancing at least not in the true sense.  

The reason why you are getting the error was explained in the warning email sent by the system, your load is above 1.0 . The solution would be that if your load is perpetually that high then to do the following as described in the email

QUOTE
If you want stats to continue to run even with a high load; Edit /var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run /usr/local/cpanel/startup afterwards to pickup the changes).


I don't want it to run that high. What I asked is how do I lower the load. I don't know much about this stuff and I hate to waste the techs time unless I have to.

If I don't bump my own, nobody else will. True? icon_wink.gif
nForcer
Waste it? What the hell do you think you're PAYING them for!!!
eddy2099
The 1.something load is not really that high as most servers including the celeron 2.4 should handle it without an issue. The load 1 is not 100% of the CPU load but it is just some benchmark used in the past which probably refers to that of an ancient CPU class.

Setting the ExtraCPU to 1 or 2 would not crash and burn the machine. It will just get your stats generated.

If your sites are generally busy and you do not want to overload it then do what I do, get another server and start moving some sites over. The other alternative may be to find out why there is the load and if it is generated by other non-web activities then you could use cron to space out the time the services get processed.

A faster machine would still show the same load factor but it is no way an indication that the system is fried. I think it was mentioned that some seen load of 9 or more and if they can see it, the system should be able to handle it.

In my books, it is really a non-issue.
Fisherman
QUOTE (eddy2099)
The 1.something load is not really that high as most servers including the celeron 2.4 should handle it without an issue. The load 1 is not 100% of the CPU load but it is just some benchmark used in the past which probably refers to that of an ancient CPU class.  

Setting the ExtraCPU to 1 or 2 would not crash and burn the machine. It will just get your stats generated.  

If your sites are generally busy and you do not want to overload it then do what I do, get another server and start moving some sites over. The other alternative may be to find out why there is the load and if it is generated by other non-web activities then you could use cron to space out the time the services get processed.  

A faster machine would still show the same load factor but it is no way an indication that the system is fried. I think it was mentioned that some seen load of 9 or more and if they can see it, the system should be able to handle it.  

In my books, it is really a non-issue.


I see. I guess I'll be alright since mine's not a "Celeryon". icon_wink.gif I set it to 1.

Thanks!
Fisherman
Now it's running at 5.14. Same problem. There must be something I can do to lower the load. Why does this keep happening? Any good explainations?
Altec
whats using the cpu at the time...

"http://IP:2086/scripts2/top"
klaude
Aye. Check `top` to see whats gumming up the works. From there investigate its log file and see what you can do about lightening its load.
Fisherman
Here it is. Load is now at 2.6.
********************************
Pid Owner Priority Cpu % Mem % Command
17928 root 0 0.7 0.0 /usr/local/apache/bin/httpd -DSSL
8 root 0 0.1 0.0 0 kscand/Normal
25288 root 0 0.1 0.2 0 top -n 2 -b -
1 root 0 0.0 0.0 init
3 root 0 0.0 0.0 0 keventd
4 root 0 0.0 0.0 0 kapmd
5 root 19 0.0 0.0 0 ksoftirqd_CPU
10 root 0 0.0 0.0 0 bdflush
6 root 0 0.0 0.0 0 kswapd
7 root 0 0.0 0.0 0 kscand/DMA
9 root 0 0.0 0.0 0 kscand/HighMe
11 root 0 0.0 0.0 0 kupdated
12 root 0 0.0 0.0 0 mdrecoveryd
18 root 0 0.0 0.0 0 scsi_eh_0
76 root 0 0.0 0.0 0 khubd
3499 root 0 0.0 0.0 syslogd -m 0
3503 root 0 0.0 0.0 klogd -x
3580 root 0 0.0 0.0 3dmd
3604 root 0 0.0 0.0 /usr/sbin/sshd
3618 root 0 0.0 0.0 xinetd -stayalive -pidfile /var/run/xinetd.pid
3636 root 0 0.0 0.2 chkservd
3745 root 0 0.0 0.0 crond
3755 root 0 0.0 0.0 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/something.server.pid
3789 mysql 0 0.0 1.1 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/server.pid --skip-locking
4280 named 0 0.0 2.9 /usr/sbin/named -u named
4438 root 0 0.0 0.0 rhnsd --interval 240
4450 root 0 0.0 0.1 /usr/bin/perl /usr/local/bin/ipalert_statd
4482 root 0 0.0 0.0 /usr/sbin/portsentry -tcp
4495 root 0 0.0 0.0 /sbin/mingetty tty1
4496 root 0 0.0 0.0 /sbin/mingetty tty2
4497 root 0 0.0 0.0 /sbin/mingetty tty3
4498 root 0 0.0 0.0 /sbin/mingetty tty4
4499 root 0 0.0 0.0 /sbin/mingetty tty5
4500 root 0 0.0 0.0 /sbin/mingetty tty6
4272 root 0 0.0 0.0 CROND
4273 root 0 0.0 0.0 0 upcp
4292 mailnull 0 0.0 0.0 0 exim
5957 mailnull 0 0.0 0.2 /usr/bin/perl /usr/local/cpanel/bin/eximstats
6018 nobody 0 0.0 0.0 /usr/local/cpanel/bin/startmelange
6020 nobody 0 0.0 0.0 entropychat
1892 mailman 0 0.0 0.0 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s start
1894 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
1895 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
1896 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
1897 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
1898 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
1899 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
1900 mailman 0 0.0 0.2 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
1901 mailman 0 0.0 0.1 /usr/bin/python2 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
1970 root 0 0.0 0.1 cppop - accepting on port 110
1949 mailnull 0 0.0 0.0 /usr/sbin/exim -bd -q60m
1953 mailnull 0 0.0 0.0 /usr/sbin/exim -tls-on-connect -bd -oX 465
2198 root 0 0.0 0.0 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
2224 root 0 0.0 0.1 antirelayd
22823 nobody 0 0.0 0.0 proftpd: (accepting connections)
15455 root 0 0.0 2.0 spamd child
16649 root 0 0.0 1.0 spamd child
20210 root 0 0.0 1.7 spamd child
20516 root 0 0.0 2.7 spamd child
23898 root 0 0.0 3.1 spamd child
19811 cpanel 0 0.0 0.2 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf
19814 root 0 0.0 0.1 cpsrvd - waiting for connections
25284 root 0 0.0 0.5 whostmgrd - serving 127.0.0.1
25285 root 0 0.0 3.3 /usr/local/cpanel/whostmgr/bin/whostmgr2 ./top
Fisherman
Anybody?
Fisherman
Well, thanks for all of your help guys. btw - That was sarcasm. Now the load's occasionally over 10! I need some help!
Matt2k
Hire a technician. SM/TP provide them at a pretty good rate.
nibb
Well if its helps. I had server once wich had the same problem, even after all acccounts or domains where shut down, the load was always up. Finally i discovered the issue. Well serverbeach techs did. I was hacked and had a worm wich was causing the server to crash.
My idea would be to do this: Start suspendind account or domains one per one, to see if the load gets off, it does you know where the problem is. If it even after all accounts are suspended still is overload, you probably have so worm or spam software installed.
therealmccoy
QUOTE (Fisherman)
Now the load's occasionally over 10! I need some help!


Did you look "Apache Status" to see what site was running the high load? Just look at the cpu/SS/Req/Connection. If you see a site that is slowing your server down, suspend it or something. The site that is slowing the server down should be using the highest cpu load.


-TRM.
fpscops.com
AUG 16 to SEPT 30 to NOV 20..rofl
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.