Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 websphere 6.1 中预测试现有池连接和预测试新连接之间有什么区别..哪个选项是最好的?
我们可以启用这两个选项吗?
您可以同时启用这两个选项。
预测试现有的池连接更有用,因为它处理了已打开连接池中的过时连接的常见问题。如果预测试失败,则丢弃连接并建立新连接。“活动”连接未经预先测试,因此对性能的影响是有限的。否则,您需要按以下方式处理 StaleConnectionExceptions:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rdat_stalconexp.html
预测试新连接的用处不大,但如果您想获得“预警系统”,可以启用它。