2009/2/27 Jason Broyles <[email protected]>:
>
> I have my server setup like the below. For some reason one of the
> apache processes keeps jumping up to 263mb of ram. Does anyone know
> why this might be? Also, once I restart Apache, the total memory usage
> is around 40mb. Then when I access sites each site uses about 24mb of
> ram. This memory is never released though. Usually if everything is
> running normal it can run for weeks like that. This is besides the
> problem of the 263mb process.

Can you provide more information about what the application is
implemented in, eg. Django, and what the application is doing. Have
you been able to identify specific URL requests as causing the jump in
memory usage?

See also comments blow.

> Apache info
>
> Architecture:   64-bit
> Server MPM:     Worker
> threaded:     yes (fixed thread count)
> forked:     yes (variable process count)
>
>
> Example of one site from httpd.conf
>
> KeepAlive Off
> ServerLimit 2
>
> <VirtualHost *>
>
>  ServerName www.somesite.com
>  ServerAlias *somesite.com
>
>  WSGIDaemonProcess somesite user=webuser group=webuser processes=1

Don't provide option 'processes=1'. It will default to one process
anyway and setting this flag has side affect of marking
wsgi.multiprocess as True rather than False. Yeah, sounds back to
front, but done for a reason.

> threads=10 maximum-requests=100

Why is maximum requests so low.

> inactivity-timeout=172800

Add the option:

  display-name=%{GROUP}

This will allow you to use 'ps' command to properly identify the
process as being the WSGI daemon process.

Otherwise ensure you have LogLevel directive in Apache set to 'info'.
That will allow you to get pid for WSGI daemon process from Apache
error logs and identify it as the fat process.

>  WSGIProcessGroup somesite
>
>  WSGIScriptAlias / /home/webuser/somesite.com/somesite.wsgi
>
> </VirtualHost>

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