STIGUI
V-256625CAT II — Medium severitySV-256625r960963_rule

Performance Charts must be configured with memory leak protection.

Rule version VCPF-70-000015 · STIG v1 · 2026-09-09

Discussion

The Java Runtime environment can cause a memory leak or lock files under certain conditions. Without memory leak protection, Performance Chart 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. 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.

Check

At the command prompt, run the following command:

# grep JreMemoryLeakPreventionListener /usr/lib/vmware-perfcharts/tc-instance/conf/server.xml

Expected result:

<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>

If the output of the command does not match the expected result, this is a finding.

Fix

Navigate to and open:

/usr/lib/vmware-perfcharts/tc-instance/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 perfcharts

Identifiers

Group ID
V-256625
Group title
SRG-APP-000141-WSR-000086
Rule ID
SV-256625r960963_rule
Check ID
C-60300r888364_chk
Fix ID
F-60243r888365_fix