Mantis - Resin
Viewing Issue Advanced Details
5500 minor always 08-21-13 08:34 10-04-13 10:17
cowan  
ferg  
normal  
closed 4.0.36  
fixed  
none    
none 4.0.38  
0005500: Protect against OOM in watchdog
An out-of-memory can occur in the Watchdog, resulting in Watchdog shutdown.

[2013/08/15 18:46:23.138] {resin-1950} Watchdog received warning from Resin[app-0,pid=10636]:
                                         Shutdown: Resin exiting because of failed thread
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:691)
        at com.caucho.env.thread2.ThreadLauncher2.launchChildThread(ThreadLauncher2.java:96)
        at com.caucho.env.thread2.AbstractThreadLauncher2.startConnection(AbstractThreadLauncher2.java:546)
        at com.caucho.env.thread2.AbstractThreadLauncher2.runTask(AbstractThreadLauncher2.java:645)
        at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:240)
        at java.lang.Thread.run(Thread.java:722)
WarningService: Shutdown: Resin exiting because of failed thread
[2013/08/15 18:46:23.151] {ThreadLauncher2[ThreadPool[system]]-1} WarningService: Shutdown: Resin exiting because of failed thread
[2013/08/15 18:46:23.182] {resin-shutdown} ProServer[id=default,cluster=watchdog] stopping
[2013/08/15 18:46:23.187] {resin-shutdown} Host[production/host/admin.resin] stopping
[2013/08/15 18:46:23.188] {resin-shutdown} WebApp[production/webapp/admin.resin/ROOT] stopping

Shutdown Resin reason: THREAD

[2013/08/15 18:46:23.207] {resin-shutdown} Shutdown Resin reason: THREAD
Rep by K. Hosein

Notes
(0006332)
ferg   
10-04-13 10:17   
Increased idle min/max and timeout to minimize the need for thread spawning in the watchdog.