activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r692208 - in /activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool: MemoryMonitoringTool.java ReportGenerator.java
Date Thu, 04 Sep 2008 19:35:09 GMT
Author: rajdavies
Date: Thu Sep  4 12:35:09 2008
New Revision: 692208

URL: http://svn.apache.org/viewvc?rev=692208&view=rev
Log:
Patch applied for https://issues.apache.org/activemq/browse/AMQ-1867

Modified:
    activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/MemoryMonitoringTool.java
    activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/ReportGenerator.java

Modified: activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/MemoryMonitoringTool.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/MemoryMonitoringTool.java?rev=692208&r1=692207&r2=692208&view=diff
==============================================================================
--- activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/MemoryMonitoringTool.java
(original)
+++ activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/MemoryMonitoringTool.java
Thu Sep  4 12:35:09 2008
@@ -122,12 +122,12 @@
                 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++;
 

Modified: activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/ReportGenerator.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/ReportGenerator.java?rev=692208&r1=692207&r2=692208&view=diff
==============================================================================
--- activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/ReportGenerator.java
(original)
+++ activemq/trunk/activemq-tooling/maven-activemq-memtest-plugin/src/main/java/org/apache/activemq/tool/ReportGenerator.java
Thu Sep  4 12:35:09 2008
@@ -28,7 +28,7 @@
 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 @@
 
     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() {



Mime
View raw message