All,

There has been a few conversations and some nice work lately on adding nanosecond resolution to response-time measurements.

I wonder about what is being measured, though.

When a request is made, the TCP connection experiences several different phases:

1. Sitting in the OS's accept queue

2. Sitting in Tomcat's accept queue (this is after accept() returns and the request is added to our internal work-queue, but before a request-processing thread begins processing the request)

3. Being actively processed by a Tomcat service thread

I'm fairly sure that we are only actually measuring #3 when reporting response-time in access logs.

Would it be possible to add #2 as well?

I think it's impossible to add #1 because all of that happens before Java even gets a look at the request.

This may be more of a question of perception than anything else... while we /can/ measure response-time in ns, now... perhaps we are lying to ourselves about the actual experience of the client.

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to