agentca -f failing with java heap space error. [message #516496] |
Mon, 18 July 2011 16:12 |
|
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
|
|
|
|