On 6/9/06, Julien Vermillard <[EMAIL PROTECTED]> wrote:
Well I don't see how I can calculate throughput on a event driven way (on the msgSent & msgRcv IoHandler methods). Actualy it's every n seconds I look at the sent/rcved bytes and calculate the byte per seconds throughput. I can still make an Iohandler which is spawing a timer thread for make throughput calculations, but it's not much more interesting than doing it in the MBean (except perhaps for people who don't want to use JMX). Any idea is welcome :)
You're correct. IoFilter chain is not the right place for this feature. But putting the performance statistics calculation code only on the JMX page might be inappropriate if people wants to use this feature with other technologies. Perhaps we need org.apache.mina.profiler package and provide a JMX wrapper for it? At least we need a nice data structure to store all kind of performance stats. Let's keep discussing on this issue. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
