My Oracle Support Banner

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

Last updated on JUNE 29, 2020

Applies to:

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

Symptoms

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 java.io.BufferedWriter.<init>(BufferedWriter.java:105)
at java.io.BufferedWriter.<init>(BufferedWriter.java:88)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:222)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:138)

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

Cause

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
Symptoms
Cause
Solution
References


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