【问题标题】:Windows server 2008/glassfish/postgres proxy timeout HTTP idle after 120 secondsWindows 服务器 2008/glassfish/postgres 代理超时 HTTP 空闲 120 秒后
【发布时间】:2012-04-10 13:33:30
【问题描述】:

环境:

Windows 2008 服务器版

Netbeans 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 方法。

我找到了这篇文章 about glassfish settings,但我找不到应该将这些参数放在哪里,以及它们是否可以工作。

任何人都可以帮助尝试将此超时设置为更高的限制吗?

新的尝试解决方案:

我转到 glassfish 面板控件,然后转到 Configuration > Subprocesses > "Thread-pool-name" 并将空闲超时从 120 秒更改为 1200 秒。然后我重新启动了 glassfish 服务(来自管理工具和 asadmin),但它仍然等待 120 秒进入空闲状态。 我什至尝试重新启动整个服务器,仍然没有结果。也许在 postgres 中有一些设置?还是通过 glassfish 将 netbeans 连接到 postgres?

新发现:

我一直在互联网上搜索,也许它可能是代理超时,但我现在真的不知道如何更改它:有人可以帮助我吗?

【问题讨论】:

    标签: apache netbeans glassfish windows-server-2008


    【解决方案1】:

    最后是 Apache 的 httpd.conf 文件中的 ProxyTimeout 指令。

    this

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-10
      • 1970-01-01
      • 2021-10-18
      • 2017-08-27
      • 1970-01-01
      • 1970-01-01
      • 2011-09-28
      相关资源
      最近更新 更多