This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 5fb2dfa695 Add simple relative performance monitoring
5fb2dfa695 is described below
commit 5fb2dfa695b652e249de9d7a5596ec6bac3e6b71
Author: Mark Thomas <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]