Mantis - Resin
Viewing Issue Advanced Details
3694 major always 09-23-09 11:46 01-18-11 20:33
mocospace  
ferg  
normal  
closed 4.0.1  
fixed  
none    
none 4.0.14  
0003694: Major garbage collection (GC) causes thread spike
Every major/full garbage collection (GC) in Resin 4.0.1 professional causes the number of threads to spike in the JVM. This was not the case in Resin 3.2.x professional and is preventing us from upgrading. Resin 4 also seems to use more threads in general than Resin 3. We are running on CentOS 5, with the following JVM params -

        <jvm-arg>-server</jvm-arg>
        <jvm-arg>-Xms2560m</jvm-arg>
        <jvm-arg>-Xmx4608m</jvm-arg>
        <jvm-arg>-XX:MaxPermSize=256m</jvm-arg>
        <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
        <jvm-arg>-XX:+CMSClassUnloadingEnabled</jvm-arg>
        <jvm-arg>-XX:CMSInitiatingOccupancyFraction=60</jvm-arg>
        <jvm-arg>-XX:+PrintGCTimeStamps</jvm-arg>
        <jvm-arg>-XX:+DisableExplicitGC</jvm-arg>
 threads.JPG [^] (27,446 bytes) 09-23-09 12:29

Notes
(0004252)
mocospace   
09-23-09 12:19   
We are running

java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)

Attached screen shot of thread spike

(0004256)
ferg   
09-25-09 14:53   
We've redone the threads significantly for 4.0.2. I don't know if this will greatly affect the issue you're seeing.

The latest threading model does keep more threads around by default, where earlier versions of Resin were more aggressive about reaping idle threads.
(0004969)
ferg   
01-18-11 20:33   
Threading model has changed in more recent versions of 4.0.x. If the problem persists, please submit a new bug report with the current version of Resin.