Daniel,

On 12/1/23 00:09, Daniel Andres Pelaez Lopez wrote:
Christopher,

So... when a connection is established, save the current timestamp on
the connection. When it closes, take the delta of the
start-of-connection and end-of-connection, and add it to a bounded queue
(say, 100? 1000?) of most-recent-connection-lifetimes. Any time you
request the average from the bean, it does the math on the whole set?


That makes totally sense, any way to listen those events in Tomcat?

Not really. It's probably something that would have to be implemented internally to Tomcat. The trick is iterating over a list of samples while that list is being mutated.

I was just trying to understand what you were looking for.

-chris

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

Reply via email to