My Oracle Support Banner

EM 13.3: Frequent Agent Restarts with java.lang.OutOfMemoryError: Java heap space" (Doc ID 2649178.1)

Last updated on AUGUST 31, 2021

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.


After upgrading the agent to 13.3, Agent restarts frequently with Out of Memory errors

$AGENT_INST_HOME/sysman/log/gcagent.log reports following errors:

2019-12-08 05:21:37,335 [1:main (@ 2019-12-08 01:14:14 UTC)] ERROR - agent main threw an error
java.lang.OutOfMemoryError: Java heap space
at oracle.sysman.gcagent.common.FileUtils.setContents(
at oracle.sysman.gcagent.common.FileUtils.setContents(

Adding the parameter "+HeapDumpOnOutOfMemoryError" to the agentJavaDefines as below will generate the heap dumps.

agentJavaDefines=-Xmx2500M -XX:MaxPermSize=256M -XX:+HeapDumpOnOutOfMemoryError

Analyzing the heap dump shows the following objects are always occupying more than 90% of the Max Heap.

java.lang.Thread [Thread, Stack Local] "oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.