Bump up -Xmx2500m from 2GB and keep MaxDirectMemorySize as 2500m as well. (#17056)

This commit is contained in:
Abhishek Radhakrishnan 2024-09-13 05:24:07 -04:00 committed by GitHub
parent a8c06e93aa
commit 7a0d7d1897
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -1765,9 +1765,7 @@
@{jacocoArgLine} @{jacocoArgLine}
${jdk.strong.encapsulation.argLine} ${jdk.strong.encapsulation.argLine}
${jdk.security.manager.allow.argLine} ${jdk.security.manager.allow.argLine}
<!-- Bump up memory from 1.5 GB to 2 GB. This is particularly needed for JDK 17 where -Xmx2500m
we have jfr profiler enabled which adds additional memory pressure. -->
-Xmx2048m
-XX:MaxDirectMemorySize=2500m -XX:MaxDirectMemorySize=2500m
-XX:+ExitOnOutOfMemoryError -XX:+ExitOnOutOfMemoryError
-XX:+HeapDumpOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError