I'm serving up 6 Django apps on Ubuntu Gutsy with Ngninx 0.5.26 for a
frontend and Apache 2.2.4 prefork MPM (tried both mod_python and mod_wsgi)
serving Django rev. 6898. MySQL 5.045, Python 2.5.1

These are low traffic sites, 2 a bit more complex, 1 Satchmo install, and 3
very simple sites mostly consisting of generic views. Debug is off on all of
them.

Each Apache instance starts off using 20-30M and over a couple hours will
creep up to 90-120M. This seems excessive and I'm not sure where to track
down the problem. Relevant Apache details below:

$ cat /etc/apache2/apache2.conf
ServerName "myserver.com"
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile /var/run/apache2.pid
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild 100
</IfModule>
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

User www-data
Group www-data

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

DefaultType text/plain

HostnameLookups Off

ErrorLog /var/log/apache2/error.log

LogLevel warn

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


ServerTokens Full

ServerSignature On

# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/


#############
$ ls /etc/apache2/mods-enabled/
alias.conf       authn_file.load       authz_host.load  autoindex.load
dir.load   mime.load        negotiation.conf  setenvif.load  status.conf
alias.load       authz_default.load    authz_user.load  cgi.load
env.load   mod_python.load  negotiation.load  ssl.conf       status.load
auth_basic.load  authz_groupfile.load  autoindex.conf   dir.conf
mime.conf  mod_wsgi.load    setenvif.conf     ssl.load


#############
$ cat /etc/apache2/sites-enabled/mysite.com
<VirtualHost *:9000>
        ServerName mysite.com
        ServerAdmin [EMAIL PROTECTED]
        ErrorLog /var/log/apache2/mysite.com.log
        WSGIScriptAlias / /django/projects/mysite/wsgi.py
#        SetHandler python-program
#        PythonHandler django.core.handlers.modpython
#        SetEnv DJANGO_SERVER production
#        SetEnv DJANGO_SETTINGS_MODULE mysite.settings
#        PythonDebug Off
#        PythonPath "['/django/projects'] + sys.path"
</VirtualHost>

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

Reply via email to