-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wicket,
wicket0123 wrote: | Hi Charles, | Thanks for the reply. JMeter doesn't help me here because the response | time includes network time. The reason I'm looking into the tomcat API is | because i want a way to query tomcat for the numbers. So, the metrics I am | after are: | | 1) How much time was spend in tomcat? no network You can't get this information without a real profiler, which will, of course, interfere with performance. | 2) How much time was spend on the servlet? The best you can do, here, is to write yourself a Filter (or Valve, I suppose) and simply take timestamps. As with all instrumentation, taking samples takes time. Rest assured that reading the system clock is /very/ fast. ;) I suppose if you know the total response time and the servlet time, you could simply subtract the servlet time to see how much Tomcat "overhead" is in there. Does it really matter? | 3) What is the overall average response time for a request when there are X | number of users active? To me, this all comes down to /useful/ metrics. For instance: who cares what the response time is on the server for a single request? Nobody, that's who. This last metric is the only useful one you've requested, and I would argue that you ought to do it over a network (even if it's a local one). All users will be remote. Why artificially lower your response times when everyone will have /at least/ the overhead of going over a local network segment? Unfortunately, your choices are: - - instrument your server and get inaccurate, but fine-grained data - - instrument your client and get accurate, but somewhat coarser data Just my two and a half cents (US dollar really sucks these days), - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfr4RMACgkQ9CaO5/Lv0PCYHQCfa+hDE77eSM476JmIqVpv2/ed 3DgAoKQEvRO7KJOp3swJ21sMwjAcHOX7 =2q9H -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]