Howie
Howie

Reputation: 2778

How to get network traffic statistics?

I'm using Netty 3.5.4.Final.

How can one get the number of inbound and outbound transferred bytes within a single netty client/server instance? Current or average upload/download speed would be nice too.

Upvotes: 3

Views: 1332

Answers (1)

Stefan Ferstl
Stefan Ferstl

Reputation: 5265

The package org.jboss.netty.handler.traffic provides the classes you need. You could install a GlobalTrafficShapingHandler (read and write limitation = 0) in your pipeline to measure throughput and the number of bytes that went through your pipeline.

Upvotes: 4

Related Questions