Measure throughput
Bruno de Carvalho
kindernade at gmail.com
Wed Aug 11 12:29:27 EDT 2010
The simplest solution is to include a ChannelHandler as the first
handler of your pipeline that counts the total of bytes wrote/read.
If you want a working example, download the project at
http://bruno.factor45.org/blag/2010/07/15/handshaking-tutorial-with-netty/ and take a look at the classes ByteCounter/MessageCounter.
>From there on, you just need to do the maths yourself :) - those two
only count.
Cheers,
Bruno
On Wed, 2010-08-11 at 09:13 -0700, fatzopilot wrote:
> Hi,
>
> is there a way to measure current throughput (of a channel pipeline)?
>
> Thanks
> fatzopilot
More information about the netty-users
mailing list