My Oracle Support Banner

Agent 12c : AgentDeploy.sh emctl start agent Fails with 'java.lang.OutOfMemoryError: Java heap space .. java.io.UnixFileSystem.list(Native Method)' (Doc ID 2257211.1)

Last updated on FEBRUARY 16, 2019

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 to 12.1.0.5.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

ISSUE 1 : agentDeploy.sh fails @ plugins deploy phase resulted OOME

Agent Deployment using agentDeploy.sh fails @ plugins deploy phase resulted OOME (Out Of Memory Excption)

From AGENT_HOME/cfgtoollogs/agentDeploy/agentDeploy_2017-03-21_09-09-00-AM.log

with status=3
SEVERE:
ERROR: Agent Configuration Failed
SEVERE:
ERROR: Agent Deployment Failed


From agentplugindeploy_2017_03_21_09_10_18.log.err


Exception in thread "main-14814" java.lang.OutOfMemoryError: Java heapspace
at java.io.UnixFileSystem.list(Native Method)
at java.io.File.list(File.java:973)
at javax.crypto.SunJCE_b.j(DashoA13*..)
at javax.crypto.SunJCE_b.d(DashoA13*..)
at javax.crypto.SunJCE_b.c(DashoA13*..)
at javax.crypto.SunJCE_b$1.run(DashoA13*..)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.SunJCE_b.<clinit>(DashoA13*..)
at javax.crypto.Mac.getInstance(DashoA13*..)

 

ISSUE 2 : emctl start agent fails with OOME

Executing manual clone of agent image and start agent fails with OOME

$./emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Starting agent ...........................................................................................................................failed.
Consult emctl.log and emagent.nohup in:$AGENT_BASE/agent_inst/sysman/log

$./emctl clearstate agent

Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Exception in thread "main-8436" java.lang.OutOfMemoryError: Java heap space
at java.io.UnixFileSystem.list(Native Method)
at java.io.File.list(File.java:973)
at javax.crypto.SunJCE_b.j(DashoA13*..)
at javax.crypto.SunJCE_b.d(DashoA13*..)
at javax.crypto.SunJCE_b.c(DashoA13*..)
at javax.crypto.SunJCE_b$1.run(DashoA13*..)
at java.security.AccessController.doPrivileged(Native Method)

Verified working and problematic node's /var/tmp details.

Problematic node :

-<oracle>-1% cd /var/tmp
-<oracle>-2% ls -1 | wc -l
51 high 67183  <<< number of file  are high @ tmp location

Working node :

-<oracle>-1% cd /var/tmp
-<oracle>-2% ls -1 | wc -l
10299

 

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
 ISSUE 1 : agentDeploy.sh fails @ plugins deploy phase resulted OOME
 ISSUE 2 : emctl start agent fails with OOME
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.