http://blog.csdn.net/myid/article/details/7279357
4.编辑httpd.conf文件,在Listen 80行后,增加:Include conf/weblogic.conf
设置以下属性的值:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 0
ThreadsPerChild 1920
MaxRequestsPerChild 10000
LogLevel error
其中:ThreadsPerChild、MaxRequestsPerChild的设置是为了解决:Action.c(10): Continuing after Error -26609: HTTP Status-Code=503 (Service Temporarily Unavailable)错误。
去掉server-status配置模块相关配置信息的注释,使其生效。比如
<Location /server-status>
SetHandler server-status
Order allow,deny
Deny from nothing
Allow from all
</Location>
去掉下面4行语句之前的#号:
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule rewrite_module modules/mod_rewrite.so
5.将C:\bea\weblogic81\server\bin目录下的mod_wl_20.so复制到apache安装目录 C:\Program Files\Apache Group\Apache2\conf下。
6.新建weblogic.conf文件,内容如下:
LoadModule weblogic_module modules/mod_wl_20.so
<Location /TestDL>
SetHandler weblogic-handler
WebLogicCluster 82.0.98.237:7001,82.0.176.3:7001
Debug ON
Debug ALL
DebugConfigInfo ON
WLLogFile c:\wl.log
DynamicServerList OFF
KeepAliveEnabled ON
KeepAliveSecs 30
</Location>
其中:/TestDL是应用的上下文根
82.0.98.237:7001,82.0.176.3:7001是2台web服务器的IP地址及端口号,中间用逗号分隔。
DynamicServerList设置为OFF,在对由插件所代理的请求进行负载平衡时,不使用动态集群列表,而是使用WebLogicCluster参数指定的静态列表。
DynamicServerList 、KeepAliveEnabled、KeepAliveSecs 的设置是为了解决: No backend server available for connection: timed out after 10 seconds or idempotent set to OFF错误。
http://dev2dev.us/thread-18058-1-1.html
- Idempotent should be set to ON and if the servers do not respond within HungServerRecoverSecs (WLIOTimeoutSecs), the plug-ins fail over. If set to “OFF” the plug-ins do not fail over.
- All session objects should be serializable to replicate.
If the server become frozen or hung, then there won’t be response to the proxy server until WLIOTimeoutSecs is elapsed. If neither the session replication nor Idempotent is set, then already established session won’t be replicated and will not fail over to next available server. If there is no session replication but Idempotent is set, then the request will fail-over to next server but the sticky session will be lost since the session is not replicated, so a new session will be given from the next available server in the clustered server list.
If the user cannot implement the replication due to the object serialization but can set Idempotent, then as long as the servers are doing well, the user might not see the sticky session problem; however, under an overloaded condition or a hung or frozen server, the client could end up getting a new session due to the sticky session failure.
http://bbs.middleware123.com/thread-15065-1-1.html
Can you cross verify your mod_wl_ohs.conf configuration and ensure that you have the correct IP and port configured?Also,please ensure that the weblogic server is running correctly. Enable idempotent to ON. Also,please try accessing the WLS console by proxying through the OHS server. This would tell you if the issue is specifically while accessing forms application alone or with any other app. Please have a look at the OHS log files too to see the exact error that you see in there. -Sandeep |
http://soft.zdnet.com.cn/software_zone/2007/1004/535471.shtml
ConnectRetrySecs |
2 |
该参数以秒为单位,设置了两次Weblogic Server主机(或集群中的所有服务器)连接尝试之间,插件的休眠时间。该参数的值应该小于ConnectTimeoutSecs。插件在返回HTTP 503/Service Unavailable响应之前,它将进行的连接次数为ConnectTimeoutSecs除以ConnectRetrySecs所得的值。 |
Debug |
OFF |
设置调试操作时的日志类型。在生产系统中不建议你开启这些调试选项。 |
WLLogFile |
参见Debug参数 |
|
DebugConfigInfo |
OFF |
启用特殊查询参数"_WeblogicBridgeConfig"。该参数可以被用来了解插件的配置参数的细节。 |
StatPath(Microsoft Internet Information Server 插件没有这个参数。) |
false |
如果把该参数设置为真,插件在把请求传递到Weblogic服务器之前检查被转换的路径是否存在或及其访问权限("Proxy-Path-Translated")。如果文件不存在,将把HTTP 404 File Not Found响应返回给客户端。如果文件存在,但它的权限不是world-readable,那么将返回HTTP 403/Forbidden响应。这两种情况下Web服务器处理这些响应的缺省机制是执行响应的体内容。如果Weblogic服务器的Web应用与Web服务器具有相同的文档根,那么该选项非常有用。 |
ErrorPage |
none |
|
HungServerRecoverSecs |
300 |
定义了插件等待Weblogic服务器响应请求的时间。在等待了HungServerRecoverSecs时间后,插件还没有得到服务器的响应,那么它将宣布该服务器已经死机并失败转移到下一个服务器。应该把该参数设置为一个较大的值。如果所设置的值小于servlets进行处理的时间,那么会得到意想不到的后果。 |
Idempotent |
ON |
如果该参数设置为ON,那么当服务器在指定的HungServerRecoverSecs时间没有响应,那么插件将进行容错处理。如果设置为OFF,插件将不进行失败转移。如果所使用的是Netscape Enterprise Server插件或Apache HTTP Server插件,不同的URL与MIME类型可以有不同的Idempotent参数设置。 |