[jboss-cvs] JBossAS SVN: r69013 - projects/cluster/varia/sessionstress.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 16 00:27:51 EST 2008
Author: bstansberry at jboss.com
Date: 2008-01-16 00:27:51 -0500 (Wed, 16 Jan 2008)
New Revision: 69013
Modified:
projects/cluster/varia/sessionstress/PerfTest2.java
Log:
Drop keep-alive tracking
Modified: projects/cluster/varia/sessionstress/PerfTest2.java
===================================================================
--- projects/cluster/varia/sessionstress/PerfTest2.java 2008-01-16 04:51:21 UTC (rev 69012)
+++ projects/cluster/varia/sessionstress/PerfTest2.java 2008-01-16 05:27:51 UTC (rev 69013)
@@ -53,7 +53,7 @@
barrier.await();
long total_time=0, total_bytes_read=0, total_bytes_written=0;
- int total_successful_reads=0, total_successful_writes=0, total_failed_reads=0, total_failed_writes=0, total_connection_closes=0;
+ int total_successful_reads=0, total_successful_writes=0, total_failed_reads=0, total_failed_writes=0;
int num_clients=0;
for(Client client: clients) {
@@ -68,7 +68,6 @@
total_successful_writes+=client.getSuccessfulWrites();
total_failed_reads+=client.getFailedReads();
total_failed_writes+=client.getFailedWrites();
- total_connection_closes+=client.getConnectionCloses();
}
if(num_clients < 1) {
@@ -80,7 +79,6 @@
int total_requests=total_successful_reads + total_successful_writes;
double avg_time=total_time / num_clients;
double reqs_sec=total_requests / (avg_time / 1000.0);
- int keep_alive_pct = (total_requests - total_connection_closes) / total_requests * 100;
System.out.println("\nTotal requests: " + total_requests + " in (avg) " + (avg_time / 1000.0) + " secs");
System.out.println("\n*** " + f.format(reqs_sec) + " requests/sec, requests/sec/client: " +
@@ -92,7 +90,6 @@
System.out.println("Bytes read/sec: " + printBytes(total_bytes_read / (avg_time / 1000.0)) + ", bytes written/sec: " +
printBytes(total_bytes_written / (avg_time / 1000.0)));
System.out.println("Total client: " + num_clients + ", failed clients: " + failed_clients);
- System.out.println("Keep-alive percentage: " + keep_alive_pct);
}
private static String printBytes(long bytes) {
@@ -222,7 +219,6 @@
private int successful_reads=0, failed_reads=0, successful_writes=0, failed_writes=0;
private long bytes_read=0, bytes_written=0;
private long start=0, stop=0;
- private int connectionCloses=0;
private boolean successful=true;
private final byte[] buffer=new byte[1024];
private String cookie=null;
@@ -296,10 +292,6 @@
return successful_writes;
}
- public int getConnectionCloses() {
- return connectionCloses;
- }
-
public long getTime() {
return stop - start;
}
@@ -381,13 +373,6 @@
System.out.println("Cookie changed: was: " + cookie + " is: " + tmp_cookie);
}
}
- String connectionHeader=conn.getHeaderField("Connection");
- if (connectionHeader != null) {
- if (connectionHeader.indexOf("close") > -1) {
- connectionCloses++;
-// log("Connection: " + connectionHeader);
- }
- }
return conn.getResponseCode();
}
finally {
More information about the jboss-cvs-commits
mailing list