Is it ok to switch off or reduce the frequency of collectinfo.pl?

It’s currently set to run every 5 minutes, but always consumers 99% of CPU, what does it collect and can it be turned off or set to something like every hour instead?

Webmin->Webmin Configuration->Background Status Collection

1 Like

I’ve noticed it lately too.

1 Like

Is it essential? Can it be switched off or set to every few hours without issue?

If it just collects memory and disk space for the stats shown in @stefan1959’s screengrabs (and available packages) I’m not sure it’d be missed much - could even be set to just once per day?

Do you guys have WP Workbench installed with many WordPress sites on the system? If so, that might be the issue. You can disable it in the WP Workbench module config by turning off the “Update instances cache in background” option.

@Jamie, do we really have to update it every 5 minutes? I think every 20 minutes by default would be fine too.

1 Like

We should probably split collectinfo up into a couple of jobs, instead of just one. Some of the stuff it collects is relatively fast moving (e.g. resource usage), while some of it is not going to be actionable on a 5 minute scale and should maybe be hourly or similar (e.g. software updates).

If WP Workbench adds a bunch of heavy work, maybe it ought to get its own job on its own schedule, as well.

Also, every new major feature leading to dramatic jumps in resource usage feels bad. We ought to be really careful about adding work, as many of our users are running on tiny systems.

2 Likes

It isn’t there for nothing…it is essential for a bunch of features in Virtualmin, though whether you consider those features (renewing Let’s Encrypt certs, checking for software updates, resource usage reporting, etc.) essential is up to you. I suspect most users need at least some of the things it does.

Every few hours should be fine, though, if it’s really impacting your system.

You can see what it does here: virtualmin-gpl/collectinfo.pl at master · virtualmin/virtualmin-gpl · GitHub

1 Like

I don’t disagree with splitting those up possibly. However, it would take time and effort. I don’t think it’s justified right now because resource usage cache is no longer relevant with the Authentic theme, as it interacts with cache differently.

Therefore, I’d say changing it to a 30-minute period by default is reasonable. It won’t affect anything significantly, as far as I can tell off the top of my head.

1 Like

I don’t think I do, where can I check?

I think maybe splitting out the essential stuff (lets encrypt) into it’s own job could be worth doing?

I’ve changed mine to once an hour and it has made a noticeable difference to the overall load

What are your server’s specs?

The link at the bottom of the menu named “WP Workbench Manager” when opened, see “Module Config” (cog icon).

1 Like

6 core Xeon E-2276G with 64GB RAM and SSDs (nothing else consumes as much CPU when running, at least not that I have noticed).

Where to @Ilia? Somewhere like Webmin > webmin config > modules?

Here’s it running again now:

Also this is weird: I’m sure I had changed the setting to every 60 minutes, but noticing it present in top stats for longer than expected I went back to VM > Virtualmin Config > Status Collection and it was back to every 5 minutes : /

(Webmin -> Webmin Configuration -> Background Status Collection was the same as what I had set it to, 60 mins)

Yeah I have a few WP’s installed, I will check it out,

Two different things?

Not everyone uses WP Workbench (sure it is only available in Pro) but is the first thing to be disabled/removed.

have not checked out what else is listed yet but anything that is core should remain - I was tempted to increase from 5 to 500 min had no effect but now see perhaps it has some real purpose

That’s crazy good. I have 1 vCPU and 1GB of RAM instances and none of them show any performance issues. Yes, I can see the CPU usage spike for a few seconds every 5 minutes, but that’s fine and expected.

Why is that? It has nothing to do with anything.

why not ? if it will NEVER be needed by ANY VS on a Pro VM (why use any resources that are consuming CPU/Memory/Disk) I have one client using a Pro box and is quite happy and want to keep them that way IMO WP is the biggest :poop: on the :globe_showing_europe_africa:
though I am aware that many folk :place_of_worship: it

What do you prefer over WordPress though?

nothing (all my clients are devs with experience and use code of their own in nodejs/go/php few) most like me are :older_person: and have previous bad experience with WP

of course I understand the popularity of WP and it’s apparent simplicity

I like Joomla it is a proper CMS. I have not looked at the code or done any work with it since 3.x

WordPress is procedural code that comes from its blog roots. All of its plugins are basically silo’ed and do not interact with each other which has benefits and disadvantages.

I use WordPress and Divi for my clients (not on VM) for a guy I work with but all of my personal sites will be on Joomla unless 6.x sucks like it’s admin.