no:of requests / threads handled by TG2

36 views
Skip to first unread message

rajasekhar911

unread,
May 10, 2012, 3:51:24 AM5/10/12
to turbo...@googlegroups.com
Hi

can anyone help me on the following items ?

i am using TurboGears2.0.3

1. how do I find out the no:of requests that my server can handle in a second ? 

2.is there a way to log all the requests that are handled by tg2 ?

3. is TG2 creating any thread pool / no:of threads to handle the requests ? if yes, how do i configure this value?

thanks

Alessandro Molina

unread,
May 10, 2012, 5:27:08 AM5/10/12
to turbo...@googlegroups.com
On Thu, May 10, 2012 at 9:51 AM, rajasekhar911 <rajase...@gmail.com> wrote:
> Hi
>
> can anyone help me on the following items ?
>
> i am using TurboGears2.0.3
>

I would suggest you to upgrade to latest 2.1.5, many bugfixes and
performance improvements got in :D

> 1. how do I find out the no:of requests that my server can handle in a
> second ?
>

There are many tools that are able to do this.
I tend to prefer apache benchmark, you can launch it against your web
server and see the results.

$ /usr/sbin/ab -n 100 http://www.google.com/
Requests per second: 17.64 [#/sec] (mean)

> 2.is there a way to log all the requests that are handled by tg2 ?
>

That is easily performed by the server you are using to serve those requests.
In mod_wsgi you can enable apache access log and with paste you can
use paste.translogger.TransLogger middleware

> 3. is TG2 creating any thread pool / no:of threads to handle the requests ?
> if yes, how do i configure this value?
>

That depends again on the server that you are using.
On mod_wsgi you can tune the number of processes and threads used by
the daemon process.
On Paste you can tune the thread pool by using the threadpool_ options
in your ini file:
http://pythonpaste.org/paste-httpserver-threadpool.html

rajasekhar911

unread,
May 14, 2012, 2:42:12 AM5/14/12
to turbo...@googlegroups.com
Hi

thanks for the reply .

Let me check out your suggestions . 
Reply all
Reply to author
Forward
0 new messages