pietry wrote:
I have read the configure thread model tutorial, and i dont know exaclty what
to pick for my server program. I have lots of connections ( like 1000) and i
want to get even more ( upto 5000, 10000).
The main problem is that at about 500 connections, broadcast messages get
cpu to 100 % usage. I've tried the cachedthreadpool, but from what i can
see, the mina keeps only about 30-35 threads even though i have 500 clients.
I keep a class for each client in a linked list, and attach it to each
session, in broadcast messages i must get through all the list.
What should i do to avoid this situation ( 100 % cpu usage )?
May be check your server code to see what is consuming 100% CPU ? MINA is just a network layer, and the CPU usage depends largely on what you do on top of it...

At least, just try with a 'dummy' server (ie, something which does nothing), and check if MINA is the place where those 100% CPU are eaten.
Thanks


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


Reply via email to