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