What's the best way/tool to measure the amount of traffic has been received/sent from tomcat?
A:
Maybe you want to use Lambda Probe Its free, easy to deploy and has realtime traffic charts and some other additional benefits.
tweber
2010-06-25 12:32:06
@tweber about lamdba probe it's dead project, last release was in Nov 2006, that's why I haven't used it, I'm using JavaMelody for monitoring, and it sounds perfect, except it doesn't have this feature.
mabuzer
2010-06-25 12:34:09
+1 for mabuzer for "JavaMelody [..] sounds perfect".
f1sh
2010-06-25 12:56:01
I used lambda probe years ago and it was still in my head. Didnt check the project activity before my post, though. Sorry.
tweber
2010-06-25 13:03:36
@mabuzer It has been forked - http://code.google.com/p/psi-probe/
Romain Hippeau
2010-07-10 07:12:50
+1
A:
Most companies where I worked, used only native solutions for this, e.g. for Linux there are quite a few solutions, e.g.: vnStat, iftop, or the more known MRTG
A. Ionescu
2010-06-25 20:26:28
+1
A:
You have to make your own HttpServletResponseWrapper
and then override method createOutputStream()
, which you can do your own OutputStream
with counter appened to write(init i)
, write(byte[] bytes)
and write(byte[] bytes, int off, int length)
, It's not easy as it sounds, but this way you can know the length of each response.
ama
2010-06-29 06:35:34