You can limit the size of the task queue: https://github.com/netty/netty/blob/4.1/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java#L131 <https://github.com/netty/netty/blob/4.1/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java#L131>
This is also exposed via the *EventLoopGroup implementations. > On 19. Oct 2017, at 17:20, you fu <[email protected]> wrote: > > > the detail info by mat. > > On Thursday, October 19, 2017 at 4:27:16 PM UTC+8, you fu wrote: > hello > My application occurred fgc,so dump the memory and analyze . > find the NioEventLoop instance variable taskQueue 's retained size is > 1G+(detail in attach), so the taskQueue is the cause. > > two question > 1. I read the NioEventLoop source code ,the taskQueue not limit the size,so > Application how to limit the taskQueue size? > 2. any idea to confirm what task add taskQueue? > > > > > -- > You received this message because you are subscribed to the Google Groups > "Netty discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/netty/2f5dee8b-2f44-44f0-8f8e-81400a1871cf%40googlegroups.com > > <https://groups.google.com/d/msgid/netty/2f5dee8b-2f44-44f0-8f8e-81400a1871cf%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > <test.png> -- You received this message because you are subscribed to the Google Groups "Netty discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netty/95230682-DC5B-4D1B-B75A-EA2E2373FA0D%40googlemail.com. For more options, visit https://groups.google.com/d/optout.
