Commit 549f1bf9 authored by peter's avatar peter
Browse files

GCUtil: allocate memory in even more humble chunks

parent 366e5b43
Showing with 1 addition and 1 deletion
+1 -1
......@@ -60,7 +60,7 @@ public class GCUtil {
}
// full gc is caused by allocation of large enough array below, SoftReference will be cleared after two full gc
int bytes = Math.min((int)(freeMemory * 0.1), Integer.MAX_VALUE / 2);
int bytes = Math.min((int)(freeMemory * 0.05), Integer.MAX_VALUE / 2);
list.add(new SoftReference<Object>(new byte[bytes]));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment