WebLogic连接池配置数据库断掉后自动重连设置
:
进入某个连接池配置页,进入“连接“页,点击高级选项的”show“显示高级选项。
指定 “测试频率” 并启用 “测试保留的连接”、”测试创建的连接” 和 “测试释放的连接”。
测试频率(Test Frequency): 60 秒
自动数据库连接测试之间的秒数(0 - 32 位正整数)。测试失败的连接将被关闭,然后重新打开以重新建立有效的物理数据库连接。(必须在下面指定测试表名称。)
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.)
测试保留的连接(Test Reserved Connections)
指定 WebLogic Server 是否在将连接提供给客户端之前测试该连接。(必须在下面指定测试表名称。)
Specifies whether WebLogic Server tests a connection before giving it
to the client. (You must specify a Test Table Name below.)
测试创建的连接(Test Created Connections)
指定 WebLogic Server 是否在创建连接后且将该连接添加到缓冲池中可用连接列表之前对该连接进行测试。(必须指定测试表名称。)
Specifies whether WebLogic Server tests a connection after creating
it but before adding it to the list of connections available in the
pool. (You must specify a Test Table Name.)
测试释放的连接(Test Released Connections)
指定 WebLogic Server 是否在将连接返回到该 JDBC 连接缓冲池之前测试该连接。(必须指定测试表名称。)
Specifies whether WebLogic Server tests a connection before returning
it to this JDBC connection pool. (You must specify a Test Table Name.)
连接保留超时(Connection Reserve Timeout): 设为 30 秒
在保留缓冲池连接的调用超时之前的秒数(-1 - 32 位正整数)。如果设置为 -1,则调用永远不会超时。
The number of seconds (between -1 and a positive 32-bit integer)
after which a call to reserve a connection from the pool will timeout.
When set to 0, a call will never timeout. When set to -1, a call will
timeout immediately
重试创建连接的频率(Connection Creation Retry Frequency): 设为 30 秒 尝试建立与数据库的连接的间隔秒数(0 - 32 位正整数)。适用于在数据库不可用的情况下服务器启动时创建的连接缓冲池。
The number of seconds (between 0 and a positive 32-bit integer)
between attempts to establish connections to the database. Applies to
connection pools created at server startup when the database is
unavailable.
钝化连接超时(Inactive Connection Timeout):
The number of inactive seconds on a reserved connection (between 0
and a positive 32-bit integer) before WebLogic Server reclaims the
connection and releases it back into the connection pool.
服务器申请复议连接并且保留返回给连接池前的钝化时间
测试表名称(Test Table Name):
oracle的连接池默认为 SQL SELECT 1 FROM DUAL,sybase数据库可以填入一个记录不多的配置表名例如sys_code。
The name of the database table to use when testing physical database
connections. This field is required when you specify a Test Frequency
and enable Test Reserved Connections, Test Created Connections, and Test
Released Connections.
分享到:
相关推荐
weblogic 如何设置session的超时时间
Tomcat和WebLogic中文乱码问题解决方案 在 Java Web 开发中,中文乱码问题一直是困扰开发者的主要问题之一。 Tomcat 和 WebLogic 是两个常用的 web 服务器,都是支持 Servlet 和 JSP 的。然而,在使用这些服务器时...
本文将详细讲解WebLogic修改IP导致出错解决方案,包括启动失败解决方案、修改IP导致出错原因分析、解决方法等。 一、启动失败解决方案 在WebLogic中,启动失败可能是由于多种原因引起的,例如安全服务初始化失败、...
解决weblogic反序列化安全问题,文档中有详细的操作步骤,已经验证
Weblogic 连接池配置数据库断掉重连的问题 在 Weblogic 中,连接池配置数据库断掉重连是一个非常重要的...通过了解这些知识点,我们可以更好地理解 Weblogic 连接池配置数据库断掉重连的问题,并更好地解决实际问题。
搭建weblogic及问题解决方案
WebLogic应用优化解决方案 s
解决weblogic down 掉 被locked的情况
一段时间没操作weblogic 9 由于没设置比较容易记的密码导致 密码遗忘
财政系统WebLogic服务器负载均衡解决方案 根据预设的负载策略,将不同的访问请求分发到相应的服务器
weblogic连接池配置说明, weblogic8.1连接池配置及简单优化
将应用部署到 WebLogic 10 及 Oracle Linux 遇到的问题及解决方案 在将应用部署到 WebLogic 10 及 Oracle Linux 的过程中,我们遇到了多种问题,这些问题都与 Java 语言和 WebLogic 服务器相关。在本文中,我们将...
java的一些war包由Tomcate移植到webLogic所引起的一些常见问题及解决方法
"将应用部署在Weblogic中与Axis2冲突的问题及解决方案" 问题描述 在将应用部署到Weblogic Server 10.3时,出现了一个错误,抛出ClassCastException异常,具体错误信息为: `java.lang.ClassCastException: ...
技术文章(迁移问题解决方案)-从WebLogic 6_1迁移到 WebLogic 8_1.mht
可以将 Weblogic 服务器部分的运算压力减轻,并使 Weblogic Server 专注于高性能 WEB 和 EJB 服务的提供,使得部署在 Weblogic 电子商务平台上的服务和应用获得一个高性能、高可伸缩的解决方案的提供。
weblogic10.3集群配置.doc weblogic10.3优化设置.doc weblogic 报 to many open file错误.docx weblogic.xml_部署描述符元素.docx Weblogic+10.3+集群配置手册.doc weblogic-debug模式启动.docx weblogic-debug模式...
该文档对weblogic使用过程中,包括下载,安装,部署运营过程中出现的问题进行了描述和提供了解决方法,比如1. 包引入错误... 3 2. 乱码现象... 3 3. mime-typeType配置问题... 4 4. 应用不存在... 4 5. ...
weblogic日常巡检的方法,包括weblogic8和weblogic10,,如果weblogic中间件出现问题,也可以通过这些地方入手排查。
有些情况下,在开发web项目中会遇到weblogic无法解析xml的错误,是因为weblogic在解析xml时是调用自己的方法去解析,会产生一些莫名其妙的错误,我们只要在web-inf下添加weblogic.xml让其让出解析权即可.