python 2.7.8 64bit, Linux. 
My rig is "heavily armored" but it shouldn't matter for this case: just for 
completeness, it's a 6 core xeon x5660 , 24GB RAM, running *buntu 14.10.

test scenario1:
console1) python web2py.py -a mypwd
console2) ab -n 1000 http://127.0.0.1:8000/welcome/default/index

raises the memory usage from 24MB (before 1st request coming in) to ~60MB. 
stays that way (from 57 to 62) even after 100 rounds of 1000 requests, i.e. 
100k requests. Tested versions ranging from 2.9.6 to 2.9.12 and trunk... 
behaviour is pretty much the same.

test scenario2:
console1) python web2py.py -a mypwd
console2) ab -n 1000 http://127.0.0.1:8000/memory_leak/default/index

raises the memory usage from 24MB (before 1st request coming in) to ~72MB. 
stays that way (from 69 to 72) even after 100 rounds of 1000 requests, i.e. 
100k requests. Tested versions ranging from 2.9.6 to 2.9.12 and trunk... 
also here, behaviour is pretty much the same

my memory_usage.log reports something like this
http://127.0.0.1:8000/memory_leak 75.5234375
......
http://127.0.0.1:8000/memory-leak 77.25
http://127.0.0.1:8000/memory-leak 76.53125
.......
http://127.0.0.1:8000/memory-leak 77.44921875

in over 200k lines (restarted the 100k round two times, just to be sure) it 
never goes past 78.16015625


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