Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce number of threads created when using PNP #1209

Open
activeeon-bot opened this issue Nov 5, 2014 · 0 comments
Open

Reduce number of threads created when using PNP #1209

activeeon-bot opened this issue Nov 5, 2014 · 0 comments

Comments

@activeeon-bot
Copy link

Original issue created by Youri Bonnaffe on 05, Nov 2014 at 17:56 PM - PROACTIVE-1390


When using PNP, on a machine with a lot of CPUs, a large number of threads is created, mostly because of Netty which is use for PNP protocol.

It comes from Netty :

DEFAULT_IO_THREADS = Runtime.getRuntime().availableProcessors() * 2

used in org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory that is created in PNPAgent.

Maybe this can be limited to a lower value, or at least configurable through a property for nodes.

Reducing this number of thread will reduce the memory footprint of the node.
It can also be an issue on machines configured with a low "max process per user" value (ulimit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants