Hi Massimo,

Good Morning. And sorry for my poor English.

Q1) when you saying it hangs are your trying from a new incognito window or 
from the same browser? It may be a session lock not a freeze.
Ans) Whenever sever freezes/hanged. We try to access our pages from 
different browser bit still get no response. At that time server never 
accept any request. The only option is to restart server.

Q2) are using apache? Don't it has memory issues. Use Nginx
Ans) As I already explained that I am running web2py using python command 
as mentioned below:. Not usng ang any server as apache/Nginx, etc.
        python web2py.py -a <mypassword> -c 138c3b68d25b8a7d.crt -k 
keyfile.key --ca-cert gd_bundle-g2-g1.crt -i <IP> -p <port>
        
Q3) do you have processes that may take a lot of time? consider adding 
session.forget() at the beginning of those actions and/or move the 
computation to a background task
Ans) I am not using session.forget(), as I maintain session expire after 
20min. But 20 min is enough for any process, which perform heavy task.

Q4) are you using sqlite? It does serialize all writes and locks the DB in 
the process. Have you tried postgresql?
Q5) if you are using postgresql, have you checked the database logs? 
Ans 4 & 5) I am using mysql database server only. Initially I think that 
large data process might create problem, but same table with same data 
works fine with PHP and JSF/Icefaces application, server takes time to 
process, but never be down like web2py.



Please let me know, I am running web2py directly using python is the 
problem, if it is, let me know the best server either apache/Nginx that can 
I use?.
Or Can increase memory used by python at runtime?. 

Please help me.

Regards
Narendra Kumar

On Monday, September 4, 2017 at 7:17:25 PM UTC+5:30, Narendra Kumar wrote:
>
> Hi,
>
> I stuck on the problem, as web2py server freezes/hang frequently. Almost 
> daily. 
> I tried to track the reason, but I did not get any possible reason. 
> Because I think this happen due to large amount of data processing and 
> create file with large data or try to download big files. But later I found 
> that It freezes/hangs any time.
>
> Please help me.
>
> Regards
> Narendra Kumar
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to