当我们在OHS中安装了Weblogic反向代理插件时,有的时候需要对请求转发,HTTP请求失败等进行诊断。
此时就需要开启debug日志,方法如下:
编辑mod_wl_ohs.conf在需要诊断的Location中添加如下内容
DebugConfigInfo ON
Debug ALL
WLLogFile /home/hyperion/HyperionPlanning_rest.log
例如:
<LocationMatch ^/HyperionPlanning>
SetHandler weblogic-handler
WeblogicCluster xxxxx.xxx.com:9000
WLIOTimeoutSecs 36000
Idempotent OFF
WLSocketTimeoutSecs 600
DebugConfigInfo ON
Debug ALL
WLLogFile /home/hyperion/HyperionPlanning_rest.log
</LocationMatch>
然后重启OHS即可。
启用了DebugConfigInfo指令之后,就可以直接在浏览器中查看对应的参数配置信息,例如在浏览器中输入
http://myWebTier.mycompany.com:7777/HyperionPlanning?__WebLogicBridgeConfig
则可查看到相应配置参数信息,如下所示:
WebLogic Server Plugin version 1.1, <WLSPLUGINS_11.1.1.9.0_LINUX.X64_150206.1116>
Query String: '?__WebLogicBridgeConfig'
WebLogic Cluster List:
WLRetryAfterDroppedConnection: 'ALL'
General Server List:
Host: '192.165.1.12' Port: 9000 SecurePort: 9000 Status: OK
ConnectRetrySecs: '2'
ConnectTimeoutSecs: '10'
WLCookieName: JSESSIONID
Debug: 'HFW'
DebugConfigInfo: 'ON'
DefaultFileName: ''
DisableCookie2Server: OFF
DynamicServerList: 'OFF'
ErrorPage: ''
FileCaching: ON
Idempotent: OFF
KeepAliveEnabled: ON
KeepAliveSecs: 20
MaxPostSize: '0'
MaxSkipTime: '10'
PathPrepend: ''
PathTrim: ''
QueryFromRequest: OFF
WLForwardUriUnparsed: OFF
WLAllowDoubleEscapedURI: OFF
SecureProxy: 'OFF'
StatPath: 'false'
WLDNSRefreshInterval: '0'
WLIOTimeoutSecs(old name is HungServerRecoverSecs): '36000'
WLLogFile: '/home/hyperion/HyperionPlanning_rest.log'
WLSocketTimeoutSecs: '600'
WLProxySSL: OFF
WLProxyPassThrough: OFF
WLProxySSLPa