You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2025/08/27 08:27:02 UTC
(tomcat) branch 11.0.x updated: Add simple relative performance monitoring
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new b6cd5df30c Add simple relative performance monitoring
b6cd5df30c is described below
commit b6cd5df30c095e0d02586c0d5906bd54e836bd9a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Aug 26 17:00:44 2025 +0100
Add simple relative performance monitoring
---
.../apache/catalina/session/TesterFileStoreConcurrency.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/org/apache/catalina/session/TesterFileStoreConcurrency.java b/test/org/apache/catalina/session/TesterFileStoreConcurrency.java
index 650e17e3c6..809c213061 100644
--- a/test/org/apache/catalina/session/TesterFileStoreConcurrency.java
+++ b/test/org/apache/catalina/session/TesterFileStoreConcurrency.java
@@ -98,6 +98,10 @@ public class TesterFileStoreConcurrency {
Assert.assertFalse("Exception during save", saveTask.getFailed());
Assert.assertFalse("Exception during load", loadTask.getFailed());
Assert.assertFalse("Exception during remove", removeTask.getFailed());
+
+ System.out.println("Looped over sessions [" + saveTask.getLoopCount() + "] times calling save()");
+ System.out.println("Looped over sessions [" + loadTask.getLoopCount() + "] times calling load()");
+ System.out.println("Looped over sessions [" + removeTask.getLoopCount() + "] times calling remove()");
}
@@ -147,6 +151,7 @@ public class TesterFileStoreConcurrency {
private volatile boolean stop = false;
private volatile boolean failed = false;
+ private volatile int loopCount = 0;
@Override
public void run() {
@@ -161,6 +166,7 @@ public class TesterFileStoreConcurrency {
failed = true;
}
}
+ loopCount++;
}
}
@@ -172,6 +178,10 @@ public class TesterFileStoreConcurrency {
return failed;
}
+ public int getLoopCount() {
+ return loopCount;
+ }
+
protected abstract void doTask(Session session) throws Exception;
protected abstract String getTaskName();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org