04-03-2009 08:45 AM
I want to find whether sendmail is running or not, so i issued following command.
root@lghp239:/root > ps -ef | grep sendmail
root 732 1 0 Oct 31 ? 6:51 sendmail: rejecting connections on port 25: load average: 62
what it "sendmail:rejecting connections" means.
how to start sendmail.
Solved! Go to Solution.
04-03-2009 09:00 AM
You will see a documentation section in the file titled "Refuse-Connections Load Average (option RefuseLA):".
To see how this is configured on your system now, search for 'RefuseLA' in the sendmail.cf file. If the line looks like:
then you are probably using a built-in default value.
If the line looks like:
Then the load average at which sendmail will start refusing connections is 15. The value could be any number you choose.
If having sendmail refusing connections is a real problem, you probably really need to look into why the load average was so high to begin with.
04-03-2009 09:03 AM
Reduce the load average on the server and you won't get this rejected ..
04-03-2009 09:10 AM
When it's refusing connections do a
ps -ef | grep sendmail
to get the PID - 732 - in this case.
ps -ef | grep 732 | wc -l to see how many children the parent - 732 - has spawned.
If that equals/exceeds the RefuseLA value that would explain the rejecting state.
04-03-2009 09:32 AM
Dos a ps -ef | wc -l and compare that to the NPROC value which you can check with
kmtune -q nproc
But of course, IF you've hit the NPROC limit you may not be able to run anything until you kill some PIDs.
Check your syslog - anytime your hit a kernel parm limit it should get logged. You should also check your mail log - it could/should tell you exactly what's going on.
04-03-2009 09:35 AM
# vmstat 2 2
# swapinfo -tam
# sar -Mu 2 2
# sar -d 2 2
# ipca -ma