Resolve WebLogic Error: Java.sql.SQLRecoverableException:IO Error:broken pipe

Source: Internet
Author: User

First, the system infrastructure:

Server: weblogic11g Cluster

Database: Oracle Database RAC

Error message: 1.java.sql.sqlrecoverableexception:closed Connection

2.Test ' Select 1 from DUAL ' Set up for pool ' Mds-soa ' failed with exception: ' Java.sql.SQLRecoverableException:IO Error: Broken Pipe "

Log information is the above two, you can see the input source of the problem.

Solution and steps: 1.check the data source in WebLogic Jndi can be connected properly. After verification;

2. Check that the database server is healthy. After checking, a database server was found down.

Then check the business data, found that after the down, the WebLogic server has been reported for two consecutive days of this error.

This situation is very illogical;

3. The first thing we suspect is that there is a problem with the installation configuration of the RAC environment and there is no timely switchover after a database in the cluster has been down.

It is not possible to do this because of the investigation.

4. Return to the WebLogic cluster configuration again, we carefully check the configuration of the data source, one click Domain->service->data source->configuration->connection Pool

In advance, we found a configuration of "Test Connectionson reserve" with a property value of false

The meaning of this property is: "Enables WebLogic Server to test the connection before providing the connection to the client. (Requires specifying the test table name.) This test adds a short delay in response to a client request for a connection in the pool, but ensures that the client receives a valid connection. MBean properties (not applicable to application modules) "

At this point, change the property value to True, the problem is resolved

If this property is true, the SQL Select 1 from DUAL is checked first when invoking the database in the same way that Jndi is called, and if the value is not NULL, WebLogic will establish a connection to a database server in the RAC, and if the value is null, The RAC is reassigned back to the other servers.

Resolve WebLogic Error: Java.sql.SQLRecoverableException:IO Error:broken pipe

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.