We have a scenario where the following line in WebServer.java throws 
spurious errors:


            if (runners.activeCount () > 255)
            {
                throw new RuntimeException ("System overload");
            }


The problem with this occurs if any of the the xml/rpc service handlers create 
threads themselves, then as it's parent, these will also end up in the 
"runners" ThreadGroup unless the parent of the created thread is specifically 
set differently.

Hence the above doesn't just count runner threads, but also all threads 
which runner threads create. We can easily work around this in our code, by 
setting the ThreadGroup before creating new threads - but the behaviour 
seems wrong somehow.

Regards

-- Rob Walker



SoftSell Business Systems, Ltd.
' testing solutions for a changing world '
 
+44 (20) 7488 3470
www.softsell.com
[EMAIL PROTECTED]

Reply via email to