LEAK: You are creating too many HashedWheelTimer instances.

201 views
Skip to first unread message

Arnab Biswas

unread,
Jan 5, 2017, 12:14:46 AM1/5/17
to ne...@googlegroups.com

Hi Norman,

In our application, there are four interfaces (3 ServerBootstrap and 1 BootStrap) within the same JVM. Total 8 instances of HashedWheelTimer (4 + 2 + 1 + 1) gets created during the application start up. However, when running the application with smaller heap, I see the following error message:

LEAK: You are creating too many HashedWheelTimer instances.  HashedWheelTimer is a shared resource that must be reused across the JVM,so that only a few instances are created

As per the Netty documentation, I should have a single instance of HashedWheelTimer. Is it single instance per JVM or Single instance per ServerBootStrap/BootStrap?

Is it OK if we continue with the current implementation (8 instances of HashedWheelTimer) or is it a MUST to reduce it 1 (per JVM or per ServerBootStrap/BootStrap?) for performance benefit?

Please let me know.

Thanks,
Arnab

Norman Maurer

unread,
Jan 5, 2017, 3:43:06 AM1/5/17
to ne...@googlegroups.com
It's ok but best is to use one shared per JVM
--
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 netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/CAOG5%2B9n9gJz271s%2B1_90%3D8UjJQVZoJP73DqTWvZQtcBRd4ipDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arnab Biswas

unread,
Jan 5, 2017, 3:52:26 AM1/5/17
to ne...@googlegroups.com
Thank you!

Arnab

On Thu, Jan 5, 2017 at 2:13 PM, 'Norman Maurer' via Netty discussions <ne...@googlegroups.com> wrote:
It's ok but best is to use one shared per JVM

Am 05.01.2017 um 06:14 schrieb Arnab Biswas <arnabb...@gmail.com>:


Hi Norman,

In our application, there are four interfaces (3 ServerBootstrap and 1 BootStrap) within the same JVM. Total 8 instances of HashedWheelTimer (4 + 2 + 1 + 1) gets created during the application start up. However, when running the application with smaller heap, I see the following error message:

LEAK: You are creating too many HashedWheelTimer instances.  HashedWheelTimer is a shared resource that must be reused across the JVM,so that only a few instances are created

As per the Netty documentation, I should have a single instance of HashedWheelTimer. Is it single instance per JVM or Single instance per ServerBootStrap/BootStrap?

Is it OK if we continue with the current implementation (8 instances of HashedWheelTimer) or is it a MUST to reduce it 1 (per JVM or per ServerBootStrap/BootStrap?) for performance benefit?

Please let me know.

Thanks,
Arnab

--
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 netty+unsubscribe@googlegroups.com.

--
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 netty+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/A0D25D8D-35F8-48FF-A223-460D04F9D9E8%40googlemail.com.
Reply all
Reply to author
Forward
0 new messages