git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@692208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-09-04 19:35:09 +00:00
parent b1288f25de
commit 8f55d404af
2 changed files with 8 additions and 8 deletions

View File

@ -122,12 +122,12 @@ public class MemoryMonitoringTool implements Runnable {
nonHeapMB = memoryBean.getNonHeapMemoryUsage().getUsed() / oneMB; nonHeapMB = memoryBean.getNonHeapMemoryUsage().getUsed() / oneMB;
heapMB = memoryBean.getHeapMemoryUsage().getUsed() / oneMB; heapMB = memoryBean.getHeapMemoryUsage().getUsed() / oneMB;
reportGenerator.writeWithIndent(6, "<memory_usage index=" + resultIndex reportGenerator.writeWithIndent(6, "<memory_usage index='" + resultIndex
+ " non_heap_mb=" + nonHeapMB + "' non_heap_mb='" + nonHeapMB
+ " non_heap_bytes=" + "' non_heap_bytes='"
+ memoryBean.getNonHeapMemoryUsage().getUsed() + memoryBean.getNonHeapMemoryUsage().getUsed()
+ " heap_mb=" + heapMB + "' heap_mb='" + heapMB
+ " heap_bytes=" + memoryBean.getHeapMemoryUsage().getUsed() + "/>"); + "' heap_bytes='" + memoryBean.getHeapMemoryUsage().getUsed() + "'/>");
resultIndex++; resultIndex++;

View File

@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
public class ReportGenerator { public class ReportGenerator {
private static final Log LOG = LogFactory.getLog(ReportGenerator.class); private static final Log LOG = LogFactory.getLog(ReportGenerator.class);
private String reportDirectory; private String reportDirectory;
private String reportName; private String reportName;
@ -106,7 +106,7 @@ public class ReportGenerator {
protected void startTestResult(long checkpointInterval) { protected void startTestResult(long checkpointInterval) {
long intervalInSec = checkpointInterval / 1000; 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() { protected void endTestResult() {