I have seen some threads about measuring performance/throughput on this list.
Please have a look at http://jamonapi.sourceforge.net/ I used it to performance monitor my MINA based application and found it extremely easy to use. I think a MINA filter that uses JAMon would be cool. (and easy to implement) Maarten On 5/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Quoting Julien Vermillard <[EMAIL PROTECTED]>: > Hi, > > I'm going to add thoughput calculation in my Session MBean (written and > read bytes per seconds). I'm going to look at session written and read > byte every seconds. I'm wondering if it's the good place for doing it, > or a separate filter is a better idea ? > > Julien > > BTW i found a thread on javagaming.org about Mina not started by me ;) > http://www.javagaming.org/forums/index.php?topic=13423.0 A separate filter would allow easy insertion/removal of this performance 'probe'. I implemented such statistics at the IoHandler level, and it is less flexible. I ran into the problem of defining 'work time' to compute throughput (server can be idle for a long time). I actually compute time in the 'messageReceived' and 'messageSent' of my IoHandler and sum them up. It is not ideal, because all time spent in Mina 'guts' is not taken into account. Maybe it would a good idea to compute this time in Mina itself. What do you think? J-F
