Hi,

I am doing my testing on server. I open 150 concurrent sessions. However, my
server CPU useage reaches 20% and memory is increasing 300M(increasing).
Also I got a Exception: Java.lang.OutOfMemoryError: Direct buffer memory.
at java.nio.Bits.reserveMemory

I also observed that lots of packets were lost at the client side.

Actually in my server, I just simply broadcast the data to clients. (I wrote
my own protocol codec filter, I use one session on instance method)

public void onBroadcasting(AbstractMessage message)
{
 synchronized(sessions)
       {
  for (Enumeration e = sessions.elements(); e.hasMoreElements();)
  {
      IoSession session = (IoSession)e.nextElement();
      session.write(message);
  }
       }
}

Did I miss something? Kinda desperate at this moment about the testing
results.

Reply via email to