collectinfo.pl makes %100 CPU

Hi, Today when i saw websites are too slow. I checked virtualmin panel and i saw %100 CPU. Problem is /usr/libexec/webmin/virtual-server/collectinfo.pl. When i checked it in ssh:

[root@sunucu ~]# /usr/libexec/webmin/virtual-server/collectinfo.pl
Can't locate ./virtual-server-lib.pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/libexec/webmin/virtual-server/collectinfo.pl line 7.

Well.. I reboot server but problem still exists. I didnt change anything in last months.. only updated with yum update.

Operating system CentOS Linux 7.4.1708
Webmin version 1.860
Usermin version 1.720
Virtualmin version 6.01
Theme version Authentic Theme 18.49-9
Status: 
Active

Comments

Body: View changes
Kernel and CPU
Linux 3.10.0-693.5.2.el7.x86_64 on x86_64

Yesterday i did an update and probably something broke in that. Here is yum.log:

Dec 02 09:53:39 Updated: systemd-libs-219-42.el7_4.4.x86_64
Dec 02 09:53:39 Updated: 1:grub2-common-2.02-0.65.el7.centos.2.noarch
Dec 02 09:53:40 Installed: 1:grub2-tools-minimal-2.02-0.65.el7.centos.2.x86_64
Dec 02 09:53:41 Installed: 1:grub2-tools-2.02-0.65.el7.centos.2.x86_64
Dec 02 09:54:00 Updated: webmin-1.860-1.noarch
Dec 02 09:54:01 Updated: kmod-20-15.el7_4.4.x86_64
Dec 02 09:54:02 Updated: openssh-7.4p1-13.el7_4.x86_64
Dec 02 09:54:02 Updated: 1:mariadb101u-config-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:03 Updated: 1:mariadb101u-common-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:03 Updated: 1:mariadb101u-libs-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:04 Updated: 1:mariadb101u-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:05 Updated: 1:mariadb101u-errmsg-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:07 Installed: 1:grub2-tools-extra-2.02-0.65.el7.centos.2.x86_64
Dec 02 09:54:07 Updated: 1:grub2-pc-modules-2.02-0.65.el7.centos.2.noarch
Dec 02 09:54:08 Updated: 1:grub2-pc-2.02-0.65.el7.centos.2.x86_64
Dec 02 09:54:08 Updated: nss-3.28.4-15.el7_4.x86_64
Dec 02 09:54:09 Updated: nss-sysinit-3.28.4-15.el7_4.x86_64
Dec 02 09:54:09 Updated: libcurl-7.29.0-42.el7_4.1.x86_64
Dec 02 09:54:10 Updated: php-common-5.4.16-43.el7_4.x86_64
Dec 02 09:54:10 Updated: php-pdo-5.4.16-43.el7_4.x86_64
Dec 02 09:54:11 Updated: php-cli-5.4.16-43.el7_4.x86_64
Dec 02 09:54:12 Updated: kernel-tools-libs-3.10.0-693.5.2.el7.x86_64
Dec 02 09:54:12 Updated: python2-psutil-2.2.1-3.el7.x86_64
Dec 02 09:54:13 Updated: iptables-1.4.21-18.2.el7_4.x86_64
Dec 02 09:54:14 Updated: kmod-libs-20-15.el7_4.4.x86_64
Dec 02 09:54:16 Updated: systemd-219-42.el7_4.4.x86_64
Dec 02 09:54:17 Updated: systemd-sysv-219-42.el7_4.4.x86_64
Dec 02 09:54:17 Installed: libspf2-1.2.10-5.20150405gitd57d79fd.el7.x86_64
Dec 02 09:54:18 Updated: selinux-policy-3.13.1-166.el7_4.5.noarch
Dec 02 09:54:19 Updated: python2-cryptography-1.7.2-1.el7_4.1.x86_64
Dec 02 09:54:19 Updated: python2-acme-0.19.0-1.el7.noarch
Dec 02 09:54:20 Updated: python2-certbot-0.19.0-1.el7.noarch
Dec 02 09:54:22 Updated: certbot-0.19.0-1.el7.noarch
Dec 02 09:54:29 Updated: selinux-policy-targeted-3.13.1-166.el7_4.5.noarch
Dec 02 09:54:30 Installed: milter-greylist-4.5.16-3.el7.x86_64
Dec 02 09:54:31 Updated: php-fpm-5.4.16-43.el7_4.x86_64
Dec 02 09:54:31 Updated: systemd-python-219-42.el7_4.4.x86_64
Dec 02 09:54:32 Updated: openssh-server-7.4p1-13.el7_4.x86_64
Dec 02 09:54:33 Updated: iptables-services-1.4.21-18.2.el7_4.x86_64
Dec 02 09:54:33 Updated: kexec-tools-2.0.14-17.2.el7.x86_64
Dec 02 09:54:36 Updated: 1:mariadb101u-server-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:38 Updated: proftpd-1.3.5e-3.el7.x86_64
Dec 02 09:54:39 Updated: kernel-tools-3.10.0-693.5.2.el7.x86_64
Dec 02 09:54:40 Updated: php-5.4.16-43.el7_4.x86_64
Dec 02 09:54:40 Updated: php-mysql-5.4.16-43.el7_4.x86_64
Dec 02 09:54:40 Updated: php-soap-5.4.16-43.el7_4.x86_64
Dec 02 09:54:41 Updated: php-xmlrpc-5.4.16-43.el7_4.x86_64
Dec 02 09:54:41 Updated: php-process-5.4.16-43.el7_4.x86_64
Dec 02 09:54:42 Updated: php-xml-5.4.16-43.el7_4.x86_64
Dec 02 09:54:42 Updated: php-gd-5.4.16-43.el7_4.x86_64
Dec 02 09:54:43 Updated: php-mbstring-5.4.16-43.el7_4.x86_64
Dec 02 09:54:43 Updated: curl-7.29.0-42.el7_4.1.x86_64
Dec 02 09:54:44 Updated: nss-tools-3.28.4-15.el7_4.x86_64
Dec 02 09:54:44 Installed: 1:grub2-2.02-0.65.el7.centos.2.x86_64
Dec 02 09:54:45 Updated: 1:mariadb101u-devel-10.1.28-1.ius.centos7.x86_64
Dec 02 09:54:45 Updated: openssh-clients-7.4p1-13.el7_4.x86_64
Dec 02 09:54:53 Installed: kernel-3.10.0-693.5.2.el7.x86_64
Dec 02 09:54:53 Updated: virtualmin-config-6.0.21-1.noarch
Dec 02 09:55:08 Updated: 2:wbm-virtual-server-6.01.gpl-3.noarch
Dec 02 09:55:09 Updated: wget-1.14-15.el7_4.1.x86_64
Dec 02 09:55:10 Installed: p7zip-16.02-2.el7.x86_64
Dec 02 07:55:11 Updated: tzdata-2017c-1.el7.noarch
Dec 02 07:55:11 Installed: perl-IO-Tty-1.10-11.el7.x86_64
Dec 02 07:55:12 Updated: procmail-3.22-36.el7_4.1.x86_64
Dec 02 07:55:13 Updated: python-gobject-base-3.22.0-1.el7_4.1.x86_64
Dec 02 07:55:13 Installed: bzip2-1.0.6-13.el7.x86_64
Dec 02 07:55:14 Updated: python-perf-3.10.0-693.5.2.el7.x86_64
Dec 02 07:55:14 Updated: apr-1.4.8-3.el7_4.1.x86_64
Dec 02 07:55:14 Updated: epel-release-7-11.noarch
Dec 02 07:55:16 Updated: kernel-headers-3.10.0-693.5.2.el7.x86_64
Dec 02 07:55:39 Erased: 1:grub2-tools-efi-2.02-0.64.el7.centos.x86_64

Howdy -- you could try configuring that to run less frequently by going into System Settings -> Virtualmin Config -> Status Collection, and there, try setting "Interval between status collection job runs" to a different value... perhaps "60", or you could even try disabling it altogether.

Isnt this need for letsencrypt cert renewals and other things? Is it really ok to disable it? Well.. I am seeing new files with problem.. like this:

[root@sunucu ~]# /usr/libexec/webmin/proc/index_cpu.cgi
Can't locate ./proc-lib.pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/libexec/webmin/proc/index_cpu.cgi line 4.

You may just want to start by lowering how frequently it runs. If it continues to cause problems, we can look into disabling it. It's largely used for stats generation and whatnot, though we'll verify that's still the case with Jamie before doing so.

Where are you seeing that error above though?

That particular script would normally be called from within Webmin, which should in turn be setting up the proper paths for the proc-lib.pl file it's referring to.

Well, i didnt see any error before the updates. But when i see 100% CPU with websites lagging and checked the panel, i saw 9-10 /usr/libexec/webmin/virtual-server/collectinfo.pl execution is basically ruining server.

The collectinfo.pl CPU problem will be solved when the 1.870 (or later) release of Webmin comes out.

jbatun21564065's picture
Submitted by jbatun21564065 on Fri, 12/22/2017 - 13:36

I regret to inform, that in following this thread I made the update and the system to the latest available version, and it did not work.

Process ID Owner UCP Command 24503 root 37.0% /usr/libexec/webmin/proc/index_cpu.cgi

Operating system CentOS Linux 7.4.1708 Perl version 5.016003 Path to Perl /usr/bin/perl BIND version 9.9 Postfix version 2.10.1 Mail injection command /usr/lib/sendmail -t Apache version 2.4.6 PHP versions 5.6.25, 7.0.10 Webalizer version 2.23-08 Logrotate version 3.8.6 MySQL version 5.5.56-MariaDB ProFTPD version 1.35 SpamAssassin version 3.4.0 ClamAV version 0.99.2

Are you seeing collectinfo.pl using a lot of CPU, or index_cpu.cgi ?