关于weblogic的RefreshMinutes参数[转帖]_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4056 | 回复: 0   主题: 关于weblogic的RefreshMinutes参数[转帖]        下一篇 
John
注册用户
等级:大元帅
经验:90444
发帖:136
精华:2
注册:2011-7-21
状态:离线
发送短消息息给John 加好友    发送短消息息给John 发消息
发表于: IP:您无权察看 2011-8-1 16:23:31 | [全部帖] [楼主帖] 楼主

在网上可以搜到不少关于weblogic自动重连数据库的文章,需要设置一些参数。其中提到了RefreshMinutes这个参数,在8和9版本中我都没找到这个参数的踪影。经过分析,估计跟如下的参数时一个意思。

Test Frequency:
The number of seconds (between 0 and a positive 32-bit integer) between automatic database connection tests. Connections that fail the test are closed and reopened to re-establish a valid physical database connection. (You must specify a Test Table Name below.)


抱着求甚解的态度,去翻阅了weblogic6,7版本的帮助文档,均没找到Test Frequency这个参数,不过都有一个跟RefreshMinutes类似的参数描述:

Shrink Period


我们来看一下在6,7版本中对该参数的解释

6
Refresh Period
This attribute sets the connection refresh interval. Every unused connection will be tested using TestTableName. Connections that do not pass the test will be closed and reopened in an attempt to reestablish a valid physical database connection. If TestTableName is not set then the test will not be performed.
Integer. Units in minutes.
Minimum = 0.
Maximum = 35791394
Default = 0.
7
Refresh Period
The number of minutes between database connection tests. After every RefreshMinutes interval, unused database connections are tested using TestTableName. Connections that do not pass the test will be closed and reopened to re-establish a valid physical database connection. If TestTableNameis not set, the test will not be performed.
MBean: weblogic.management.
configuration.
JDBCConnectionPoolMBean
Attribute: RefreshMinutes
Units: minutes
Minimum: 0
Maximum: 35791394
Default: 0
Configurable: yes
Readable: yes
Writable: yes


总结:很明显,在weblogic7中指明了这个RefreshMinutes参数,从参数解释来看,在8,9版本里的Test Frequency似乎跟RefreshMinutes是一个意思。

参考链接:

http://download.oracle.com/docs/cd/E13222_01/wls/docs61/ConsoleHelp/
http://download.oracle.com/docs/cd/E13222_01/wls/docs70/ConsoleHelp




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论