[rhq-project/rhq] 13439f: Bug 1212950 - EAP 6 start operation causes agent t...
by Libor Zoubek
Branch: refs/heads/master
Home: https://github.com/rhq-project/rhq
Commit: 13439fe5ee67ed55e1eef307a08254594f98b9cd
https://github.com/rhq-project/rhq/commit/13439fe5ee67ed55e1eef307a082545...
Author: Libor Zoubek <lzoubek(a)redhat.com>
Date: 2015-05-11 (Mon, 11 May 2015)
Changed paths:
M modules/core/native-system/src/main/java/org/rhq/core/system/JavaSystemInfo.java
M modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecution.java
A modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecutionOutputStream.java
Log Message:
-----------
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.
x
Commit: 7eb39f19dc29af0bcd296b4c82d354e22da73cbc
https://github.com/rhq-project/rhq/commit/7eb39f19dc29af0bcd296b4c82d354e...
Author: Libor Zoubek <lzoubek(a)jezzovo.net>
Date: 2015-05-13 (Wed, 13 May 2015)
Changed paths:
M modules/core/native-system/src/main/java/org/rhq/core/system/JavaSystemInfo.java
M modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecution.java
A modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecutionOutputStream.java
Log Message:
-----------
Merge pull request #169 from lzoubek/bugs/1212950
Bug 1212950 - EAP 6 start operation causes agent to run out of memory du...
Compare: https://github.com/rhq-project/rhq/compare/10f72b3dae0d...7eb39f19dc29
9 years
[rhq-project/rhq] 13439f: Bug 1212950 - EAP 6 start operation causes agent t...
by Libor Zoubek
Branch: refs/heads/bugs/1212950
Home: https://github.com/rhq-project/rhq
Commit: 13439fe5ee67ed55e1eef307a08254594f98b9cd
https://github.com/rhq-project/rhq/commit/13439fe5ee67ed55e1eef307a082545...
Author: Libor Zoubek <lzoubek(a)redhat.com>
Date: 2015-05-11 (Mon, 11 May 2015)
Changed paths:
M modules/core/native-system/src/main/java/org/rhq/core/system/JavaSystemInfo.java
M modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecution.java
A modules/core/native-system/src/main/java/org/rhq/core/system/ProcessExecutionOutputStream.java
Log Message:
-----------
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.
x
9 years