process reaper
807603Jan 30 2008 — edited Jan 30 2008We have our application server running on a solaris box with 16 GB RAM and 4 processors (Hotspot 1.4.2). While debugging OutOfMemory errors on the server, I came across some threads in thread dump. Here is one of them ...
*"process reaper" daemon prio=5 tid=0x00b15478 nid=0x18ba2 runnable [ad5f000..ad5fc30]*
* at java.lang.UNIXProcess.waitForProcessExit(Native Method)*
* at java.lang.UNIXProcess.access$1000(Unknown Source)*
* at java.lang.UNIXProcess$3.run(Unknown Source)*
There are almost 200 such threads in dump. I tried searching for this in Google but didn't find much though I came across some JVM bugs related to Process.waitFor() and related things.
Would highly appreciate if someone can throw some light on this? Need to know what are these threads and what's causing them getting blocked (waitForProcessExit). I have little idea that these threads are created by OS whenever we do a fork() through Runtime.exec().