+100500 We need to stop threads after some idle time.
Sergi 2016-09-29 11:26 GMT+03:00 Vladimir Ozerov <[email protected]>: > Igniters, > > If you look at a thread dump of an idle Ignite instance, you will find > billions threads there. System pool, public pool, management pool, IGFS > pool, data streamer pool, etc.. > > I think we can easily do the following with no risk to performance: > 1) Set core size to zero to all thread pools except of probably system and > marshaller pools. > 2) Set TTL so that idle threads die eventually. It can be set to several > minutes, I believe. > > Benefits: > 1) Better resource utilization. Every thread consumes at least 1Mb of > stack. And remember that some folks in Java community pushes idea that is > it way to restrictive on modern machines, so that it can be increased any > time in future. > 2) Better startup time; > 3) Easier debug of thread dumps. > > Thoughts? > > Vladimir. >
