HeapDumpOnOutOfMemoryError in app-system log
search cancel

HeapDumpOnOutOfMemoryError in app-system log

book

Article ID: 125407

calendar_today

Updated On: 11-11-2021

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

You see these lines in the app-system.log, does this mean you 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
 

Environment

Release: Any

Resolution

  •  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 "