I’m having a problem where virtualmin is launching a zillion cron jobs which are killing my system (See attached). Server hostnames and directories have been changed to “SITE1”, etc. The log is the output of the script I posted on this thread https://www.virtualmin.com/node/16835 .
I’m running Centos 5.5 and all packages are up to date. I’m not sure why it’s happening now because I’ve been happily running Virtualmin for a couple years on this box and not much has changed lately. I’m hosting about 30 low-traffic domains.
Competing for RAM would -to my knowledge at least- not occur with Xen.
Xen gives you dedicated RAM whereas openvz gives you shared ram.
On Xen you could have burstable RAM coming from swap.
swap could be shared though, but is unlikely.
ronald is right, xen dedicates the memory. It’s only CPU that you contend for.
I’m thinking it might be webalizer job(s) that are using up all the memory, which then turns on the process killer. I disabled it and we’ll see what happens.
And now i add “/root/bin/ulimit 512000” before each command in root’s crontab. Hopefully I will now just get an “out of memory” email instead of a crash.
One thing you might try is to have bw.pl and collectinfo.pl run less frequently.
By default, bw.pl runs every hour. You can change that in System Settings -> Bandwidth Monitoring.
Also, collectinfo.pl runs much more frequently – every 5 minutes I believe. You can change that in System Settings -> Virtualmin Config -> Status Collection, and set “Interval between status collection job runs”.
If you make those run less frequently (neither is a necessary component for your server, they just keep stats up to date) – I’d be curious if you run into less problems.
maxslug, Did you ever come to a resolution on this issue? We’ve been having crashes on our Ubuntu server 10.04.2 once a week and (being new to virtualmin and Linux in general) I’m a bit perplexed on how to even troubleshoot the issue. My first thought was that some cron job was running (which prompted Google to lead me here) but I’d love to know if you had a definitive solution you might be willing to share.
/var/log/messages shows nothing of any significance. The server just hangs and the next log messages are from the reboot. I’m currently looking into which cron jobs virtualmin is running weekly (and possibly how to alter or stop them from running), but with this issue seeming so similar I wanted to see how it ended up for you.
Hi cpruitt, I never did root-cause this. My best guess is it had to do with an io overload on the VPS (Xen) I was using that was causing cron jobs not to finish. “iostat -a” tells a different story than top.
A series of hardware and software upgrades made the problem disappear, but no active resolution on my part.
Thanks for the followup. When you say “A series of hardware and software upgrades” are you referring to upgrades you made or upgrades made by a VPS hosting provider? In our case this is a dedicated box (albeit higher-end-desktop grade, not server grade hardware) in our own data center so VPS is not a factor. Just wondering if you knew of any specific upgrades that were made or hardware components that were replaced.
Really wish I knew the cause of this… been driving me batty for a few weeks now and any “fix” I try takes me a week to test. :-/