VCEM-70-000015 - ESX Agent Manager must be configured with memory leak protection.

Information

The Java Runtime environment can cause a memory leak or lock files under certain conditions. Without memory leak protection, ESX Agent Manager can continue to consume system resources, which will lead to 'OutOfMemoryErrors' when reloading web applications.

Memory leaks occur when JRE code uses the context class loader to load a singleton, as this will cause a memory leak if a web application class loader happens to be the context class loader at the time. The 'JreMemoryLeakPreventionListener' class is designed to initialize these singletons when Tomcat's common class loader is the context class loader. Proper use of JRE memory leak protection will ensure the hosted application does not consume system resources and cause an unstable environment.

Solution

Navigate to and open:

/usr/lib/vmware-eam/web/conf/server.xml

Navigate to the <Server> node.

Add '<Listener className='org.apache.catalina.core.JreMemoryLeakPreventionListener'/>' to the <Server> node.

Restart the service with the following command:

# vmon-cli --restart eam

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_7-0_Y23M07_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7a., CAT|II, CCI|CCI-000381, Rule-ID|SV-256687r888617_rule, STIG-ID|VCEM-70-000015, Vuln-ID|V-256687

Plugin: Unix

Control ID: eb5f1da42c044e805f0cf0c626d1c8cc197edeee2e23710677c2381fc974246a