You can look at db.stat and start your app with profiler. Look in the
generic.thml view for db.stat you have to the little piece of code in your
view to access it. You can serach de groop for the profiler or check the
book section how to start the shell I think there is explanation there...

Richard


On Fri, Apr 5, 2013 at 8:31 PM, Tito Garrido <titogarr...@gmail.com> wrote:

> Hi Folks!
>
> I am trying to use ab to benchmark my website that is hosted on linode
> (512MB RAM) using nginx + mysql + web2py, installed via the install script
> provided in the book.
>
> Should I point ab to my index? I have been running some tests and the
> results are scary...
>
> Server Software:        nginx/1.1.19
> Server Port:            80
>
> Document Path:          /
> Document Length:        385313 bytes
>
> Concurrency Level:      20
> Time taken for tests:   329.128 seconds
> Complete requests:      1000
> Failed requests:        980
>    (Connect: 0, Receive: 0, Length: 980, Exceptions: 0)
> Write errors:           0
> Total transferred:      385586379 bytes
> HTML transferred:       385290379 bytes
> Requests per second:    3.04 [#/sec] (mean)
> Time per request:       6582.563 [ms] (mean)
> Time per request:       329.128 [ms] (mean, across all concurrent requests)
> Transfer rate:          1144.08 [Kbytes/sec] received
>
> Connection Times (ms)
>               min  mean[+/-sd] median   max
> Connect:      172  216  58.5    213    1423
> Processing:  3037 6337 1605.4   6233   13805
> Waiting:      305  387 132.0    369    2046
> Total:       3270 6553 1609.1   6438   14012
>
> Percentage of the requests served within a certain time (ms)
>   50%   6438
>   66%   7089
>   75%   7516
>   80%   7776
>   90%   8652
>   95%   9288
>   98%  10138
>   99%  11540
>  100%  14012 (longest request)
>
> I know that it is a complex question, but what can I do to improve the
> performance of my website? I have followed the recommendations from the
> but, I have put migration=False etc...
>
> Thanks in advance,
>
> Tito
>
>
> --
>
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
>
> --
>
> ---
> 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/groups/opt_out.
>
>
>

-- 

--- 
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/groups/opt_out.


Reply via email to