views:

98

answers:

4

What's the best way/tool to measure the amount of traffic has been received/sent from tomcat?

A: 

check out this question on serverfault

Redlab
A: 

Maybe you want to use Lambda Probe Its free, easy to deploy and has realtime traffic charts and some other additional benefits.

tweber
@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
+1 for mabuzer for "JavaMelody [..] sounds perfect".
f1sh
I used lambda probe years ago and it was still in my head. Didnt check the project activity before my post, though. Sorry.
tweber
@mabuzer It has been forked - http://code.google.com/p/psi-probe/
Romain Hippeau
+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
+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