Thanks Anand and NSC,

Your methods are only working for linux, not for windows,

I am looking at these pages: 
http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading and 
http://pylonsbook.com/en/1.1/the-web-server-gateway-interface-wsgi.html.

It seems this is the only way through changing WSGI environment variables.

Do anyone know how to change environment variable in web.py?

Thanks very much.

Helend

On Friday, June 22, 2012 12:23:42 AM UTC+10, NSC wrote:
>
> I had issues with disk based sessions on apache - turns out it was in part 
> because of the threading.
>
> I solved the session issue a different way, but these settings did help, 
> and may guide you into getting apache into single thread mode.
>
> (It was the "processes=1" setting that helped me.  Maybe this will help 
> you too?)
>
> <VirtualHost *:80>
>     WSGIScriptAlias / /opt/myapp/web/main.py/
>    * WSGIDaemonProcess main processes=1 threads=25
>     WSGIProcessGroup main*
>     Alias /static /opt/myapp/web/static/
>     <Directory /opt/myapp/web/>
>         Order allow,deny
>         Allow from all
>     </Directory>
> </VirtualHost>
>
>
>
> On Thu, Jun 21, 2012 at 4:43 AM, Anand Chitipothu <[email protected]>wrote:
>
>> On Thu, Jun 21, 2012 at 9:47 AM, Helend <[email protected]> wrote:
>> > Hi,
>> >
>> > I am writing a simple web server to handle thousands of request in 
>> minute.
>> > But I have to make sure every request is completed before processing of 
>> a
>> > next request.
>> >
>> > The server is build with Xampp 1.7.7 (Apache 2.2.21, MySQL 5.5.16). 
>> mod_wsgi
>> > 3.3, python 2.6, web.py 0.36, window 2008 x64
>> >
>> > Are there any ways to it?
>>
>> Use gunicorn with single process.
>>
>> Anand
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "web.py" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/webpy?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/6ZyhD-tCbyEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to