users@glassfish.java.net

Re: glassfish idle thread timeout

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Mon, 18 Apr 2011 10:37:09 +0200

Hi Matej,

please increase the HTTP request processing timeout (default value is
15mins) by setting

asadmin set
server-config.network-config.protocols.protocol.http-listener-1.http.request-timeout-seconds=NNN

where NNN the max number of *seconds* one single request might be
processing by a thread.
As I told the default value is 15mins, which means NNN=900, so you can
set any higher value.

Hope this will help.

WBR,
Alexey.


On 04/14/2011 02:09 PM, Matěj Plch wrote:
> 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