Grid Control Agent 11.1: High Virtual Memory Consumption
By Martin | December 23rd, 2010 | Category: Oracle Enterprise Manager | No Comments »There is a known issue in Grid Control 11.1 Agents, which causes huge Virtual Memory Consumption. I have experienced virtual memory consumption of up to 5.6 GB for the emagent process:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | Resources PID: 14103, emagent PPID: 13773 euid: 172 User:agent -------------------------------------------------------------------------------- CPU Usage (util): 2.5 Log Reads : 14 Wait Reason : OTHER User/Nice/RT CPU: 2.5 Log Writes: 0 Total RSS/VSS :546.5mb/ 5.68gb Regions PID: 14103, emagent PPID: 13773 euid: 172 User:agent Type RefCt RSS VSS Locked File Name -------------------------------------------------------------------------------- NULLDR/Shared 531 4kb 4kb 0kb <nulldref> MEMMAP/Shared 2 8kb 32kb 0kb /var/.../14103 TEXT /Shared 2 12kb 12kb 0kb /opt/.../bin/emagent DATA /Priv 1 131.4mb 144.0mb 0kb /opt/.../bin/emagent MEMMAP/Priv 1 52kb 4.0mb 0kb <mmap> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> MEMMAP/Priv 1 52kb 4.0mb 0kb <mmap> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> UAREA /Priv 1 64kb 72kb 0kb <uarea> MEMMAP/Priv 1 356.0mb 5.32gb 0kb <mmap> |
The workaround for this issue is to set a Heap Size Limit of 512M in $AGENT_HOME/sysman/config/emd.properties:
append the String “-Xmx512m” to the line agentJavaDefines.
So the line looks like:
agentJavaDefines=-Djava.awt.headless=true -Dsun.lang.ClassLoader.allowArraySyntax=true -Dnetworkaddress.cache.ttl=1800 -DUrlTiming.UseJSSE=true -Doracle.dms.refresh.wait.time=1000 -Xmx512m
This is the bug, which is platform-independet:
Bug 9829732: AGENT 11.1.0.1 RUNNING ON OMS BOX IS CONSUMING HIGH MEMORY