WebFaction certainly looks to be making this very hard.
Lets try a few more places and if what I am looking for isn't there, I think
you are out of luck as far as easy path goes.
So, what do you get for:
ls -las /usr/local/bin
ls -las /usr/local/sbin
ls -las /usr/local/include
BTW, the Apache configuration you are using has problems as well. You are
actually wasting memory on the daemon process configuration.
As is the maximum number of concurrent requests Apache itself can handle is 5.
Your daemon processes are though setup to be able to handle 24. They can never
do that though as Apache can only proxy at most 5 at any one time to the daemon
processes.
You can halve your memory usage and likely see no difference in performance by
using:
WSGIDaemonProcess django_app threads=5
There are also issues with MinSpareThreads and MaxSpareThreads but Apache will
correct that and result is no different.
I could suggest another tweak, but little point at the moment as other issues
in Apache 2.2 nullify the usefulness of it anyway.
I really hope that isn't want WebFaction generates as a default.
BTW, what other Apache modules are in:
$HOME/webapps/django_app/apache2/modules
Graham
On 29/01/2015, at 8:04 PM, Paul Royik <[email protected]> wrote:
> Contents of httpd.conf
>
> ServerRoot "/home/simamura/webapps/django_app/apache2"
>
> LoadModule dir_module modules/mod_dir.so
> LoadModule env_module modules/mod_env.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule wsgi_module modules/mod_wsgi.so
> LoadModule alias_module modules/mod_alias.so
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> CustomLog /home/simamura/logs/user/access_django_app.log combined
> ErrorLog /home/simamura/logs/user/error_django_app.log
> KeepAlive Off
> Listen 20241
> MaxSpareThreads 3
> MinSpareThreads 1
> ServerLimit 1
> SetEnvIf X-Forwarded-SSL on HTTPS=1
> ThreadsPerChild 5
> WSGIDaemonProcess django_app processes=2 threads=12
> python-path=/home/simamura/webapps/django_app:/home/simamura/webapps/django_app/mathsite:/home/simamura/webapps/django_app/lib/python2.7
> WSGIProcessGroup django_app
> WSGIRestrictEmbedded On
> WSGILazyInitialization On
> WSGIScriptAlias / /home/simamura/webapps/django_app/proj/proj/wsgi.py
>
>
> $HOME/webapps/django_app/apache2/bin/httpd.worker -V
>
> Server version: Apache/2.2.25 (Unix)
> Server built: Sep 9 2013 06:59:27
> Server's Module Magic Number: 20051115:33
> Server loaded: APR 1.3.9, APR-Util 1.3.9
> Compiled using: APR 1.3.9, APR-Util 1.3.9
> Architecture: 64-bit
> Server MPM: Worker
> threaded: yes (fixed thread count)
> forked: yes (variable process count)
> Server compiled with....
> -D APACHE_MPM_DIR="server/mpm/worker"
> -D APR_HAS_SENDFILE
> -D APR_HAS_MMAP
> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> -D APR_USE_SYSVSEM_SERIALIZE
> -D APR_USE_PTHREAD_SERIALIZE
> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> -D APR_HAS_OTHER_CHILD
> -D AP_HAVE_RELIABLE_PIPED_LOGS
> -D DYNAMIC_MODULE_LIMIT=128
> -D HTTPD_ROOT="/usr/local/apache2"
> -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> -D DEFAULT_ERRORLOG="logs/error_log"
> -D AP_TYPES_CONFIG_FILE="conf/mime.types"
> -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
> ls -las /usr/local
>
> total 108
> 4 drwxr-xr-x. 23 root root 4096 Jun 10 2014 .
> 4 drwxr-xr-x. 15 root root 4096 Sep 14 2011 ..
> 4 drwxr-xr-x 3 root root 4096 Dec 12 2012 apache2-mpm-peruser
> 4 drwxr-xr-x. 2 root root 4096 Jan 28 18:37 bin
> 4 drwxr-xr-x 3 root root 4096 Dec 5 2010 burnintest
> 4 drwxr-xr-x. 5 root root 4096 Dec 30 2013 etc
> 4 drwxr-xr-x. 2 root root 4096 Sep 23 2011 games
> 4 drwxr-xr-x. 22 root root 4096 Oct 20 07:45 include
> 4 drwxr-xr-x. 21 root root 4096 Jan 28 18:37 lib
> 4 drwxr-xr-x. 3 root root 4096 Dec 12 2012 lib64
> 4 drwxr-xr-x. 2 root root 4096 Feb 20 2014 libexec
> 4 drwxr-xr-x 7 root root 4096 Jul 27 2014 maldetect
> 4 drwxr-xr-x 3 root root 4096 Dec 12 2012 man
> 4 drwxr-xr-x 5 nagios nagios 4096 Jun 10 2014 nagios
> 0 lrwxrwxrwx 1 root root 14 Dec 12 2012 pgsql -> /usr/pgsql-9.1
> 4 drwxr-xr-x 3 root root 4096 Dec 12 2012 php
> 4 drwxr-xr-x 2 root root 4096 Dec 12 2012 pysqlite2-doc
> 4 drwxr-xr-x 6 root root 4096 Dec 12 2012 python3.3
> 4 drwxr-xr-x 5 root root 4096 Sep 1 2013 ruby1.8.7ee
> 4 drwxr-xr-x. 2 root root 4096 Jan 16 14:15 sbin
> 4 drwxr-xr-x. 12 root root 4096 Dec 30 2013 share
> 4 drwxr-xr-x. 2 root root 4096 Sep 23 2011 src
> 20 drwxr-xr-x 2 root root 20480 Jan 29 03:00 users
> 4 drwxr-xr-x 7 root root 4096 Dec 12 2012 Zend
>
> Thank you.
> Paul.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.