Hi Trustin, First, yes, IoService.getCumulativeManagedSessionCount() returns the correct result. What I was looking for (and my question was not enough clear) is the others statistics on past sessions (througput, byte or message read/written, ...). They are always set to 0. When I wrote "number on past sessions", I was talking on those numbers on already closed sessions (so as "past sessions"). I don't know if its a bug or not... I let you investigate... It is not prioritary, so take your time.
Frederic ----- Original Message ----- From: "Trustin Lee" On Dec 10, 2007 4:02 PM, Frédéric Brégier wrote: > Hi all, > I try to use the fields of Mina's statistics, > but most of the fields (throughput, byte read or written, ...) > are always to 0. > As far as I saw in the code, the number are only updated > when a session becomes idle. I suppose the reason was > for performance ? That's weird. All statistic properties must be updated on-line. It might be a bug. Let me investigate. > This situation is almost never true for me, since when the > work is done, my session is closed so never (almost) idle. > Is there another way to get the number on past sessions ? IoService.getCumulativeManagedSessionCount() should provide what you want. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6