On Jan 30, 12:57 pm, Graham Dumpleton <[email protected]>
wrote:
> 2010/1/30 janedenone <[email protected]>:
>
>
>
> > On Jan 30, 3:14 am, Graham Dumpleton <[email protected]>
> > wrote:
> >> BTW, what operating system is this? Don't think you have said what it was.
>
> > Sorry: CentOS 5.2
>
> >> Also might be an idea to say whether you are installing binary
> >> packages for Apache and mod_wsgi or whether compiling from source code
> >> and what versions of Apache, APR and mod_wsgi.
>
> > Apache 2.2.3/APR 1.2.7, mod_wsgi 3.1.
>
> Are though these being installed from binary RPM packages or all
> compiled from source code?

Apache/APR were provided with CentOS, mod_wsgi was compiled from
source.

> If I had to guess, the problem may be that you are using a binary RPM
> package for mod_wsgi which is compiled against a newer version of
> Apache and APR libraries than what you are running.
>
> Although there is some measure of guaranteed compatibility if using an
> Apache module compiled against older Apache than what it is being used
> with, the reverse isn't necessarily true.
>
> If you are compiling everything from source code and even recompiled
> mod_wsgi from source code when you switched from prefork to worker MPM
> and still had the problem, then I would be worried.

Just did that: Switched to worker MPM and recompiled/installed
mod_wsgi – same result.

> > I should add that my VPS only has 256 MB RAM guaranteed (1024 MB
> > dynamic). Maybe it's pointless to try to optimize with so little RAM?
> > On the other hand, the machine manages to serve all three sites (via
> > Django) with prefork MPM.
>
> For a freshly started Apache 256 MB is more than enough. Have seen
> people run Apache/mod_wsgi and Django on a 64MB VM on SliceHost. The
> trick there is using nginx proxy front end to handle static files,
> worker MPM in Apache and mod_wsgi daemon mode to get tight control on
> number of fat Python web processes and thread counts.

Ok. Is there anything in my Apache worker configuration, or in the
mod_wsgi daemon config which could be optimized? If the worker MPM
should use less memory compared to prefork in theory, I must be doing
something wrong.

Thanks again for all your help,
Jan

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