You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Vel Pandian <ve...@gmail.com> on 2008/09/12 09:18:03 UTC

Need help is constructing highly scalable SocketAcceptor

Hi
I want to handle concurrent 250K users in a machine having configuration 4
core processor with 8GB ram.
I am generating load @ of 20user/sec on reaching 100K users the cpu reaches
to 40% but later on there is a spike and i am not able to proceed.
every user is doing some activity like sending msg to each other.
Can any one guide me wht should be the ideal configuration of the
SocketAcceptor?

        SocketAcceptor acceptor = null;
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
minThread, maxThread, idleThreadTimeout,.util.concurrent.TimeUnit.SECONDS,

new java.util.concurrent.SynchronousQueue( true ) );
        IoProcessor< NioSession > nioProcessor = new NioProcessor(
threadPoolExecutor );

*            acceptor = new NioSocketAcceptor( nioProcessor );

OR
**            acceptor = new NioSocketAcceptor( processorcount );

Which if one of the above to use and with wht parameters?
*Currently i am using *acceptor = new NioSocketAcceptor(
processorcount ); *with
*processorcount = 4

*Any kind of help is appreciated

Regards
Vel

Re: Need help is constructing highly scalable SocketAcceptor

Posted by Emmanuel Lecharny <el...@gmail.com>.
Vel Pandian wrote:
> Hi
> I want to handle concurrent 250K users in a machine having configuration 4
> core processor with 8GB ram.
> I am generating load @ of 20user/sec on reaching 100K users the cpu reaches
> to 40% but later on there is a spike and i am not able to proceed.
> every user is doing some activity like sending msg to each other.
> Can any one guide me wht should be the ideal configuration of the
> SocketAcceptor?
>   
Just have a look at http://mina.apache.org/configuring-thread-model.html

Hope it helps, because we don't have much more :/

Anyone has something better ?

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org