GRIZZLY0023 Glassfish警告 [英] GRIZZLY0023 Glassfish warning

查看:108
本文介绍了GRIZZLY0023 Glassfish警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GlassFish服务器上的java中部署了2个Web应用程序。我正在使用Glassfish Server 3.1.2.2。他们都有从他们接收http请求的java servlet页面,代码也是相同的,只有不同的参数(针对不同的客户端)。第一个很好,另一个处理http请求的时间很长。之后,我注意到了下一件事:



我在Netbeans的Glassfish输出中不断收到此警告。

 警告:GRIZZLY0023:中断空闲线程:http-thread-pool-9990 

任何人都可以解释为什么我得到这个警告,以及如何解决它。

解决方案

HTTP请求超时。 Glassfish的默认超时时间为 15分钟



这可能发生在不同的情况下。当一个请求调用一个在超时期限内没有返回任何响应的长时间运行的动作时,如果通过HTTPS向服务器发出一个请求并且它只支持HTTP(反之亦然),或者如果没有可用的连接在HTTP连接池中。

您的情况中的具体原因只能被猜出,但通常解决此问题的一个方法是增加默认HTTP请求超时。您可以在Glassfish Admin GUI( http:// localhost:4848 )下设置此值:


服务器配置 - > 网络配置 - > 网络监听器 - > < your listener>



字段 Request Timeout 设置为 900 (15分钟),只需增加此值即可。不幸的是,您不能将它设置为 -1 ,因为Glassfish 3.1.2以后没有限制。



您可以也可以使用 asadmin 工具来设置它:

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


I have deployed 2 web application in java on GlassFish server. I am using Glassfish Server 3.1.2.2. They both have java servlet pages from where they receive http requests, also the code is identical, only different parameters (for different clients). The first works well and the other process the http request very long. After that i noticed the next thing:

I am constantly getting this warning in the Glassfish output in Netbeans.

WARNING: GRIZZLY0023: Interrupting idle Thread: http-thread-pool-9990

Can anyone explain me why i get this warning, and how to solve it.

解决方案

This warning occurs if a HTTP request times out. The Glassfish default timeout is 15 minutes.

This can happen in different situations, e.g. when a request invokes a long-running action which doesn't return any response in the timeout period, if a request to your server was made via HTTPS and it only supports HTTP (or vice versa), or if there are no more connections available in the HTTP connection pool.

The specific cause in your case can only be guessed, but in general one solution for this problem is to increase the default HTTP request timeout. You can set this value in the Glassfish Admin GUI (http://localhost:4848) under:

server-config -> Network Config -> Network Listeners -> <your listener>

the field Request Timeout is set to 900 (15 minutes) by default, just increase this value. Unfortunately you can't set it to -1 to have no limit since Glassfish 3.1.2.

You can also set it with the asadmin tool like this:

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

这篇关于GRIZZLY0023 Glassfish警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆