Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I had a server that ran fine for years. But after upgrading to the latest version of CentOS and httpd, my server keeps on locking up when there are too many connections (under a nikto security scan for example).
I found lines like this in the message log
kernel: [<c0459c79>] out_of_memory+0x72/0x1a5 httpd invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
kernel: [<c0459c79>] out_of_memory+0x72/0x1a5
...
kernel: Total swap = 2096440kB
kernel: Free swap: 0kB
"top" would show about a bunch of httpd processes taking up 5, 10% of MEM. The only non-default setups are
post_max_size = 200M
upload_max_filesize = 200M
max_execution_time = 72000
max_input_time = 72000
in php.ini
I tried very small value for ServerLimit and MaxClients (10, 15) and these seems to prevent the server from hanging, but still the MEM% went to dangerously value (> 5%).
My provider blames it on a mem leak in http/mod_ssl, but I'm not so sure. Any suggestions? Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.