httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=50261

--- Comment #12 from Charles Jardine <cj10@cam.ac.uk> 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
  # https://issues.apache.org/bugzilla/show_bug.cgi?id=50261.
  # 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message