runqueue: Skipping queue run -- load average too high
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
runqueue: Skipping queue run -- load average too high
I'm running a centos 6 server (CentOS release 6.9 (Final)) with a really stubborn problem in sendmail (sendmail-8.14.4-9.el6_8.1.x86_64) which is that all mail is being queued and nothing sent. The entry in /var/log/maillog is:
Quote:
runqueue: Skipping queue run -- load average too high
and all mail sent ends in
Quote:
stat=queued
. I've been trawling google on this but can't work out what's wrong. The command mailq gives:
runqueue: Skipping queue run -- load average too high
Before anything else, you must find out what process is causing the high load and try to resolve the problem.
In the meantime you can increase QueueLA and RefuseLA options in sendmail.cf and restart sendmail. You need to uncomment the following 2 lines and increase the 2 values a little:
Code:
# load average at which we just queue messages
O QueueLA=8
# load average at which we refuse connections
O RefuseLA=12
A high loadavg is not necessarily a problem. At least not one that the sendmail devs should be mindlessly using to throttle their application. Especially if they think it equates to runq. That's a *nix mindset from the last millenium.
thankyou bathory, I in sendmail cf I have O QueueLA=400 and O RefuseLA=400 but still the mail is queued. I've also run top and the process using the most cpu and mem is zoneminder and it's only around 10% cpu and 1% mem. Thanks for any further advice.
See the manpage for proc.
Those first 3 numbers are the loadavg numbers you see in other tools. They are unusually high, and consistent - so you've had a high load for (quite) a while. Try this
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 ~ /[RD]/) {print; count++} } END {print "Total: "count}'
Maybe just post the top 20 lines or so if they are all the same.
thankyou bathory, I in sendmail cf I have O QueueLA=400 and O RefuseLA=400 but still the mail is queued. I've also run top and the process using the most cpu and mem is zoneminder and it's only around 10% cpu and 1% mem. Thanks for any further advice.
You should definitely look for what is eating your server resources. So follow syg00 instructions
Yet another reason to hate PackageKit. I regularly have to scrape disk space back from it.
In all likelihood those aren't affecting the rest of your system - except sendmail of course. Only a reboot will get rid of them.
thanks and a big breakthrough...
I did the reboot but got a different error message in the maillog which was:
Quote:
stat=Deferred: Connection refused by [127.0.0.1]
after a bit of digging around on google I discovered I didn't have sendmail-cf in my system so I installed it, restarted sendmail and suddenly loads of emails starting flushing out.
What puzzles me is if there were loads of queued emails why did mailq show 0?
after a bit of digging around on google I discovered I didn't have sendmail-cf in my system so I installed it, restarted sendmail and suddenly loads of emails starting flushing out.
And how did you get
Quote:
Originally Posted by tonj
in sendmail cf I have O QueueLA=400 and O RefuseLA=400
Quote:
What puzzles me is if there were loads of queued emails why did mailq show 0?
Probably mail was still in clientmqueue. Use the following to see the mail in that queue
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.