title: Why an application would create 31 "GC task thread" in one Solaris box while only 2 in another box
body: <p>I saw in one application (java) which has irregular memory usage in a Solaris box. When I took a thread dump, I saw there were 31 "GC task thread"...</p>
  
  <p>This is very strange as in other Solaris box, same application only had 2 "GC task thread".</p>
  
  <p>Wondered if anybody know, under which circumstance, the jvm will create so many GC task threads and could this cause memory issue?</p>
  
  <p>Any ideas is appreciated. </p>
  
  <p>Some more background on my case:
  Each time I will have two similar Java applications running at the same time in same box. I will keep sending requests to application A , and no request to application B. So, app B should be in-active. And it is alway "sleep" when using prstat.</p>
  
  <p>Strange thing is, in one Solaris box, app B keeps consuming memory while app A is processing request. And in app B's thread dump, I can see 31 GC task threads.
  And in another Solaris box, app B is normal, the memory is normal and only 2 GC task threads.</p>
  
  <p>Thanks a lot.</p>