Have you asked about this on one of the Trac user mailing lists? Seems
perhaps to be more an issue with Trac and I have seen descriptions on
Trac lists before about this slow load times.

Graham

2009/6/27 George King <[email protected]>:
>
> hi list,
>
> i'm seeing very slow load times (30 seconds and worse) using trac 0.11
> and mod_wsgi on fedora 11 (apache 2.2.11, python 2.6). i have multiple
> trac instances served from a single wsgi script. if i start httpd and
> access the trac parent directory (a simple listing of all the
> instances), it takes two or three seconds two load the first time, and
> then about one on subsequent requests. if i visit several days later,
> load time slows dramatically.
>
> when i run service httpd stop, i see that apache is sending SIGKILL to
> some of it's child processes. this does not always happen; it appears
> to take some amount of traffic before the children get stuck. i cannot
> simply reproduce this by restarting httpd and running 100 web requests
> with wget.
>
> below are the relevant apache config (left out a bunch of location
> matches for permissions) and the wsgi script.
>
> does anyone have suggestions as to what might be going wrong here?
>
> thanks,
>
> george
>
>
> ***
> # apache conf #
> WSGIScriptAlias /trac /groundup/trac/wsgi/trac.wsgi
>
> <Directory /somedir/trac/wsgi>
>
>   SSLOptions +StrictRequire
>   SSLRequireSSL
>   SetEnv HTTPS 1
>
>   Options Indexes FollowSymLinks
>
>   Order deny,allow
>   Allow from all
>
>   # force trac to run within the main python interpreter only -
> necessary for svn #
>   WSGIApplicationGroup %{GLOBAL}
>
> </Directory>
>
> ***
> #!/usr/bin/python
> # wsgi script #
>
> import sys
> import os
> import atexit
>
> sys.stdout = sys.stderr
>
> def cleanup():
>   print >> sys.stderr, 'trac.wsgi cleanup'
>
> atexit.register(cleanup)
>
> os.environ['TRAC_ENV_PARENT_DIR'] = '/groundup/trac/projects'
> os.environ['PYTHON_EGG_CACHE'] = '/groundup/trac/eggs'
>
> import trac.web.main
>
> application = trac.web.main.dispatch_request
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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