brusdev commented on a change in pull request #2897: ARTEMIS-2558 Add the 
commented out args to dump the java heap on OOME
URL: https://github.com/apache/activemq-artemis/pull/2897#discussion_r349636886
 
 

 ##########
 File path: 
artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile
 ##########
 @@ -41,6 +41,11 @@ JAVA_ARGS="${java-opts} -XX:+PrintClassHistogram 
-XX:+UseG1GC -Xms512M -Xmx2G -D
 # Replace "all_pauses.log" with the file name you want to log to.
 # JAVA_ARGS="$JAVA_ARGS -XX:+PrintSafepointStatistics 
-XX:PrintSafepointStatisticsCount=1 -XX:+PrintGCApplicationStoppedTime 
-XX:+PrintGCApplicationConcurrentTime -XX:+LogVMOutput 
-XX:LogFile=all_pauses.log"
 
+#
+# Enables the dumping of the java heap to the file oom_dump.hprof by using the 
heap profiler (HPROF)
+# when a java.lang.OutOfMemoryError exception is thrown.
+# JAVA_ARGS="$JAVA_ARGS -XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=${ARTEMIS_INSTANCE}/log/oom_dump.hprof"
 
 Review comment:
   I set a fixed filename to prevent the creation of multiple heap dumps that 
can fill the disk.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to