Hi everyone.
I'm using a big server to run my site and I'm having issues when trying to
do some performance tests in the server.
Here are the specs of the server:
Ubuntu 12.04.3 x64 3.2.0-55-virtual
60GB RAM
Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz (16 cores)
*Python 2.7.3*
*libapache2-mod-wsgi 3.3-4build1*
*apache2 2.2.22-1ubuntu1.4*
*apache2-mpm-worker 2.2.22-1ubuntu1.4*
*Server version: Apache/2.2.22 (Ubuntu)*
Server built: Jul 12 2013 13:37:15
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.6, APR-Util 1.3.12
Compiled using: APR 1.4.6, APR-Util 1.3.12
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="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf
<IfModule mpm_worker_module>
ServerLimit 900
StartServers 900
MinSpareThreads 100
MaxSpareThreads 500
ThreadLimit 6000
ThreadsPerChild 32
MaxClients 28800
MaxRequestsPerChild 0
</IfModule>
www-data limits
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
memory(kbytes) unlimited
locked memory(kbytes) 64
process unlimited
nofiles 65535
vmemory(kbytes) unlimited
locks unlimited
The problem I'm seeing in my logs are these messages:
*[Wed Feb 19 03:31:04 2014] [error] [client 192.168.6.17] (2)No such file
or directory: mod_wsgi (pid=11996): Unable to connect to WSGI daemon
process 'ztrustee' on '/var/run/apache2/wsgi.1342.0.1.sock' after multiple
attempts.*
*[Wed Feb 19 03:31:04 2014] [error] [client 192.168.6.16] Premature end of
script headers: index.wsgi*
*[Wed Feb 19 18:01:02 2014] [error] [client 192.168.6.8] (4)Interrupted
system call: mod_wsgi (pid=29224): Unable to connect to WSGI daemon process
'ztrustee' on '/var/run/apache2/wsgi.1331.0.1.sock' after multiple
attempts.*
I already added this directive:
*WSGIApplicationGroup %{GLOBAL}*
And also checked the permission/prefix problem in:
*/var/run/apache2*
These problems appear when doing performance tests (using 1000 ~ 1500
clients), however the load in the server is not that much.
MAX RAM ~5 G
MAX CPU ~200% (MAX is 1600%)
And the clients are seeing this message:
500 Internal Server Error
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
webmaster@ztubuntuxlarge and inform them of the time the error
occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.
Apache/2.2.22 (Ubuntu) Server at 192.168.6.13 Port 443
Hopefully someone can point me in the right direction.
Regards!
--
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/groups/opt_out.