On my site I use Django with prefork Apache( together with mod_python)
it works great, but suffers from the slashdot effect, from time to
time.
I can not use worker type of Apache because Django is not safe-thread.
( I still use Django 0.9 ).
Could mod_wsgi help?
Thank you for reply
L.
Graham,
Thank you for your help.
Here are results:
Finished 5000 requests
Server Software:Apache/2.2.3
Server Hostname:www.
Server Port:80
Document Path: /
Document Length:43708 bytes
Concurrency Level: 1
Time taken for tests: 363.300677
Graham,
Thank you for your reply
Here is the output
Server Software:Apache/2.2.3
Server Hostname:www
Server Port:80
Document Path: /
Document Length:43708 bytes
Concurrency Level: 3
Time taken for tests: 383.4878 seconds
Complete requests:
Graham,
Thank you for your reply.
I still do not know what configuration should I use.
If you have a look at the results from
ab -c 3 -n 5000 http://www/
and
ab -n 5000 http://yoursite/
which are beeter for my site and how should I set up daemon mode?
Shall I use processes=3 threads=1 or
Graham,
Thank you again for your reply.
The applications are internet shops, and the requests do not take a
long time.
( But what is a long time ?)
Is there a rule that the longer requests the more threads should be
enabled? Or the longer requests the more processes should be enabled?
Thank you
I successfully installed mod_wsgi on Debian with Apache/2.2.3 and it
works OK.
Now I would like to install the mod_wsgi on another server. So I used
more or less the same configuration and I believed it would work too.
But it does not .
On the other server there is
Apache/2.0.59 (Trustix
Graham,
Thank you for your time and explanations
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send
Graham,
Thank you for your reply.
So far I have used mod_python with Django and it worked. I have not
make any changes regarding User/Group .
Here is the beginning of the error log
[Thu Apr 09 08:22:14 2009] [notice] suEXEC mechanism enabled
(wrapper: /usr/sbin/suexec)
[Thu Apr 09 08:22:15
Graham,
Thank you for your help.
/var/log/httpd/mysite-err.log
file is empty
Run:
ps -ef | egrep '(PID|wsgi|httpd)'
Here is the output
UIDPID PPID C STIME TTY TIME CMD
root 3370 1 0 08:32 ?00:00:00 httpd
httpd 3371 3370 0 08:32 ?
Graham,
Thank you for your reply.
So post output of grep httpd /etc/passwd
The output is
httpd:x:109:109:httpd user:/no/dir:/bin/false
rychlost:x:504:100::/home/httpd/sites/rychlost:/bin/bash
Use:
WSGIDaemonProcess myserversite home=/tmp processes=3 threads=1
display-name=%{GROUP}
Graham,
Thank you for the reply;
here are outputs
ldd /usr/lib/apache/mod_python.so
linux-gate.so.1 = (0xe000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb7e42000)
libdl.so.2 = /lib/libdl.so.2 (0xb7e3f000)
libutil.so.1 = /lib/libutil.so.1 (0xb7e3b000)
Graham,
Thank you for your reply.
I tried to remove all dependecies on mod_python, so I removed
LoadModule python_module modules/mod_python.so
and all virtual hosts using mod_python.
But when I checked Apache error_log
I still have mod_python/3.2.8 loaded,
.
...
Apache/2.0.59 (Trustix
Graham,
Thank you very much for your time and help.
The culprit was the mod_python.I had to remove it and now it works
great.
The mod_python was loaded in two places (via include too).
Restart works for me in the same way as stop and start.
But is there a way how to find out how many
Graham,
Thank you for your reply.
I use prefork version and I received that message under real traffic.
How should I modify the httpd.conf ?
Thank you for your help
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Graham,
Thank you for your reply.
Here is the settings
# prefork MPM
StartServers 7
MinSpareServers 5
MaxSpareServers 17
MaxClients 60
MaxRequestsPerChild 0
Thank you for your help.
L.
--~--~-~--~~~---~--~~
You received this message
Graham,
Thank you very much for your help.
I have changed the settings according to your advice.
Best regards,
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
modwsgi group.
To post to this group, send email to
I have installed Apache/2.0.59 with MPM prefork with mod_wsgi and
it works.
But I wanted to installed MPM worker so I compiled and installed
Apache/2.0.63 with MPM worker to a different directory but have not
installed again mod_wsgi .Instead I copied the installed mod_wsgi to
the modules
Graham,
Thank you for your reply.
So I tried to rebuild the mod_wsgi but it finds the old Apache
( prefork version) 2.0.59
root@ /mod_wsgi-2.4# ./configure
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 2.0.59
checking for python... /usr/bin/python
Dear Graham,
Thanks for the reply.I installed mod_wsgi with MPM worker and it
works now.But I could not see the differences, regarding memory using,
when MPM worker is used in comparison with MPM prefork.Must I change
mod_wsgi setting anyhow? I use daemon mode with processes=3 threads=1
Thank
Graham,
Thank you the explanation.
So I am recommended to give instance 2 or 3 processes. and set
threads =1 .
But if one virtual server has about 1500 times more requests ( and
allows files uploading) than other virtual servers, how should I
set this one server?
In the same way?
Thank you
20 matches
Mail list logo