Bug 1212950
Summary: | EAP 6 start operation causes agent to run out of memory due to storing console output in an unused buffer | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
Component: | Agent | Assignee: | Libor Zoubek <lzoubek> |
Status: | CLOSED ERRATA | QA Contact: | Filip Brychta <fbrychta> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.3.1 | CC: | fbrychta, rhatlapa, spinder, theute |
Target Milestone: | ER01 | Keywords: | Triaged |
Target Release: | JON 3.3.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-30 16:42:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Larry O'Leary
2015-04-17 18:17:13 UTC
*** Bug 1212951 has been marked as a duplicate of this bug. *** I created pull request https://github.com/rhq-project/rhq/pull/169 This BZ should be regargetted to JON, as the proposed fix goes to agent internals and not plugin. Based on the proposed upstream fix for this issue, the fix would be in the core native-system module. This is part of the base/core agent and not specific to the EAP 6 plug-in. Setting target to 3.3.3 for consideration in next maintenance release. in master commit 13439fe5ee67ed55e1eef307a08254594f98b9cd Author: Libor Zoubek <lzoubek> Date: Thu Apr 30 18:58:04 2015 +0200 Bug 1212950 - EAP 6 start operation causes agent to run out of memory due to storing console output in an unused buffer Now process output is captured (if captured) up to 2MB size, once output exceeds this limit, it is ignored - so we don't run out of memory (unless agent does not start plenty of verbose processes). Default limit can be changed via rhq.process-execution.captured-output.limit system property. This commit also gives more power to plugin writers about capturing process outputs. ProcessExecution#setCaptureOutput is now deprecated in favor of new CaptureMode setting. CaptureMode can capture to memory and/or forward to agent.log as well as setting captured limit. Available for test with 3.3.3 ER01 build: https://brewweb.devel.redhat.com/buildinfo?buildID=446732 *Note: jon-server-patch-3.3.0.GA.zip maps to ER01 build of jon-server-3.3.0.GA-update-03.zip. After 24h the heap is stable -> verified Version : 3.3.0.GA Update 03 Build Number : e4b348a:2f80c8c Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1525.html |