bw.pl 98%

1 post / 0 new
#1 Sat, 10/07/2006 - 11:40
KoenRens

bw.pl 98%

Top: 16031 root 25 0 45944 41m 1756 R 10.0 2.1 46:52.10 bw.pl 24872 root 25 0 45176 42m 1756 R 10.0 2.1 34:42.87 bw.pl 17641 root 25 0 46164 42m 1756 R 10.0 2.1 29:14.42 bw.pl 28541 root 25 0 45436 42m 1756 R 10.0 2.1 20:16.50 bw.pl 9957 root 25 0 26736 22m 1720 R 10.0 1.1 0:19.33 bw.pl 20317 root 25 0 38428 33m 1732 R 9.6 1.7 15:24.99 bw.pl 11068 root 25 0 46880 41m 1756 R 9.0 2.1 40:41.12 bw.pl 30566 root 25 0 36928 33m 1728 R 8.3 1.7 5:16.73 bw.pl 18918 root 25 0 45152 41m 1756 R 6.6 2.1 53:20.24 bw.pl 13449 root 25 0 46200 42m 1756 R 6.6 2.1 24:00.46 bw.pl 12932 root 25 0 38240 33m 1732 R 6.6 1.7 10:18.14 bw.pl

All running simultaneously. This is not normal and gives about 98% CPU usage constantly. The processes die sometimes, but they just come back. We only host +/- 50 websites, and +/- 30GIG of traffic...

[[root@server~]]# du /home/scripts/logs/access_log 164376 /home/scripts/logs/access_log =>not rotated?

Crontabs: /etc/webmin/bandwidth/rotate.pl minutes selected: value 0, rest = all

Manual execution of that cron gives: Failed to run /usr/libexec/webmin/bandwidth/rotate.pl : No such file or directory at /etc/webmin/bandwidth/rotate.pl line 10.

[[root@server~]]# locate *rotate.pl /etc/webmin/bandwidth/rotate.pl /usr/libexec/webmin/virtual-server/feature-logrotate.pl

In rotate.pl:

!/usr/bin/perl

open(CONF, "/etc/webmin/miniserv.conf"); while(<CONF>) { $root = $1 if (/^root=(.)/); } close(CONF); $#35#{'#36#_CONFIG'} = "/etc/#37#"; $ENV{'WEBMIN_VAR'} = "/var/webmin"; chdir("$root/bandwidth"); exec("$root/bandwidth/rotate.pl", @ARGV) || die "Failed to run $root/bandwidth/rotate.pl : $!";

[[root@server ~]]# /#44#/sbin/lsof|grep 16031 bw.pl 16031 root cwd DIR 22,2 4096 460081 /usr /libexec/webmin/virtual-server

49#.pl 16031 root rtd DIR 22,2 4096 2 /

bw.pl 16031 root txt REG 22,2 12548 344831 /usr /bin/perl bw.pl 16031 root mem REG 22,2 14216 2638060 /lib /libutil-2.3.4.so bw.pl 16031 root mem REG 22,2 1521908 540674 /lib /tls/libc-2.3.4.so bw.pl 16031 root mem REG 22,2 212168 540676 /lib /tls/libm-2.3.4.so bw.pl 16031 root mem REG 22,2 21164 1394475 /usr /lib/perl5/5.8.5/i386-linux-thread-multi/auto/Socket/Socket.so bw.pl 16031 root mem REG 22,2 105976 540716 /lib /tls/libpthread-2.3.4.so bw.pl 16031 root mem REG 22,2 18348 1394470 /usr /lib/perl5/5.8.5/i386-linux-thread-multi/auto/File/Glob/Glob.so bw.pl 16031 root mem REG 22,2 79440 2637956 /lib /libresolv-2.3.4.so bw.pl 16031 root mem REG 22,2 13192 1393370 /usr /lib/perl5/5.8.5/i386-linux-thread-multi/auto/Digest/MD5/MD5.so bw.pl 16031 root mem REG 22,2 95444 2637924 /lib /libnsl-2.3.4.so ...

PLEASE help me, my load is way to high. Thank you!

Ps: I had to place a * in this text from the forum, remove it:[*CONF>