camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin <sachin2...@gmail.com>
Subject Re: camel-netty restrict connections
Date Mon, 17 Dec 2012 07:11:26 GMT
Netty works on Boss-Worker thread concept, where for each sub sequent
connection request netty assigns a Boss thread which internally creates a
new worker thread for each request. By default no of worker thread are (2
*no of core in your machine) ,Post camel-netty 2.9.1 it's expose worker
thread property to restrict or upgrade worker threads. I dont think you can
restrict Boss thread and hey it's the concept of NIO server e.g Mina, Netty
, these should not restrict your connections requests just delay it.

If you really require it you can maintain it by maintaing a hashMap of
connections checking size before allowing it to pass it to Netty.




--
View this message in context: http://camel.465427.n5.nabble.com/camel-netty-restrict-connections-tp5723951p5724197.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message