How to Modify or Increase Enterprise Manager Cloud Control Agent JVM Heap and Permgen Memory


1) Stop agent 

$/AGENT_INST/bin/emctl stop agent

If agent does not shutdown gracefully then kill all agent background processes by first find for agent perl and java processes only

$ps -ef | grep java | grep '<agent_home >'
$ps -ef | grep perl
$kill -9  <Process id>

2) Take backup and edit /AGENT_INST/sysman/config/ file


agentJavaDefines=-Xmx128M -XX:MaxPermSize=96M


agentJavaDefines=-Xmx512M -XX:MaxPermSize=128M


Following commands can be used to modify those parameters instead of changing a file.

$/AGENT_INST/bin/emctl setproperty agent -name 'agentJavaDefines' -value '-Xmx512M -XX:MaxPermSize=128M'

3) Restart agent

$/AGENT_INST/bin/emctl start agent

If you like please follow and comment