CPU and RAM 100% when loading Webmin Dashboard

SYSTEM INFORMATION
OS type and version DEBIAN12
Webmin version 2.303

Hi everyone,

I am struggling finding the root isue of this bug.
I am using up to date Debian 12 and Webmin package.

When loading the dashboard with system statistics, I notice that my server is freezing and get to 100% CPU usage and 100% RAM usage. After some time, webmin process gets killed by OOM detection and my server unfreezes.

I limited the CPU usage and RAM usage with systemd parameters to prevent my server to crash.

But, I am still using a non working Webmin instance.
I can do some things but not access terminal and viewing dashboard; then it seems to be a websocket issue.

I am using an Apache2 reverse proxy with configuration based on the FAQ.

I can reproduce the issue when loading this URL :
https://mydomain.com/webmin/sysinfo.cgi

But when I check all the logs, I don’t see anything related.
I also tried to remove and reinstall webmin package, but the issue is still there.

Can you give me with some hints to point to the root cause ?

Many thanks
Cheers

Turn that option off, it would appear that the theme runs that without checking that it’s already running my small server runs into the same problem i.e 500mb ram 1 cpu

It’s supposed to check a lock before starting a new instance. It’s a bug if you see more than one running.

The problem is that I need this to work, at least the Terminal feature, it’s my main use of Webmin and I won’t keep it if I cannot use that.

When looking at htop when reproducing the issue, I can see sysinfo.cgi and xhr.cgi running at maximum RAM/CPU usage, but there is only one instance of each.

And i guess you have restarted webmin and checked this still fails. That said you have not intimated whatever else is installed

Sure, as said I even tried to remove and reinstall Webmin.
I just use apache to point to various web services.

So you didn’t recommission the server and reinstall webmin ?

When that happens, could you run systemctl status webmin, find the sysinfo.cgi PID, and run strace -p <PID> to see what’s really happening behind the scenes?

Did this issue also happen for you on Webmin 2.202?

1 Like

Also, do you have Usermin installed?

Let’s focus on one problem at a time. If you have a problem with the Terminal, open a new topic about that problem. I wouldn’t expect the terminal to be all that large (I mean, it’s much bigger than using an ssh session to have a terminal, but it’s not huge (I see 23M resident and 78MB VSS on my Debian 12 system).

Thanks for your replies, I found the root cause !

When I run a strace -p I see a lot of openat /etc/mysql/conf.d like an infinite loop…

My file /etc/mysql/conf.d/mysql.cnf had this line :

!includedir /etc/mysql/conf.d/

So that’s it, removed it and restated mysql service make Webmin works normally.

Thanks for helping me pointing me to the right direction.

Cheers !

1 Like

Thats a bit scary, how would that happen?

Can you provide more details about what /etc/mysql/conf.d contained? And also what is the output of ls -lsd /etc/mysql/conf.d command?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.