Re: Monitoring Tomcat - Delta Values

2013-05-06 Thread Shanti Suresh
Greetings Leon et al,


On Fri, May 3, 2013 at 6:36 PM, Leon Rosenberg rosenberg.l...@gmail.comwrote:

 Hello Shanti,



 yes it does:
 https://confluence.opensource.anotheria.net/display/MSK/MoSKito+Central

 https://confluence.opensource.anotheria.net/display/MSK/HowTo+Run+moskito-central+in+embedded+mode


 Thank you!



 every second is maybe a little overkill, but possible. What amount of
 traffic does your application serve, that you need so detailed data


Yes, per minute is okay for the most part.  I am used to 15second metrics
from some profiling tools I have at an earlier job.

My homegrown stuff gathers metrics every minute.  Many times I need to
co-relate certain events and observe what happened at a certain time on a
certain day in the past.  For e.g., Nagios might complain that it couldn't
talk to Tomcat.  Or that the load on the system was high.  If this happened
over the weekend or at night, and I am not alerted, I would like to go back
and check how the JVM and O.S.-related metrics stacked up; especially the
usual suspects.

Thanks!

   -Shanti


Re: Monitoring Tomcat - Delta Values

2013-05-04 Thread evernat
Hi Christopher and all,

Since JavaMelody is quite often named to monitor Tomcat in this mailing list
and is open-source, JavaMelody could be added in the FAQ/Monitoring wiki
page indeed. I can send a one phrase description if you want.

Or can someone add me in the ContributorsGroup of the Tomcat wiki, so that I
am able to do it?
My wiki username is EmericVernat

- Emeric


Darryl Lewis-2 wrote
 My choice of weapon is Melody: http://code.google.com/p/javamelody/





--
View this message in context: 
http://tomcat.10.x6.nabble.com/Monitoring-Tomcat-Delta-Values-tp4998588p4998617.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

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



Re: Monitoring Tomcat - Delta Values

2013-05-04 Thread Konstantin Kolinko
2013/5/4 evernat ever...@free.fr:
 Hi Christopher and all,

 Since JavaMelody is quite often named to monitor Tomcat in this mailing list
 and is open-source, JavaMelody could be added in the FAQ/Monitoring wiki
 page indeed. I can send a one phrase description if you want.

 Or can someone add me in the ContributorsGroup of the Tomcat wiki, so that I
 am able to do it?
 My wiki username is EmericVernat


Added.

Best regards,
Konstantin Kolinko

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



RE: Monitoring Tomcat - Delta Values

2013-05-03 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Monitoring Tomcat - Delta Values

 I was wondering if anyone could recommend an existing tool to capture
 that data, compute the deltas, etc. or if folks just roll their own?

I believe moskito does this already.

http://moskito.anotheria.net/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Rainer Jung
On 03.05.2013 18:13, Caldarale, Charles R wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Monitoring Tomcat - Delta Values
 
 I was wondering if anyone could recommend an existing tool to capture
 that data, compute the deltas, etc. or if folks just roll their own?
 
 I believe moskito does this already.
 
 http://moskito.anotheria.net/

and there's Jolokia in combination with jmx4perl:

http://www.jolokia.org/

http://search.cpan.org/~roland/jmx4perl/
http://search.cpan.org/~roland/jmx4perl/scripts/jmx4perl

which fits nicely together with nagios.

Although AFAIR last time it couldn't do my favorite quotient of
deltas, but until now I haven't found a standard tool doing that.

Average response time in last intervall = delta(cumulatedResponseTime)/
  delta(RequestCount)

Tomcat provides cumulatedResponseTime and RequestCount per Servlet,
Webapp and globally, but unfortunately the tools lack for this one.

Regards,

Rainer


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



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Jess Holle

On 5/3/2013 11:58 AM, Rainer Jung wrote:

Although AFAIR last time it couldn't do my favorite quotient of
deltas, but until now I haven't found a standard tool doing that.

Average response time in last intervall = delta(cumulatedResponseTime)/
   delta(RequestCount)

Tomcat provides cumulatedResponseTime and RequestCount per Servlet,
Webapp and globally, but unfortunately the tools lack for this one.
You can always add an MBean for such things -- and for cumulative CPU 
time per request, cumulative time spent blocked and waiting per request, 
etc, etc.


[Been there done that.]


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



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Rainer Jung
On 03.05.2013 19:03, Jess Holle wrote:
 On 5/3/2013 11:58 AM, Rainer Jung wrote:
 Although AFAIR last time it couldn't do my favorite quotient of
 deltas, but until now I haven't found a standard tool doing that.

 Average response time in last intervall = delta(cumulatedResponseTime)/
delta(RequestCount)

 Tomcat provides cumulatedResponseTime and RequestCount per Servlet,
 Webapp and globally, but unfortunately the tools lack for this one.
 You can always add an MBean for such things -- and for cumulative CPU
 time per request, cumulative time spent blocked and waiting per request,
 etc, etc.

We do have the above cumulative stuff for Tomcat as MBeans. But if you
want the above statistics on a client controlled interval, the client
needs to be able to do quotient of deltas. Haven't seen any standard
client that can do that yet (they can do deltas and rates and some
quotients, but not the needed combination). So that's something one
might need to implement oneself.

Regards,

Rainer



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



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Jess Holle

On 5/3/2013 12:26 PM, Rainer Jung wrote:

On 03.05.2013 19:03, Jess Holle wrote:

On 5/3/2013 11:58 AM, Rainer Jung wrote:

Although AFAIR last time it couldn't do my favorite quotient of
deltas, but until now I haven't found a standard tool doing that.

Average response time in last intervall = delta(cumulatedResponseTime)/
delta(RequestCount)

Tomcat provides cumulatedResponseTime and RequestCount per Servlet,
Webapp and globally, but unfortunately the tools lack for this one.

You can always add an MBean for such things -- and for cumulative CPU
time per request, cumulative time spent blocked and waiting per request,
etc, etc.

We do have the above cumulative stuff for Tomcat as MBeans. But if you
want the above statistics on a client controlled interval, the client
needs to be able to do quotient of deltas. Haven't seen any standard
client that can do that yet (they can do deltas and rates and some
quotients, but not the needed combination). So that's something one
might need to implement oneself.
I meant an MBean that does the deltas and quotients itself, of course, 
e.g. logging the results periodically.



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



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Shanti Suresh
On Fri, May 3, 2013 at 12:58 PM, Rainer Jung rainer.j...@kippdata.dewrote:
On 03.05.2013 18:13, Caldarale, Charles R wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Monitoring Tomcat - Delta Values

 I was wondering if anyone could recommend an existing tool to capture
 that data, compute the deltas, etc. or if folks just roll their own?

 I believe moskito does this already.

 http://moskito.anotheria.net/

and there's Jolokia in combination with jmx4perl:

http://www.jolokia.org/ http://www.jolokia.org/

 http://search.cpan.org/~roland/jmx4perl/
 http://search.cpan.org/~roland/jmx4perl/scripts/jmx4perl

On Fri, May 3, 2013 at 1:53 PM, Jess Holle je...@ptc.com wrote:

I meant an MBean that does the deltas and quotients itself, of course,
e.g. logging the results periodically.

I am interested in trending of the metrics - so data for four months, let's
say.
- Does moskito have a way of storing data?  With Jolokia, would you
interface with Nagios and RRDTool?
- What time-interval granularity have people found useful with JMX, without
overloading the servers?  I collect some JMX stats in 1 minute intervals,
but really would like every second.

Thanks.

  -Shanti


Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Leon Rosenberg
Hello Shanti,


On Fri, May 3, 2013 at 10:57 PM, Shanti Suresh sha...@umich.edu wrote:


 I am interested in trending of the metrics - so data for four months, let's
 say.
 - Does moskito have a way of storing data?

yes it does:
https://confluence.opensource.anotheria.net/display/MSK/MoSKito+Central
https://confluence.opensource.anotheria.net/display/MSK/HowTo+Run+moskito-central+in+embedded+mode



 - What time-interval granularity have people found useful with JMX, without
 overloading the servers?  I collect some JMX stats in 1 minute intervals,
 but really would like every second.


every second is maybe a little overkill, but possible. What amount of
traffic does your application serve, that you need so detailed data?

regards
Leon



 Thanks.

   -Shanti



Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Darryl Lewis
My choice of weapon is Melody: http://code.google.com/p/javamelody/

On 4/05/13 1:19 AM, Christopher Schultz ch...@christopherschultz.net
wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

In Rainer's talk at ApacheCon [1], he mentioned a number of
JMX-inspectable values that weren't terribly informative on their own
(e.g. number of total requests processed by a connector) but were
interesting when observed as deltas of their previous value.

I was wondering if anyone could recommend an existing tool to capture
that data, compute the deltas, etc. or if folks just roll their own?
This kind of thing could be very useful to lots of users and I was
thinking of linking to an existing tool on the FAQ/Monitoring wiki
page or writing such a tool and posting it there (similar to the
check_jmxproxy Perl script I put up there for use with Nagios).

Ultimately, I'm thinking that it might be nice to have a single script
that can (given some configuration) take a JMX snapshot of Tomcat
(probably through a filter that grabs only those values of interest),
record the values somewhere (e.g. bdb, rrd, etc.), compute deltas
where appropriate, and then publish to a monitoring tool (e.g. Nagios).

As it stands in my environments, I typically have 4-6 check_jmxproxy
processes that all take a single sample via JMXProxyServlet on-demand
from Nagios. Though the scripts aren't terribly CPU- or
memory-intensive, it seems like things could be streamlined with a
tool that can take care of multiple samples and also provide this
additional capability.

Any ideas or suggestions? I'm motivated enough to build this stuff
myself if such a tool does not yet exist.

Thanks,
- -chris

[1]
http://archive.apachecon.com/na2013/presentations/27-Wednesday/A_Patchy_We
b/14:45-Monitoring_Apache_Tomcat.pdf
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRg9WTAAoJEBzwKT+lPKRYsYwP/3t+JlHZbBra0BPPKPMV1TJn
DoIhY0xHlssZyDBPswB/B0ujelqf5exL9wVzCxI5EuVvYudazrguPnBAruJOqSxf
Tunoloa14uGMVep6HXT81OWisP1SfT0HO3fCQINsY4T7fUmtDjUIQ6lMmuXXGw4V
gnzYGyqSmDvumNJe1kEQBqrhqSO2/dvSUqufnvL8fOysFd0pi3hIN5UgkoS/nz+0
bXjkHzvXOWVcS66vld1L2tZ017DA3BDHi2/McJTPUaFqssQoPcj0AbGxp971NMY6
4jQEui99XgsCw9hQZun6VmlmdC7Re1Gi/cLnJkgbtCzIeB1unL/v6eEaFG0EvCYM
p0UUN2k6EMKZY/4KZF5ZsKRgALJUDiUegYD4DAtJgEaLGCSOPScsX37xmMjSCfff
OpoMSTOC0Dhstyi5sSY+FYxP4PViuU5MD9S4VXMsF+0qZ6MaFWzWbagAuG2okpmj
VzFeowa+PX7ZxP4p5b0gGjv4K62QViGOYo/dvsCM9RzoNiw3StyFYUe6Hv6Ri3jv
02Zu4U/GpXLDwytEYxpL+SKKR7DelkNhqypShF5VS0F8Fx0OMRkTQgGJgKxCyQCO
oekKlrcsd88QkgcKkNGGqAqQf64k1i73aD2puiMheVBQup7K31MYyy34Qu76YLM6
67Ja7XlZEY85Xuv9H8vU
=L5cp
-END PGP SIGNATURE-

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



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