2009/8/20 rupert.thurner <[email protected]>:
>
> WSGIDaemonProcess sites user=www-data group=nobody processes=3
> threads=25

Your configuration is multiprocess. I am not sure what else you are
saying in sending along the configuration. If you remove 'processes=3'
so that default of single process is created, are you still seeing the
constant reloading?

> WSGIScriptAlias /projects /opt/csw/apache2/data/cgi-bin/trac.wsgi
> WSGIRestrictStdout Off
> <Directory /opt/csw/apache2/data/cgi-bin>
>    WSGIApplicationGroup %{GLOBAL}
>    Order deny,allow
>    Allow from all
>    ExpiresActive On
>    ExpiresDefault A300
>    ExpiresByType image/x-icon A3600
>    ExpiresByType image/gif A3600
>    ExpiresByType image/jpg A3600
>    ExpiresByType text/css A3600
>    ExpiresByType text/javascript A3600
> </Directory>
>
> <LocationMatch /projects/[^/]+/chrome>
>    Order allow,deny
>    Allow from all
>    ExpiresDefault "now plus 48 hours"
> </LocationMatch>
>
>
> trac.wsgi is
>
> #!/opt/csw/bin/python
> import os
> import trac.web.main
>
> os.environ['PYTHON_EGG_CACHE'] = '/tmp/cache/trac-eggs'
> os.environ['TRAC_ENV_PARENT_DIR'] = '/opt/csw/apache2/data/trac'
>
> _application = trac.web.main.dispatch_request
>
> def application(environ, start_response):
>    try:
>        environ['trac.locale']='da_DK'
>        environ['REMOTE_USER'] = environ['REMOTE_USER'].split(' (', 1)
> [0]
>    except:
>        pass
>    del environ['wsgi.file_wrapper']

You should need to delete wsgi.file_wrapper if you are using up to
date mod_wsgi as issue with that was fixed some time back.

Graham

>    return _application(environ, start_response)
>
>
>
>
>
> On Aug 9, 7:48 am, Graham Dumpleton <[email protected]>
> wrote:
>> 2009/8/9 rupert.thurner <[email protected]>:
>>
>>
>>
>> > we noticed a frequent reload of the plugins on our trac installation,
>> > seehttp://groups.google.com/group/trac-dev/browse_thread/thread/e3803f5c....
>> > what would be the easiest possibility to trac down which mod_wsgi
>> > process / thread is causing the reload, maybe put some id in a log
>> > file?
>>
>> Apache/mod_wsgi will run in a multi process configuration. Are you
>> sure you aren't mistaking loading in distinct processes as being in
>> the same process? Read:
>>
>>  http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
>>
>> Also read:
>>
>>  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
>>
>> and set LogLevel to 'info' to get mod_wsgi to generate extra debug
>> information. This can be used to verify whether Trac being reloaded
>> because of process starts rather than something going on internal to
>> Trac. Also watch what logs say about application group, in case you
>> have used WSGIScriptAliasMatch in configuration and done so wrongly
>> with result in different URLs resulting in separate instances of Trac
>> being loaded. Send your Apache/mod_wsgi configuration so can verify
>> that you have just messed up the configuration.
>>
>> Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to