在长时间运行的后端Servlet处理中,IE 11显示“无法显示页面”

问题描述 投票:2回答:1

我有一个Servlet,它需要6分钟以上才能完成操作。该应用程序托管在weblogic 12c上,可通过BIGIP F5负载均衡器然后通过apache服务器进行访问。 Apache使用wl_proxy与weblogic进行通信。每当调用此servlet时,IE就会显示“无法显示此页面”。我在apache服务器上打开wl_proxy登录,发现以下内容:

Exception type [READ_TIMEOUT] (no read after 300 seconds) raised at line 212 of ../nsapi/Reader.cpp

因此,我在wl_proxy.conf中添加了WLIOTimeout指令,该指令修复了问题的一部分。仍然在5分钟后仍显示相同的错误,这次我在wl_proxy日志中看到以下错误:

Fri Jul 31 12:49:05 2015 <396114383469453> created a new connection to preferred server 'xxx.x.xxx.xxx/5096' for '/getUserActivitiesReport.do?action=GENERATEREPORT', Local port:36249
Fri Jul 31 12:55:02 2015 <396114383469453> URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 200 OK]
Fri Jul 31 12:55:02 2015 <396114383469453> URL::parseHeaders: StatusLine set to [200 OK]
Fri Jul 31 12:55:02 2015 <396114383469453> parsed all headers OK
Fri Jul 31 12:55:02 2015 <396114383469453> sendResponse() : r->status = '200'
Fri Jul 31 12:55:02 2015 <396114383469453> Write to the browser failed: calling URL::close at line 680 of ap_proxy.cpp
Fri Jul 31 12:55:02 2015 <396114383469453> *******Exception type [WRITE_ERROR_TO_CLIENT] raised at line 681 of ap_proxy.cpp
Fri Jul 31 12:55:02 2015 <396114383469453> *NOT* failing over after sendResponse() exception: WRITE_ERROR_TO_CLIENT
Fri Jul 31 12:55:02 2015 <396114383469453> request [/getUserActivitiesReport.do?action=GENERATEREPORT] did NOT process successfully..................

此请求的Apache访问日志:

xxx.xxx.xxx.xxx - - [31/Jul/2015:12:49:05 +0000] "POST /getUserActivitiesReport.do?action=GENERATEREPORT HTTP/1.1" 200 10 "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko" "PsHK9qECrbkAAA95AFgAAAAG" 80 357322233

现在为什么浏览器关闭了连接! AFAIK IE在60分钟后11次超时。同样在IE开发人员中,我将连接视为“异常终止”。任何人都可以面对此类问题。知道是否在F5级别设置了超时吗?提前致谢,Debojit

apache servlets internet-explorer-11
1个回答
0
投票

我有同样的问题,解决方案是在Weblogic插件配置中添加这两个参数:

WLIOTimeoutSecs 14400
WLSocketTimeoutSecs 14400

请注意参数(14400),这仅是示例。并重新启动您的http服务器。

我的配置:

<IfModule mod_weblogic.c>
  <Location />
    WebLogicHost 172.x.x.x
    WebLogicPort 7003
    SetHandler weblogic-handler
    WLIOTimeoutSecs 14400
    WLSocketTimeoutSecs 14400
  </Location>
  </IfModule>

更多信息:文档ID 2554989.1和https://docs.oracle.com/middleware/12211/webtier/develop-plugin/PLGWL.pdf

© www.soinside.com 2019 - 2024. All rights reserved.