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;
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++;

View File

@ -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() {