public class NettyShuffleMemoryControlTestProgram extends Object
OutOfDirectMemoryErrorif we limit the total direct memory to be less than two chunks. Instead, with zero-copy introduced in (https://issues.apache.org/jira/browse/FLINK-10742) one chunk will be enough and the exception will not occur.
Since Netty uses low level API of
Unsafe to allocate direct buffer when using JDK8 and
these memory will not be counted in direct memory, the test is only effective when JDK11 is used.
|Constructor and Description|
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.