pkgsrc-Bugs archive

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

pkg/26347: ap2-python has problems creating global mutex



>Number:         26347
>Category:       pkg
>Synopsis:       <p2-python has problems creating global mutex
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 17 01:30:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     D'Arcy J.M. Cain
>Release:        NetBSD 2.0F
>Organization:
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
The NetBSD Project
http://www.NetBSD.org/
>Environment:
        
        
System: NetBSD druid.net 2.0F NetBSD 2.0F (DRUID) #0: Sun Jun 20 06:19:19 EDT 
2004 door%druid.net@localhost:/usr/NetBSD/cvs/src/sys/arch/i386/compile/DRUID 
i386
Architecture: i386
Machine: i386
>Description:
        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.

>How-To-Repeat:
        Make sure that the following lines are in your https.conf file:

        MaxClients 250
        LoadModule python_module /usr/pkg/lib/httpd/mod_python.so
        AddType text/html .py
        SetHandler python-program
        PythonHandler mod_python.cgihandler

        This might be more than needed but should certainly trigger the error.
>Fix:
        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.

>Release-Note:
>Audit-Trail:
>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index