users@glassfish.java.net

glassfish idle thread timeout

From: Matěj Plch <plchmate_at_fit.cvut.cz>
Date: Thu, 14 Apr 2011 14:09:51 +0200

We have REST service which takes more than 15min. WE have configured
thread pool timeout, set timeout throught console, but its not working.
I found quite a lot of posts on this topic, in summer 2010 the
developers wrote, that they know about it and it will be fixed in the
next release, but I have *GlassFish Server Open Source Edition*3.1
(build 43) *and it***is not working.
Was it fixed or not? How to set timeout?

My domain.xml:
<network-listeners>
<network-listener port="8080" protocol="http-listener-1" transport="tcp"
name="http-listener-1" thread-pool="http-thread-pool-1"></network-listener>
<network-listener port="8181" protocol="http-listener-2" transport="tcp"
name="http-listener-2" thread-pool="http-thread-pool"></network-listener>
<network-listener port="4848" protocol="admin-listener" transport="tcp"
name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
</network-listeners>
<transports>
<transport name="tcp"></transport>
</transports>
</network-config>
<thread-pools>
<thread-pool max-thread-pool-size="50" name="admin-thread-pool"
max-queue-size="256"></thread-pool>
<thread-pool name="http-thread-pool"
idle-thread-timeout-seconds="3600"></thread-pool>
<thread-pool name="http-thread-pool-1"
idle-thread-timeout-seconds="3600"></thread-pool>
</thread-pools>

That error:
WARNING: GRIZZLY0023: Interrupting idle Thread: http-thread-pool-1-8080(1).
SEVERE: java.lang.InterruptedException: sleep interrupted