环境:
Windows 2008 服务器版
网豆 6.7.1
玻璃鱼 2.1
Apache 2.2.15 for win32
原始问题(几乎已修复):
如果我等待超过 30 秒,发送数据的 HTTP/1.1 GET 方法会失败。
我做了什么:
我在 Apache 的 http.conf 文件中添加了以下几行:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 9000
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
我去了 Glassfish 面板(localhost:4848)并在Configuration > HTTP services中输入:
超时请求:9000 秒(30 秒)
待机时间:-1(30秒)
问题:
我无法为 glassfish 设置大于 2 分钟的超时来发送 GET 方法。
我找到了这篇关于 glassfish 设置的文章,但我找不到应该把这些参数放在哪里,以及它们是否可以工作。
任何人都可以帮助尝试将此超时设置为更高的限制吗?
新尝试的解决方案:
我转到 glassfish 面板控件,然后转到Configuration > Subprocesses > "Thread-pool-name"并将空闲超时从 120 秒更改为 1200 秒。然后我重新启动了 glassfish 服务(来自管理工具和 asadmin),但它仍然等待 120 秒进入空闲状态。我什至尝试重新启动整个服务器,仍然没有结果。也许在 postgres 中有一些设置?还是通过 glassfish 将 netbeans 连接到 postgres?
新发现:
我一直在互联网上搜索,也许它可能是代理超时,但我现在真的不知道如何改变它:有人可以帮我吗?