Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ private static void testMemoryFailCount() {
} else {
long count = Metrics.systemMetrics().getMemoryFailCount();

// Allocate 512M of data
byte[][] bytes = new byte[64][];
// Allocate 512M of data in 1M chunks per iteration
byte[][] bytes = new byte[64 * 8][];
boolean atLeastOneAllocationWorked = false;
for (int i = 0; i < 64; i++) {
for (int i = 0; i < 64 * 8; i++) {
try {
bytes[i] = new byte[8 * 1024 * 1024];
bytes[i] = new byte[1024 * 1024];
atLeastOneAllocationWorked = true;
// Break out as soon as we see an increase in failcount
// to avoid getting killed by the OOM killer.
Expand Down