From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079038515441.tru64-unix-managers.marc@archive.invalid> From: Keith Piepho Date: Wed, 03 Mar 1999 16:41:33 +0000 To: tru64-unix-managers Subject: SUMMARY: Heavy load <-> refused smtp connections X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079038515441 Original Message: ------------------------------------------------------------- Hello, We have an alphaserver 1000 running 4.0B, patch kit 8. It is significantly overloaded, a problem we are attempting to remedy by finding enough money to replace it. In the meantime, we are trying to make the machine as usable as possible. The machine is primarily used as a POP server, an SMTP relay (from within our domain only, of course), and a web server (Gee, I wonder why it's overloaded...). The problem is this: When the machine is under heavy load (read M-F, 8-5), connections to the SMTP port are frequently being refused. I have not been able to find any other services that are refusing connections, but of course the refusals are intermittent and unpredictable. Things I've tried: I looked at the sendmail source, and saw that it is doing a listen(socket,10) meaning that it only allows 10 waiting connections on the socket. I increased the socket subsystem SOMINCON (and SOMAXCON) to 4096, which should (If I'm reading the documentation right) set every socket to allow 4096 waiting connections before refusing connections. I looked at vmstat and netstat during heavy load times to see if we are short on memory or are having network load problems. The answers were no and no. Things I'm trying now: - doing anything I can to reduce the load on the system. - investigating whether there is anything in patch kit 9 that addresses similar problems Questions: Am I understanding the SOMINCON/SOMAXCON stuff correctly? Are there any tradeoffs in further increasing these variables, as the server tuning document recommends, to the maximum value of 65535, and is there any hope of this having any effect? What techniques can you recommend to delve into this problem deeper, for example to see if the connections are being refused by sendmail rather than by DU, etc. Any other suggestions for diagnostics/remedies/info/anything ? ------------------------------------------------------------- Replies from: Mike Iglesias Brian C. Parkhurst Andrew Gillies Philip Grant Sam Nelson plus a couple more that are coming in as I'm writing... Lots of replies for some sendmail-specific fixes. Specifically, in the sendmail.cf file, the options: OX or O RefuseLA= (depending on your sendmail version) set the load level at which sendmail refuses connections. I had looked briefly at this, but didn't realize that if you didn't define any value at all (which I didn't), the value defaults to 12 (yes, our server can get that busy... sigh... ). I've made this change, and have hope that it'll help. (I wasn't too worried about a change to this having too detrimental effect on the system, because sendmail isn't the cause of too awfully much of the load) Thanks for the suggestions... Any responses/suggestions in regards to my other questions about methods for attacking/diagnosing problems like this and seeing where the problem is occurring? -- - keith -- Keith Piepho kap@uakron.edu Technical Services (330) 972-6130 The University of Akron