Now the question is "why?" I don't see how it can just be the generation of the form, I am willing to bet it is the session and CSRF tokens.
If someone has time, we need to test a couple of scenarios. A) display a simple FORM B) display a simple FORM, but do NOT include a form.accepts in the controller C,D) Repeat a and b but with SQLFORM E) Move sessions to database and repeat C,D I still expect that even with sessions in the database you will still run into issues, as I do run into these on one of my production sites that does have session in the database. I would like to see if a implementation of a SecureSignedCookie for storing the session would solve the issue (this is what flask uses). Also, large sites such as twitter, facebook, google, etc all use SecureCookies to store session, since storing as many sessions as they use in a database would overtax their resources. -- Thadeus On Mon, Jul 19, 2010 at 3:28 AM, David Marko <dma...@tiscali.cz> wrote: > One can even user examples hosted on web2py.com with same results as I > tested on my local machines. > > #### simple temple rendering - no failed requests ############## > c:\apache\bin>ab -n 100 -c 5 > http://web2py.com/examples/template_examples/test_def > This is ApacheBench, Version 2.3 <$Revision: 655654 $> > Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ > Licensed to The Apache Software Foundation, http://www.apache.org/ > > Benchmarking web2py.com (be patient).....done > > Server Software: Apache/2.2.8 > Server Hostname: web2py.com > Server Port: 80 > > Document Path: /examples/template_examples/test_def > Document Length: 7311 bytes > > Concurrency Level: 5 > Time taken for tests: 18.656 seconds > Complete requests: 100 > Failed requests: 0 > Write errors: 0 > Total transferred: 775042 bytes > HTML transferred: 731100 bytes > Requests per second: 5.36 [#/sec] (mean) > Time per request: 932.813 [ms] (mean) > Time per request: 186.563 [ms] (mean, across all concurrent > requests) > Transfer rate: 40.57 [Kbytes/sec] received > > Connection Times (ms) > min mean[+/-sd] median max > Connect: 172 179 9.3 172 203 > Processing: 391 721 64.0 734 781 > Waiting: 188 436 111.7 391 703 > Total: 563 901 64.6 906 953 > > #### rendering form example - many failed requests apears constantly > ############## > c:\apache\bin>ab -n 100 -c 5 > http://web2py.com/examples/form_examples/form > This is ApacheBench, Version 2.3 <$Revision: 655654 $> > Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ > Licensed to The Apache Software Foundation, http://www.apache.org/ > > Benchmarking web2py.com (be patient).....done > > > Server Software: Apache/2.2.8 > Server Hostname: web2py.com > Server Port: 80 > > Document Path: /examples/form_examples/form > Document Length: 23849 bytes > > Concurrency Level: 5 > Time taken for tests: 23.203 seconds > Complete requests: 100 > Failed requests: 95 > (Connect: 0, Receive: 0, Length: 95, Exceptions: 0) > Write errors: 0 > Total transferred: 2427908 bytes > HTML transferred: 2383978 bytes > Requests per second: 4.31 [#/sec] (mean) > Time per request: 1160.156 [ms] (mean) > Time per request: 232.031 [ms] (mean, across all concurrent > requests) > Transfer rate: 102.18 [Kbytes/sec] received > > Connection Times (ms) > min mean[+/-sd] median max > Connect: 156 174 7.2 172 203 > Processing: 859 947 84.9 922 1375 > Waiting: 203 284 100.0 234 703 > Total: 1031 1121 85.6 1094 1547 > >