- Posted by: Rafael Forte
- Posted on: December 07 2004 10:53 EST
I'm experiencing some threading problems in my production environment. After some time of execution my production jboss generates a Thread consuming 99,9% of the CPU. The other three processors are 100% idle while this thread is running.
Red Hat Enterprise 3.0
j2sdk1.4.2_05 (sun jvm)
Thanks in advance.
I guess the question is "What is that thread doing when it consumes 99.9% of that CPU?". If you ctrl-break the server you will get a server stack dump. And if you look through the threads you might be able to identify the particular thread and by looking at the call stack you will know what is going on.
I' got he thread dump and for my surprise, the "problematic" thread was the JVM GC Thread. I've tried the -Xincgc flag but have no success. Have you ever experienced situation like that?
PS.: When this thread begin to consume CPU the application performance decrease very much.
Please take a look at -
You need to observe the garbage collection pattern of your application using the -verbose:gc option of the JVM. Based on the output you would want to size the generations.