summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-28 13:47:42 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-28 13:47:42 -0230
commit1e6317134c769a333c2d653d18c444b7f03c7249 (patch)
treeaa590e61b6846bc6cf30e6ffd3b50881c0faddf0 /java/src/IceInternal/ThreadPool.java
parentBug 3482 - deprecate generateUUID in C# (diff)
downloadice-1e6317134c769a333c2d653d18c444b7f03c7249.tar.bz2
ice-1e6317134c769a333c2d653d18c444b7f03c7249.tar.xz
ice-1e6317134c769a333c2d653d18c444b7f03c7249.zip
Bug 2558 - thread pool tracing
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 4443892b0ab..6b6551806ad 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -84,6 +84,13 @@ public final class ThreadPool
_size = size;
_sizeMax = sizeMax;
_sizeWarn = sizeWarn;
+
+ if(_instance.traceLevels().threadPool >= 1)
+ {
+ String s = "creating " + _prefix + ": Size = " + _size + ", SizeMax = " + _sizeMax + ", SizeWarn = " +
+ _sizeWarn;
+ _instance.initializationData().logger.trace(_instance.traceLevels().threadPoolCat, s);
+ }
try
{
@@ -240,6 +247,12 @@ public final class ThreadPool
assert(_inUse <= _running);
if(_inUse < _sizeMax && _inUse == _running)
{
+ if(_instance.traceLevels().threadPool >= 1)
+ {
+ String s = "growing " + _prefix + ": Size = " + (_running + 1);
+ _instance.initializationData().logger.trace(_instance.traceLevels().threadPoolCat, s);
+ }
+
try
{
EventHandlerThread thread = new EventHandlerThread(_programNamePrefix + _prefix + "-" +
@@ -684,6 +697,13 @@ public final class ThreadPool
//
if(load + 1 < _running)
{
+ if(_instance.traceLevels().threadPool >= 1)
+ {
+ String s = "shrinking " + _prefix + ": Size = " + (_running - 1);
+ _instance.initializationData().logger.trace(
+ _instance.traceLevels().threadPoolCat, s);
+ }
+
assert(_inUse > 0);
--_inUse;