Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

static int threadNum = 100;

发生OOM,只剩下两个线程活跃,其他线程驻留

实验3:readBufferSize > MaxDirectMemorySize,readBufferSize < maxCachedBufferSize

static long maxCachedBufferSize = 1024 * 1024 * 2;
static int readBufferSize = 1024 * 1024 * 1;

...

下一步,对参数 TEMP_BUF_POOL_SIZE 进行验证,但现在还没模拟出来。


View file
nameFileChannelBufferTest.java
height250