This message was deleted.
# performance
s
This message was deleted.
s
export JAVA_TOOL_OPTIONS="-XX:+HeapDumpOnOutOfMemoryError"
may work
w
The heap dump profiling option takes a heap dump at the end of the build, which probably is fine as well. Note that when you do
org.gradle.jvmargs=-XX:+HeapDumpOnOutOfMemoryError
, then those are all the JVM args for the daemon. So you might want to add some memory settings there as well. How often do you need to run the scenario until you run out of memory?
t
usually it fails around 6th build (+ 3 warmups before)
w
I suppose a heap dump before it runs out of memory would already help, right?
t
yeah, one build before should be enough šŸ¤”
w
I’d run the build from the command line manually and then get a heap dump from it.
šŸ¤” 1
Or maybe simpler: Use heap dump profiling in Gradle profiler and run enough warmup builds so the profiled build is the last build which would pass.
šŸ‘ 1
t
that is a nice idea!