Re: Checking tomcat metrics in a non-intrusive way

2008-04-02 Thread wicket0123
What is processingTime unit, millisecond? Is that the sum of all requests processed? And, to get the average, I divide that by requestCount? Rainer Jung-3 wrote: > >> So, I looked at JMX Console and see that under RequestProcessor for >> Catalina >> it shows all the HTTP request processor thr

Re: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread Rainer Jung
So, I looked at JMX Console and see that under RequestProcessor for Catalina it shows all the HTTP request processor threads. And, for each, it shows an attribute called "requestProcessingTime" which I think is the time it took to process that request. So, I was thinking to write a script to que

Re: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread wicket0123
Yup. DB will always be a bottleneck in any application, so we load balance it for optimum performance. So, we can "forget" the DB bottleneck since we add another DB if it starts hitting our threshold. So, the first test i did was to find out the DB performance and its maximum values. That is c

RE: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread Peter Crowther
> From: wicket0123 [mailto:[EMAIL PROTECTED] > [W]e want every request to be processed within 25 > millisecods. [...] > 2. Ad server process the request which include app. code and > talking to DB Your database communication, queries and data will have to be very, very heavily optimised if you wa

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Martin Gainty
L PROTECTED]> To: Sent: Friday, March 28, 2008 4:44 PM Subject: Re: Checking tomcat metrics in a non-intrusive way > > First, thank you all for the responses. They are all good. > > Rainer, I'm actually doing something similar to what you suggested. I wrote > a script t

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wicket, wicket0123 wrote: | Since we cannot control anything that happens after a request leaves the | server, we want every request to be processed within 25 millisecods. The | order of execution is very simple: | | 1. Client send ad request with s

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread wicket0123
First, thank you all for the responses. They are all good. Rainer, I'm actually doing something similar to what you suggested. I wrote a script that queries the server using JMX proxy for the metrics I want. I do this every second. My concern is that it is too intrusive since i'm doing it eve

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: |> If I ping www.google.com from my home computer, I get a 14.593ms |> average roundtrip time. | | Lucky you. It's rare I see under 200. Google must have a shipping container full of servers somewhere in my neighborhood

RE: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Peter Crowther
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > wicket0123 wrote: > | JMeter reports that for 500 concurrent users making request to our > | application, the average response time was 1 second. That already > | broke our SLA which is 15 milliseconds. I presume you've already done such obv

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wicket, wicket0123 wrote: | If the container adds a lot of overhead, we may want to | switch to other containers. The only container I know that people claim to have less overhead is Jetty. You will have the same problem instrumenting /that/ as well

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Rainer Jung
wicket0123 schrieb: I want to check tomcat response time for requests when I run, say 500 concurrent users, on the server. I use the default setttings for tomcat which means my maxThreads = 40. I have read from some articles suggesting to use JMX Console to monitor tomcat. But, then i read fro

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Alan Chaney
In the real world what network connections will exist between you and your real clients? How many ports do you have on your server? How fast are they? How big are the pages being requested? Including images, css files etc? If you have 500 concurrent users will you have 500 times the traffic

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123
It matters to us because we are talking about response time of under 10ms for 500 concurrent users. Our internal application metrics are in the nano-seconds. If the container adds a lot of overhead, we may want to switch to other containers. For scalability testing, our testing is done in a clo

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Checking tomcat metrics in a non-intrusive way > > Rest assured that reading the system clock is /very/ fast. ;) Well... not always, these days. On multi-socket systems, if the system architecture guarantees tha

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Christopher Schultz
-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

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
> From: wicket0123 [mailto:[EMAIL PROTECTED] > Subject: RE: Checking tomcat metrics in a non-intrusive way > > JMeter doesn't help me here because the response > time includes network time. Which is exactly why I suggested running JMeter on the same LAN segment, if not t

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123
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 netwo

RE: Checking tomcat metrics in a non-intrusive way

2008-03-26 Thread Caldarale, Charles R
> From: wicket0123 [mailto:[EMAIL PROTECTED] > Subject: Checking tomcat metrics in a non-intrusive way > > I want to check tomcat response time for requests when I run, > say 500 concurrent users, on the server. Any measurements made within Tomcat itself are going to have some effect on performa