httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50261] graceful restart with multiple listeners using prefork MPM can result in hung processes
Date Wed, 28 Mar 2012 07:49:03 GMT

--- Comment #12 from Charles Jardine <> 2012-03-28 07:49:03 UTC ---
(In reply to comment #11)
> Hi,
> Has anyone found a fix for this, the Graceful being stuck in G in server-status
> please?  I really want to start upgrading my apache and we only do graceful
> restarts.
> thanks

There is a workaround which I have found satisfactory. I have
the following lines in my configuration file:

  # The default setting of AcceptMutex is dependent on both
  # platform and version. For Solaris on 2.0 it was 'fcntl'.
  # In versions 2.2.16 and 17 the default is 'pthread', which
  # promises better performance. However, it doesn't work if there
  # is more than one Listen directive. See CJJ's bug at
  # The following directive makes no change for 2.0 and
  # circumvents the bug for 2.2.

  AcceptMutex fcntl

  # LockFile is needed - /var/run is a good place. Docs say
  # 'The PID of the main server process is automatically
  # appended to the filename', so we can use the same name for
  # all instances. Note, the lock files are invisible when
  # the server is running - presumably unlinked.

  LockFile /var/run/httpd.lock

I have not noticed any performance problems caused by this. I would
like to suggest that, if the bug is not to be fixed, the default for
AcceptMutex for Solaris should be changed back to 'fnctl'.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message