On 26/08/2014, at 7:51 AM, Jennifer Dai <[email protected]> wrote:

> My python code is running very slow via mod_wsgi in the apache server of  
> windows. I tried to start the same code using subprocess methodology and it 
> turned much fast for the same code. Do you know how to improve the in-process 
> performance of python code?

Can you supply what the Apache MPM settings you are using? That is, what are 
these set to:

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
<IfModule mpm_winnt_module>
    ThreadsPerChild      150
    MaxRequestsPerChild    0
</IfModule>

Also explain how you have setup your WSGI application with mod_wsgi? That is, 
what mod_wsgi directives are you using.

Also explain what Python web frameworks you might be used and also what you 
mean by 'subprocess methodology'.

FWIW, Windows is not in general a good platform for hosting Python web 
applications unless you have a specific tie in requirement to Windows.

Graham

-- 
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.

Reply via email to