I have recently been noticing an odd behaviour which I don't believe I've seen before, although it's very possible it has been there since the beginning and I just never noticed. I looked at the top command for a while one day after receiving notifications from an external monitor that websites were a bit on the sluggish side and in the odd case just straight-up timed out.
When looking, the resources always looked fine and loaded well for me, but after reviewing the output of top for about 10 minutes, I saw that there was a process that would suddenly come up and consume between 70-98% of the CPU, increasing my load averages to well above 3, even when the load is normally well under 0.7 on average.
The process in question is: /usr/libexec/webmin/proc/index_cpu.cgi
My first question is what exactly does this process do and how does it do it (just at a high level, nothing super detailed needed). I assume based on the name that it is indexing my CPU, but indexing it for what exactly? Top is it's own process, so at first I suspected it was maybe for running top for a while, but it settled down on its own while still reviewing top, plus top is really its own process anyways so shouldn't be related, at least in my understanding so far.
My second question is what can be done to troubleshoot why this is causing performance concerns / high CPU? I want to try and determine why this is happening suddenly (again, it's entirely possible that this has been ongoing for a while but I never noticed until I got an auto notification suggesting my site was offline for a bit, reason reported being that it timed out).
Any ideas or thoughts on this process and its behaviour and performance concerns? Your input would be greatly appreciated while I continue to troubleshoot this concern.