I am using gatling gradle plugin with following jvm settings
jvmArgs = [’-server’, ‘-Xmx4G’,
‘-XX:+UseG1GC’, ‘-XX:MaxGCPauseMillis=30’,
‘-XX:G1HeapRegionSize=16m’,
‘-XX:InitiatingHeapOccupancyPercent=75’,
‘-XX:+ParallelRefProcEnabled’,
‘-XX:+PerfDisableSharedMem’,
‘-XX:+AggressiveOpts’,
‘-XX:+OptimizeStringConcat’,
‘-XX:+HeapDumpOnOutOfMemoryError’]
I still get the following error
ava.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid18123.hprof … Heap dump file created [6748925284 bytes in 342.311 secs] Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “channel-receiver-mux2-inout-receive” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “channel-receiver-mux3-inout-receive” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “channel-receiver-mux0-inout-receive” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “channel-receiver-mux1-inout-receive” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “java-sdk-http-connection-reaper” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “gatling-1-3” Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “gatling-1-5”
Couple of questions
-
Does gatlng create any heap dump file and store it or is it created by JVM… I am sorry if this question is invalid.
-
Can I increase ‘-Xmx4G’, to 6-8G…
Thanks
Sriharsha