what do you do on the server side with the data you
receive ?
Jin > I will parse the XML and store in to database but for my current
testing I have taken out all those. Now just left this line in
messageReceived() method: logger.info( "###>>> Received Data: " + xmlData );

Initially my thought is the XML parsing and database operations causing the
problem but after taken out the problem remains there.

My further finding is when there is only one session/user opens (continue
sending request every 200 ms) the performance is very good but when there
is 75 sessions/users connecting to NioSocketAcceptor the performance is
dropping - from log file the NioSocketAcceptor looks like need to take some
rest/breath before perform further processing.

Is there anyway to allocate more resources to IoSession pool via API?

Thanks


On Fri, Aug 15, 2014 at 4:00 PM, Emmanuel Lécharny <[email protected]>
wrote:

> Le 15/08/14 05:41, Jon V. a écrit :
> > Emmanuel, is there a line test tool for Mina? I ask because seems like
> the
> > Jedi Jin here has a throughput problem.
>
> Something like
>
> http://blog.softlayer.com/2011/using-iperf-to-troubleshoot-speedthroughput-issues
> should do the trick. But here, with the client and the server o the same
> machine, I doubt the network could be the probelm.
> >
> > Jin,
> > Have you tried benchmarking your code directly?  In all reality I process
> > 30k sockets and 500mb/s using raw TCP in java so if there is a problem it
> > is either your code or Mina.
>
> It's crystal clear that it's not a MINA problem per se. I'm able to
> saturate a 10Mb/s network with more than 20 000 messages per second on
> my computer on my LDAP server using MINA.
>
> One of the possible reasons : the server IoHandler is doing weird things
> (like waiting for an external resource before releasing the thread).
> Typical use case : sendinhg the received data to a remote data base.
>
> So bottom line : what do you do on the server side with the data you
> receive ?
>
>

Reply via email to