Home » RDBMS Server » Enterprise Manager » agentca -f failing with java heap space error. (Oracle Grid control agent 10.2.0.5)
agentca -f failing with java heap space error. [message #516496] Mon, 18 July 2011 16:12 Go to next message
copernicus
Messages: 2
Registered: June 2011
Location: Inida
Junior Member
Hello,

I am using the cloning method to copy the AGENT_HOME from machine1 to machine2.

As part of the process I have to run and it is throwing java heap space error.

$agentca -f


Stopping the agent using /usr/apps/oracle/product/oracle10g/agent10g/bin/emctl stop agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent is Not Running
Running agentca using /usr/apps/oracle/product/oracle10g/agent10g/oui/bin/runConfig.sh ORACLE_HOME=/usr/apps/oracle/product/oracle10g/agent10g ACTION=Configure MODE=Perform RESPONSE_FILE=/usr/apps/oracle/product/oracle10g/agent10g/response_file RERUN=TRUE INV_PTR_LOC=/usr/apps/oracle/product/oracle10g/agent10g/oraInst.loc COMPONENT_XML={oracle.sysman.top.agent.10_2_0_1_0.xml}
Perform - mode is starting for action: Configure

Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518)
at java.lang.StringBuffer.append(StringBuffer.java:307)
at java.io.BufferedReader.readLine(BufferedReader.java:345)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at oracle.sysman.emcp.agent.StreamGobbler.run(ConfigureAgent.java:395)


So I asked the unix admin and he said modify the runConfig.sh to put these options to increase the heap space.

/usr/apps/oracle/product/oracle10g/agent10g/jdk/jre/bin/java -Xms64m -Xmx256m -classpath .................


but the command is still failing....

Any ideas on what I should do next ?

Thanks,
Copernicus
Re: agentca -f failing with java heap space error. [message #516497 is a reply to message #516496] Mon, 18 July 2011 16:36 Go to previous message
ThomasG
Messages: 3101
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
You could try increasing -Xmx even further. Perhaps -Xmx1024m

Also have a look in this OTN thread, if you are trying to clone the chained agent.
Previous Topic: CREATE TARGET privilege
Next Topic: OEM agent unreachable - help
Goto Forum:
  


Current Time: Wed Oct 22 03:10:15 CDT 2014

Total time taken to generate the page: 0.09714 seconds