Hi, mat wrote:
My server sometimes faced "OOM" problem. (I couldn't profile it since TPTP crashed my server before OOM occured). I didn't see major memory leak when profiling. Therefore, I believe OOM happens when READ or WRITE operation can't handle the incoming messages or outgoing messages. (However my incoming messages normally 20 * 512bytes/sec, NOT too fast, right?). Last time i saw my server memory usage is over 600MB in windows XP.
Your code is broken ... the question is where. Mina can handle that amount of messages without breaking a sweat. Do you have some kind of heavy processing in the receiving end that delays the acceptance of messages?
Did you try to use the ReadThrottleFilter? How are you doing you writes? A simple "iosession.write()" ? Did you try something like: WriteFuture wf = iosession.write(); wf.join(); Can we see the code of your Encoder/Decoder? -- Luis Neves