A
antoine
Hello,
I'm currently developping a client / server application, with client &
server running on the same PC for the moment.
the goal is to ultimately run them over a WAN, and in order to improve
performances & bandwidth usage, I'd like to develop a tool that
measures the bandwidth used between client & server during the life of
the application (average & max), some kind of application-specific MRTG
(the "text" part would be enough, I can take care of the graphing
myself).
I was thinking of simply "counting" bytes written / read on the sockets
during a specific interval and log everything to a file, but I'm
wandering if there's a smarter way to do that...
does anybody know of a tool / method in the basic Java API that could
help me achieve that ? or any other tool for that matter...
thanks for your feedback.
I'm currently developping a client / server application, with client &
server running on the same PC for the moment.
the goal is to ultimately run them over a WAN, and in order to improve
performances & bandwidth usage, I'd like to develop a tool that
measures the bandwidth used between client & server during the life of
the application (average & max), some kind of application-specific MRTG
(the "text" part would be enough, I can take care of the graphing
myself).
I was thinking of simply "counting" bytes written / read on the sockets
during a specific interval and log everything to a file, but I'm
wandering if there's a smarter way to do that...
does anybody know of a tool / method in the basic Java API that could
help me achieve that ? or any other tool for that matter...
thanks for your feedback.