Re: [users@httpd] Apache hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/3/06, satinders@xxxxxxxxxxxxxxxxxx <satinders@xxxxxxxxxxxxxxxxxx> wrote:



Hi,
        I have Apache 2.0.53 running on linux ( 2.4.19 kernel ). I have
observed that after running for 2 days OR after load testing (around 200
simultaneous connections for 30 minutes), it hangs, i.e. client is able to
connect to server socket but no http response comes back. It is using SSL,
so SSL cert warning comes but no further processing is done.

Following is MPM conf:
<IfModule worker.c>
        ThreadLimit          150
        ServerLimit          100
        ThreadsPerChild       30
        MaxClients          3000

        StartServers           2
        #MinSpareThreads       20
        #MaxSpareThreads      100
        MinSpareThreads       20
        MaxSpareThreads       100
        MaxRequestsPerChild 2000


At this moment, the apache processes also not get reduced. It always remain
the same (around 400) till i restart apache.

strace on httpd processes show that they are blocked in write to some pipe.
There are no segmentation faults or nasty errors in error logs. Situation
does not resolve by graceful restart too.

Any hint, how i should resolve this issue?

First, it is pretty-much pointless to be debugging problems with an
old version of the server.  Start by upgrading to at least the most
recent 2.0 (and preferably 2.2.2).

Second, you can attach to the hung processes with a debugger and get a
backtrace to see where they are struck.  See:
http://httpd.apache.org/dev/debugging.html

Third, your MaxRequestsPerChild looks way too low.  This should
optimally be set to 0.  This counts requests to all threads in a
process, so it will force apache to be recycling processes very
frequently.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux