HeapDumpOnOutOfMemoryError in app-system log

Document ID : KB000125407
Last Modified Date : 28/01/2019
Show Technical Document Details
Question:
I see these lines in the app-system.log, does this mean I have an OutOfMemory error?
 
2019/01/27 22:22:32.846 | INFO: Command line argument: -XX:+HeapDumpOnOutOfMemoryError
2019/01/27 22:22:32.846 | INFO: Command line argument: -XX:HeapDumpPath=/clarity/logs
2019/01/27 22:22:32.846 | INFO: Command line argument: -XX:+PrintHeapAtGC
 
Answer:
 This is not indication of OutOfMemory issue.
 
The application, when starting back, is initializing the JVM properties.
 
 -XX:+HeapDumpOnOutOfMemoryError , -XX:HeapDumpPath and -XX:+PrintHeapAtGC are the JVM arguments used for the application in the properties.xml and upon starting it, which ensure that any time there is an OutOfMemory error, an automatic heap dump will be created in this specified directory.
 
When you have an OutOfMemory, you will see in app-system a note: "Heap dump file created" or "java.lang.OutOfMemoryError: Java heap space "