Mail Archive Home | gotm-commits List | June 2005 Index
| <-- Date Index | <-- Thread Index |
Date: Wednesday, June 29, 2005 @ 09:44:03
Author: rouvoy
Path: .../examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark
Modified: JtaClient.java
* Adding memory evaluation in the benchmark.
----------------+
JtaClient.java | 25 +++++++++++++++++++------
1 files changed, 19 insertions(+), 6 deletions(-)
Index:
gotm-jts/examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark/JtaClient.java
diff -u
gotm-jts/examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark/JtaClient.java:1.1
gotm-jts/examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark/JtaClient.java:1.2
---
gotm-jts/examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark/JtaClient.java:1.1
Tue Jun 28 10:02:28 2005
+++
gotm-jts/examples/benchmark/src/java/org/objectweb/gotm/jts/benchmark/JtaClient.java
Wed Jun 29 09:44:03 2005
@@ -22,7 +22,7 @@
Contributor(s): ______________________________________.
---------------------------------------------------------------------
- $Id: JtaClient.java,v 1.1 2005/06/28 08:02:28 rouvoy Exp $
+ $Id: JtaClient.java,v 1.2 2005/06/29 07:44:03 rouvoy Exp $
====================================================================*/
package org.objectweb.gotm.jts.benchmark;
@@ -35,13 +35,13 @@
import org.objectweb.fractal.lib.BindablePrimitive;
import org.objectweb.gotm.jts.benchmark.tools.Collector;
import org.objectweb.gotm.jts.benchmark.tools.Scenario;
-import org.objectweb.jotm.Jotm;
+//import org.objectweb.jotm.Jotm;
/**
* @author <a href="mailto:Romain.Rouvoy@xxxxxxx">Romain Rouvoy</a>
* @created 3 janv. 2005
- * @modified $Date: 2005/06/28 08:02:28 $
- * @version $Revision: 1.1 $
+ * @modified $Date: 2005/06/29 07:44:03 $
+ * @version $Revision: 1.2 $
* @fractal.itf name="runnable" signature="java.lang.Runnable"
* @fractal.itf name="transaction-manager" role="client"
signature="javax.transaction.TransactionManager"
* @fractal.itf name="scenario" role="client"
signature="org.objectweb.gotm.jts.benchmark.tools.Scenario"
@@ -65,7 +65,7 @@
*/
private int iterations ;
- private Jotm jotm = null;
+// private Jotm jotm = null;
/* (non-Javadoc)
* @see
org.objectweb.gotm.jts.benchmark.ClientAttributeController#setIteration(int)
@@ -124,16 +124,29 @@
}
return null;
}
+
+ /**
+ * prints memroy related information
+ */
+ public void memory() {
+ System.out.println("Total Memory =
"+Runtime.getRuntime().totalMemory());
+ System.out.println("Free Memory =
"+Runtime.getRuntime().freeMemory());
+ System.out.println("Max Memory = "+Runtime.getRuntime().maxMemory());
+ }
/* (non-Javadoc)
* @see java.lang.Runnable#run()
*/
public void run() {
- System.out.println("Running Scenarios:");
+ System.out.println("Configuration:");
+ System.out.println("Available Processor =
"+Runtime.getRuntime().availableProcessors());
+ memory();
+ System.out.println("Running Scenarios:");
System.out.println("GoTM:");
run(getTransactionManager());
+ memory();
// System.out.println("JOTM:");
// try {
// this.jotm = new Jotm(true, false);
| <-- Date Index | <-- Thread Index |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.