-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tony,

On 10/4/2009 10:13 PM, Tony Anecito wrote:
> What class method for Tomcat would show the response time? I am using
> the jvirtualvm to profile the code (simplest and easy to use) but I
> need to know the name/method that would be closest to the socket to
> get an idea how fast the container/app is.

Look at the AccessLogValve that comes with Tomcat. That's the most
user-servicable component that can get you what you need.

If you want to instrument Tomcat itself, you'll probably have to look at
modifying whatever Connector you are using (HTTP, AJP, etc.). If you
want to go bare-metal, you can always attach a packet sniffer to the TCP
port and time everything. For that, you'll want Wireshark or even
libpcap if you don't really care about navigating the packets in a
convenient way.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrLbyoACgkQ9CaO5/Lv0PCfVgCguD7vWRm9NMS/xBAQIihOoqg1
8doAni7anMwGEMtB3GOvo9oNz5sPWS3V
=X5vg
-----END PGP SIGNATURE-----

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

Reply via email to