Skip to content

Commit ea43a9e

Browse files
committed
limit direct memory
1 parent 8d3185c commit ea43a9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fuzzing-tests/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ tasks.withType<PrepareClusterFuzzTask> {
5454
}
5555
jvmArgs = listOf(
5656
"-Xmx512M",
57+
"-XX:MaxDirectMemorySize=256M",
58+
"-Dio.netty.leakDetection.targetRecords=0",
59+
"-Dio.netty.noUnsafe=true",
5760
"-XX:+ExitOnOutOfMemoryError"
5861
)
5962
}
@@ -68,6 +71,8 @@ tasks.named<JazzerTask>("jazzer") {
6871
))
6972
jvmArgs.set(listOf(
7073
"-Xmx512M",
74+
"-XX:MaxDirectMemorySize=256M",
75+
"-Dio.netty.noUnsafe=true",
7176
"-Dio.netty.leakDetection.targetRecords=100",
7277
"-XX:+ExitOnOutOfMemoryError",
7378
"-XX:+HeapDumpOnOutOfMemoryError",

0 commit comments

Comments
 (0)