Web Hosting Talk







View Full Version : My Cpu is heavaly loaded


jkcity
10-08-2001, 04:18 PM
Its never been like this and my traffic has gone down its usually lightly loaded

Over the past fifteen minutes, the CPU has been heavily loaded.

15 minute CPU load average is 5.31


what could be causing it , I only have my site on the server and I have only seen it ever lighted loaded and I am sure traffic is way down I can't tell thougth as I don't have any stats on my server.

Is there anyway to find out what processes are causing the cpu to be heavely loaded.

mhosang
10-08-2001, 04:30 PM
telnet / ssh to your machine and type su for root access...

then type

ps -ax

to view all the current processes on your server...

you can kill one process with
kill pid
where pid stands for the process ID

jkcity
10-08-2001, 05:03 PM
I get a whole lot of these


25651 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
25988 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26021 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26030 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26031 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26073 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26491 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26822 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
26849 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
27137 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
29009 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
29351 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
29772 ? S 0:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf



The load has started to drop now but still way above normal, but I did what you said and it was just a load of them that showed up.

Palm
10-08-2001, 05:08 PM
In shell type. "top"

It will show you what process it running and how much CPU and MEMORY % it's taking.

jkcity
10-08-2001, 05:18 PM
Do these processes look normal, sorry for stretching the post


PID TTY STAT TIME COMMAND
1 ? S 0:09 init
2 ? SW 0:01 [kflushd]
3 ? SW 0:09 [kupdate]
4 ? SW 0:00 [kpiod]
5 ? SW 0:13 [kswapd]
6 ? SW< 0:00 [mdrecoveryd]
310 ? S 209:55 syslogd -m 0
319 ? S 0:00 klogd
349 ? S 0:01 crond
378 ? S 0:02 /usr/sbin/snmpd -f
390 ? S 0:36 inetd
419 ? S 0:00 named
428 ? S 0:02 /usr/sbin/httpd -f /etc/admserv/conf/httpd.conf
450 ? S 0:51 /usr/sbin/httpd -f /etc/admserv/conf/httpd.conf
451 ? S 0:25 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
481 ? S 0:00 perl /home/webmin-0.84/miniserv.pl /etc/webmin/minise
525 ? SN 1:19 /usr/bin/postmaster
592 ? S 0:01 /home/chiliasp/asp-apache-3000/caspd
593 ? S 0:00 /home/chiliasp/asp-apache-3000/caspd
594 ? S 0:05 /home/chiliasp/asp-apache-3000/caspd
596 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
635 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
636 ? R 130666:47 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt
639 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
640 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
643 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
644 ? S 0:00 /home/chiliasp/asp-apache-3000/caspeng -p:3001 -mt:5
648 ? S 0:00 /home/chiliasp/admin/bin/admd -f /home/chiliasp/admin
654 ? SW 0:00 [admd]
689 ? S 0:00 /home/chiliasp/admin/bin/admdog
690 ? S 0:00 /home/chiliasp/admin/bin/admdog
691 ? S 0:04 /home/chiliasp/admin/bin/admdog




I tried that top command and it give me this, doe shtis look normal?


PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
636 root 20 0 2880 292 172 R 0 77.0 0.1 2177h caspeng
1281 root 7 0 932 932 680 R 0 3.2 0.3 0:00 top
1334 admin 15 0 1424 1424 948 R 0 1.9 0.5 0:00 ads.pl
16740 httpd 0 0 8060 4864 3468 S 0 0.1 1.8 7:40 httpd
10945 httpd 0 0 7052 2816 2436 S 0 0.1 1.0 2:10 httpd
27839 httpd 0 0 7080 2844 2396 S 0 0.1 1.1 0:05 httpd
4173 httpd 0 0 6940 2696 2412 S 0 0.1 1.0 0:03 httpd
16289 httpd 0 0 6904 2656 2372 S 0 0.1 1.0 0:02 httpd
1 root 0 0 120 68 48 S 0 0.0 0.0 0:09 init
2 root 0 0 0 0 0 SW 0 0.0 0.0 0:01 kflushd
3 root 0 0 0 0 0 SW 0 0.0 0.0 0:09 kupdate
4 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kpiod
5 root 0 0 0 0 0 SW 0 0.0 0.0 0:13 kswapd
6 root -20 -20 0 0 0 SW< 0 0.0 0.0 0:00 mdrecoveryd
310 root 0 0 216 160 116 S 0 0.0 0.0 209:55 syslogd
319 root 0 0 504 176 124 S 0 0.0 0.0 0:00 klogd
5:51pm up 102 days, 4:09, 1 user, load average: 2.92, 3.39, 3.89
149 processes: 146 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 28.9% user, 71.0% system, 0.0% nice, 0.0% idle
Mem: 257816K av, 252740K used, 5076K free, 195744K shrd, 90264K buff
Swap: 131532K av, 64496K used, 67036K free 76336K cached

Michael
10-08-2001, 05:21 PM
It looks like aspeng is hung. As root enter the command


kill 636


Regards
Mike

jkcity
10-08-2001, 05:40 PM
It don't seem to be killing the aspeng process, does that mean that thats important in some way it says its been running for about 2100 hours so it must be somthing that has to run I guess iTs taking up 50% of the cpu thought so if its not needed it would be good to kill it.

mhosang
10-08-2001, 05:58 PM
the caspeng is from ChiliSoft ASP

If you don't use asp scripting, just turn it off....

If you don't want to kill this process, try rebooting your server... this should solve your problem...

jkcity
10-08-2001, 06:05 PM
Originally posted by mhosang
the caspeng is from ChiliSoft ASP

If you don't use asp scripting, just turn it off....

If you don't want to kill this process, try rebooting your server... this should solve your problem...

Yer I am trying a reboot now

where would I switch of asp? do I just make sure its switched off for each site or is there somewhere else you can turn it off completly as I have no plans to use it and its taking up loads of cpu for reasons i don't understand

jkcity
10-08-2001, 07:15 PM
Thanks for all your help I managed to get the it back to normal and better I have never had my site running so fast after I rebooted and turned off everything I did not need.