JON 2.4 agent exhibits memory leak when Apache httpd is running on agent host

Solution Unverified - Updated -

Environment

  • JBoss Operations Network (JON) 2.4.1
  • Apache httpd server is running on agent host

Issue

  • memory leak in the agent
  • agent is consuming more memory than allocated to heap
  • Over time the swap memory grows to 100% and then the guest becomes locked up and needs a bounce

Resolution

This issue is resolved by JON Agent plugins  patch 6, jon-2.4.1.GA-agent-plugins-patch6.zip.

Root Cause

This issue was captured in BZ 721151 and was a result of the initialization of Augeas without explicitly de-initializing and closing the connections after use.

Diagnostic Steps

  • To verify that this is the actual cause of the leak, disable Augeas:
    • Rename /lib/augeas to /lib/augeas.disabled
    • Restart the agent
    • Let the agent run for a while to confirm that the leak is no longer present.
  • Gather usage data regarding the use of Apache httpd servers and Augeas
    • Augeas is only used to read/modify the Apache httpd configuration files and is not used for management and monitoring.
    • How many Apache servers are in inventory for the affected agent and what activities are normally performed for those server from the JON UI? - operations, configuration, etc.
    • How many Apache servers are running on the host machine that the agent is running on which are not in inventory?
  • To establish if the issue pertains to how the httpd includes are processed , use the httpd.conf & all the httpd includes to reproduce the issue.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.