netty5/transport/src
Jakob Buchgraber 0d549706f1 Reduce Memory Usage of SingleThreadEventLoopTest
Motivation:

The SingleThreadEventLoopTest allocated up to half a gigabyte of memory per run,
causing up to 50 GC runs in ~20 seconds.

Modification:

Charlie Hunt identified TLAB allocations to be the root cause of this excessive
memory usage [1]. By reusing the Executor in every test we can reduce the
memory usage by >50%.

Result:

Lower Memory Usage and fewer Garbage Collector runs.
Helps to resolve GitHub issue #2841.

[1] https://twitter.com/charlesjhunt/status/505351389317722112
2014-08-29 19:31:31 +02:00
..
main/java/io/netty [#2797] Let EventExecutorGroup extend AutoCloseable 2014-08-26 14:04:27 +02:00
test/java/io/netty Reduce Memory Usage of SingleThreadEventLoopTest 2014-08-29 19:31:31 +02:00