quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Brunson <brun...@brunson.com>
Subject Re: Apache log messages
Date Sun, 10 Dec 2006 17:29:31 GMT
Platform: FreeBSD 6.1, Apache 2.0.55 (mpm_prefork), Python 2.4.3,
mod_python 3.3 (20061130232253 snapshot).

Well, I see the problem is that httpd is getting started up close enough
to the same time every boot cycle that the worker processes are getting
the same semaphore file names.  For some reason FreeBSD doesn't clean
out /tmp on boot by default.  I can't seem to find any cleanup mechanism
for the files on shutdown, but the 80 or so mutex files seem to
correspond to server crashes and stopping and starting apache normally
doesn't result in orphaned files.

Sorry to bug you all, the answers were all there in the source.

Eric Brunson wrote:
> I'm seeing a lot of these messages in the httpd error logs:
> [Sun Dec 10 06:46:50 2006] [notice] mod_python: Creating 8 session
> mutexes based on 150 max processes and 0 max threads.
> [Sun Dec 10 06:46:50 2006] [notice] mod_python: using mutex_directory /tmp
> [Sun Dec 10 06:46:50 2006] [error] (17)File exists: mod_python: Failed
> to create global mutex 1 of 8 (/tmp/mpmtx6661).
> Configuration Failed
> We're having some severe problems on the server and mod_python is
> getting blamed for it because of these logs.  I'm going through the
> source code right now to get a better understanding, but i thought
> someone may be able to shed a little light.
> Thanks,
> e.

View raw message