mirror of https://github.com/apache/activemq.git
Patch applied for https://issues.apache.org/activemq/browse/AMQ-1867
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@692208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1288f25de
commit
8f55d404af
|
@ -122,12 +122,12 @@ public class MemoryMonitoringTool implements Runnable {
|
|||
nonHeapMB = memoryBean.getNonHeapMemoryUsage().getUsed() / oneMB;
|
||||
heapMB = memoryBean.getHeapMemoryUsage().getUsed() / oneMB;
|
||||
|
||||
reportGenerator.writeWithIndent(6, "<memory_usage index=" + resultIndex
|
||||
+ " non_heap_mb=" + nonHeapMB
|
||||
+ " non_heap_bytes="
|
||||
+ memoryBean.getNonHeapMemoryUsage().getUsed()
|
||||
+ " heap_mb=" + heapMB
|
||||
+ " heap_bytes=" + memoryBean.getHeapMemoryUsage().getUsed() + "/>");
|
||||
reportGenerator.writeWithIndent(6, "<memory_usage index='" + resultIndex
|
||||
+ "' non_heap_mb='" + nonHeapMB
|
||||
+ "' non_heap_bytes='"
|
||||
+ memoryBean.getNonHeapMemoryUsage().getUsed()
|
||||
+ "' heap_mb='" + heapMB
|
||||
+ "' heap_bytes='" + memoryBean.getHeapMemoryUsage().getUsed() + "'/>");
|
||||
|
||||
resultIndex++;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
public class ReportGenerator {
|
||||
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(ReportGenerator.class);
|
||||
private String reportDirectory;
|
||||
private String reportName;
|
||||
|
@ -106,7 +106,7 @@ public class ReportGenerator {
|
|||
|
||||
protected void startTestResult(long checkpointInterval) {
|
||||
long intervalInSec = checkpointInterval / 1000;
|
||||
writeWithIndent(2, "<test-result checkpoint_interval_in_sec=" + intervalInSec + " >");
|
||||
writeWithIndent(2, "<test-result checkpoint_interval_in_sec='" + intervalInSec + "' >");
|
||||
}
|
||||
|
||||
protected void endTestResult() {
|
||||
|
|
Loading…
Reference in New Issue