I am using now redis for session handling on the same machine of the 
webserver and got rid of big fcntl.flock lock. Thank you so much for your 
help!

El martes, 18 de julio de 2017, 23:04:33 (UTC-5), Bernardo Leon escribió:
>
> Thank you for your answer, Indeed I am using several ajax requests and I 
> am not able to use session.forget(response) on my components since I need 
> the session information. I have installed redis to test but now I am facing 
> another problem that I have detailed here: 
> https://groups.google.com/forum/#!topic/web2py/fFdQES5Z6oM It seems that 
> now I am not able to log into the application if I try to store sessions on 
> redis, I am sorry to bother and thank you again!
>
> El lunes, 17 de julio de 2017, 19:23:55 (UTC-5), Leonel Câmara escribió:
>>
>> That's probably caused by sessions, file based sessions lock the file in 
>> the filesystem until you're done with them, you can spend some time there 
>> if you do a lot of parallel ajax requests.  
>>   
>> The first step is to call session.forget(response) as soon as you can in 
>> controllers that do not write to the session.
>>
>> If that doesn't solve your slowness problem it's time to look into using 
>> redis to store sessions.
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to