On Sep 16, 1:50 am, "Lucas Stephanou" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I`m made a search in this list, but I cannot find anything about that.
>
> Actually my trac install is with mod_python, but before open trac to other
> people of my job I was using fastcgi. When I open trac to use, the fastcgi
> and apache make a full overload of serverm the fastcgi install still 2
> hours, and then a I switch to mod_python.
>
> Between mod_python and fastcgi, during install tests fastcgi always is  more
> faster than  mod_python, but with multiple requests to fastcgi happ that
> overload( Linux load average > 20)
>
> Someone had any to say?

Technically, mod_python shouldn't really be slower than fastcgi as
fastgci requires an extra socket connect hop from Apache child process
to fastcgi process. If you are having problems with mod_python I'd
suggest a few things to look at.

First is whether you are running Apache with prefork MPM. If you are
then you would be getting a lot of Apache child processes being
created and each would have your whole Trac application in it. This
could be causing you to run out of physical memory and it is starting
to swap. It is recommended when using Python web applications embedded
in Apache that you use worker MPM as that reduces number of Apache
child processes and thus overall memory usage.

Second is whether your mod_python is linking with Python shared
library or not. If it isn't then the Python library has to be embedded
in mod_python module and as a result you can incur an extra 3-4MB hit
per Apache child process where static library address fixups had to be
run. Thus, ensure your Python has a shared library and that mod_python
is actually making use of it. If your mod_python.so is >1MB in size,
it is using static library.

FWIW, you may also want to look at mod_wsgi (www.modwsgi.org). This is
easier to setup than mod_python and has lower overheads. Because
mod_wsgi also has daemon mode, it is also more flexible in that it
effectively incorporates fastcgi like ability to use a separate
process as well as running in an embedded mode like mod_python.

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to