THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 | ||||
---|---|---|---|---|
|