Subject: pkg/26347: ap2-python has problems creating global mutex
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <darcy@NetBSD.org>
Date: 07/16/2004 21:29:54
>Synopsis: <p2-python has problems creating global mutex
>Arrival-Date: Sat Jul 17 01:30:00 UTC 2004
>Originator: D'Arcy J.M. Cain
>Release: NetBSD 2.0F
D'Arcy J.M. Cain <darcy@NetBSD.org>
The NetBSD Project
System: NetBSD druid.net 2.0F NetBSD 2.0F (DRUID) #0: Sun Jun 20 06:19:19 EDT 2004 email@example.com:/usr/NetBSD/cvs/src/sys/arch/i386/compile/DRUID i386
When you use this package it gives errors like the following:
[Tue Jun 01 00:58:27 2004] [notice] mod_python: Creating 32 session mutexes based on 150 max processes and 0 max threads.
[Tue Jun 01 00:58:27 2004] [error] (23)Too many open files in system: mod_python: Failed to create global mutex 26 of 32 (/tmp/mpmtx843926).
[Tue Jun 01 00:58:27 2004] [error] mod_python: We can probably continue, but with diminished ability to process session locks.
[Tue Jun 01 00:58:27 2004] [error] mod_python: Hint: On Linux, the problem may be the number of available semaphores, check 'sysctl kernel.sem'
It works as long as the number of sessions is kept low enough but that will obviosly be a problem for any serious web server.
Make sure that the following lines are in your https.conf file:
LoadModule python_module /usr/pkg/lib/httpd/mod_python.so
AddType text/html .py
This might be more than needed but should certainly trigger the error.
Unknown. It seems to be a problem with threads and some system limit
but I have been unable to identify where to adjust this limit.