kazukin6 schrieb am 13.12.2008 um 18:15:33 (-0800):
> 1) there is maxThreads=100 in context.xml 
> 2) sending 100 simultaneous requests to one servlet, for example ab.exe -n
> 100 -c 100 {address}
> 3) in the servlet's own log for performance it shows around only 200-500 ms
> per request
> 4) in the  ab.exe log it shows around 7 seconds(!) per request

It doesn't, at least not in the log you're showing here.

> full log of ab.exe is
> ====================================================
> Concurrency Level:      100
> Time taken for tests:   16.656 seconds

That's the time taken altogether.

> Complete requests:      100
> Failed requests:        0
> Write errors:           0

Everything fine.

> Total transferred:      2770200 bytes
> HTML transferred:       2742700 bytes
> Requests per second:    6.00 [#/sec] (mean)
> Time per request:       16656.250 [ms] (mean)

This is the total time divided by, well, "request": You have only one
request in this sense, because you send all of your total 100 requests
in parallel. To verify, try:

    ab -n 100 -c 10 http://localhost/

That should get you about a tenth of the time taken altogether.

> Time per request:       166.563 [ms] (mean, across all concurrent requests)
> Transfer rate:          162.42 [Kbytes/sec] received

Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to