[jetty-dev] measuring data volume handled by jetty

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-dev] measuring data volume handled by jetty

Michele Rossi
hi,
I am trying to come up with a way to measure how much data is going through my jetty server.
I am thinking to produce a Kb/sec or Mb/sec figure.

Does anyone have any pointers to help me with this?
I assume the best place to start from are Connectors as they handle all requests and responses before they are passed to handlers lower in the chain.

TomCat used to come with a plugin that would produce similar figures and it was compatible with tools like JMeter.

Is there anything equivalent for Jetty?


thanks,
Michele

_______________________________________________
jetty-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-dev
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-dev] measuring data volume handled by jetty

Simone Bordet-2
Michele,

On Mon, Mar 19, 2012 at 17:05, Michele Rossi <[hidden email]> wrote:

> hi,
> I am trying to come up with a way to measure how much data is going through
> my jetty server.
> I am thinking to produce a Kb/sec or Mb/sec figure.
>
> Does anyone have any pointers to help me with this?
> I assume the best place to start from are Connectors as they handle all
> requests and responses before they are passed to handlers lower in the
> chain.
>
> TomCat used to come with a plugin that would produce similar figures and it
> was compatible with tools like JMeter.
>
> Is there anything equivalent for Jetty?

Jetty has a statistics handler that can be plugged in via
configuration (jetty-stats.xml), and looked up via JMX.
One JMX attribute is "responsesBytesTotal" which gives you the bytes
responded by Jetty (in the body only, not headers).
You divide that by "statsOnMs" and you get the bytes/ms figure.

Simon
--
http://cometd.org
http://intalio.com
http://bordet.blogspot.com
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz
_______________________________________________
jetty-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-dev