# CPU and RAM 100% when loading Webmin Dashboard

**URL:** <https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639>\
**Category:** Webmin\
**Created:** [March 19, 2025, 1:08pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639 "2025-03-19T13:08:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbriarty502](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mbriarty502](https://forum.virtualmin.com/u/mbriarty502)\
**Post date:** [March 19, 2025, 1:08pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/1 "2025-03-19T13:08:26Z")

</div>

| 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](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

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [March 19, 2025, 1:46pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/2 "2025-03-19T13:46:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [March 19, 2025, 1:56pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/3 "2025-03-19T13:56:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mbriarty502](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mbriarty502](https://forum.virtualmin.com/u/mbriarty502)\
**Post date:** [March 19, 2025, 2:01pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/4 "2025-03-19T14:01:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [March 19, 2025, 2:08pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/5 "2025-03-19T14:08:30Z")

</div>

> [@mbriarty502](#):
>
> the Terminal feature, it’s my main use of Webmin and I won’t keep it if I cannot use that.

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

---

<div class="post-metadata">

**Author:** ![mbriarty502](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mbriarty502](https://forum.virtualmin.com/u/mbriarty502)\
**Post date:** [March 19, 2025, 2:23pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/6 "2025-03-19T14:23:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [March 19, 2025, 2:29pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/7 "2025-03-19T14:29:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 19, 2025, 2:33pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/8 "2025-03-19T14:33:35Z")

</div>

> [@mbriarty502](#):
>
> 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.

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?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 19, 2025, 2:47pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/9 "2025-03-19T14:47:06Z")

</div>

> [@Ilia](#):
>
> > [@mbriarty502](#):
> >
> > 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.
> 
> 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?

Also, do you have Usermin installed?

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [March 19, 2025, 6:21pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/10 "2025-03-19T18:21:22Z")

</div>

> [@mbriarty502](#):
>
> at least the Terminal feature

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).

---

<div class="post-metadata">

**Author:** ![mbriarty502](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/ac8455/32.png) [@mbriarty502](https://forum.virtualmin.com/u/mbriarty502)\
**Post date:** [March 20, 2025, 7:28am UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/11 "2025-03-20T07:28:05Z")

</div>

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 :

```auto
!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 !

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [March 20, 2025, 8:28am UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/12 "2025-03-20T08:28:33Z")

</div>

Thats a bit scary, how would that happen?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 20, 2025, 6:18pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/13 "2025-03-20T18:18:00Z")

</div>

> [@mbriarty502](#):
>
> So that’s it, removed it and restated mysql service make Webmin works normally.

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?

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [March 28, 2025, 6:18pm UTC](https://forum.virtualmin.com/t/cpu-and-ram-100-when-loading-webmin-dashboard/132639/14 "2025-03-28T18:18:25Z")

</div>

Closed on March 28, 2025, 6:18pm UTC

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