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


Steps:

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/emd.properties file


default

agentJavaDefines=-Xmx128M -XX:MaxPermSize=96M

new

agentJavaDefines=-Xmx512M -XX:MaxPermSize=128M

OR

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