Le 3/14/14 7:01 PM, FabriceCane a écrit :
> Well, I guess by now you have found the solution.
> For the other readers, I was in the exact same situation as yours (memory
> profile identical) and it seems there is a memory leak in MINAbut only if
> you use IoSession.getConfig().setUserReadOperation(true).
> This happened with both 2.0.4 and 2.0.7.
/**
* Enables or disabled {@link IoSession#read()} operation. If
enabled, all
* received messages are stored in an internal {@link BlockingQueue}
so you
* can read received messages in more convenient way for client
* applications. Enabling this option is not useful to server
applications
* and can cause unintended memory leak, and therefore it's disabled by
* default.
*/
void setUseReadOperation(boolean useReadOperation);
The javaDoc is pretty clear here (I would not say that for all of MINA
methods though ;-)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com