Virtualmin CPU 100%

Any suggestions how to fix this?

CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ifconfig eth0 using 38% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process whoami using 71.4% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ls -la using 48% of CPU. I killed this process.

Then CPU at 32% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ps -ef using 64.2% of CPU. I killed this process.

Then CPU at 32% and Internet loading very slowly on 192.168.1.120.
Virtualmin process netstat -an using 52.7% of CPU. I killed this process.

Then after 2 minutes CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ifconfig eth0 using 67.3% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ifconfig bash using 59.7% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ps -ef using 33.4% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process su using 49.8% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process echo “find” using 75.7% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process netstat -an using 44.7% of CPU. I killed this process.

Then CPU at 100% and Internet loading very slowly on 192.168.1.120.
Virtualmin process ps -ef using 61.4% of CPU. I killed this process.

Stop killing the processes and figure out why they’re taking a lot of CPU!

Is the system low on memory? If so, follow the Virtualmin on Low Memory Systems guide.

I’m not sure what else would make every process (even tiny processes that can’t possibly take a lot of CPU unless everything is swapping very heavily due to not enough memory) take 100% of CPU. Note that these aren’t really Virtualmin processes, though it’s possible some of them were spawned by Virtualmin (though some seem very unlikely to be spawned by Virtualmin…though one could write scripts for Virtualmin that might call some of them).

I fixed it by uninstalling and reinstalling virtualmin.