David G Ortega said the following on 10/03/2012 04:09 PM:

    My example certainly reuses the thread names...  You just cannot
    reuse a
    thread name when there is a thread with the same name that is
    currently
    in a "running" state.


Thats weird this is my code (sorry folks I prefer cfscript)
I think you're hitting some weird JVM garbage collection bug. I got a JVM crash report and Google pulls this up:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6810474

Its shows verified by not fixed. Given this I tried the same test with OpenJDK6 instead of the SunJDK6 or 7. What do you know?

running thread number 499999 - 1
running thread number 499999 - 2
running thread number 499999 - 3
running thread number 499999 - 4
running thread number 499999 - 5
running thread number 500000 - 1
running thread number 500000 - 2
running thread number 500000 - 3
running thread number 500000 - 4
running thread number 500000 - 5

It worked all the all to 500,000 with very little GCs and a flat heap size once the process ramped up.

Maybe try using OpenJDK as the JVM for tomcat (it's set in your catalina.sh/bat file).

--
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument 
instead! http://fsf.org/campaigns/opendocument/

--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

Reply via email to