Java Database Connection Disclosure workaround-based on WebLogic server

Source: Internet
Author: User

Temporarily resolve connection leak scenarios

When a connection leak really happens, inevitably, we take the following scenario to temporarily resolve the connection issue to try to change the code time.

Step 1: Select theJNDIData Source

Steps2(optional): Maximum number of data connections can be configured

Steps3:Connection Leak Auto-shutdown

Click on the icon, expand, set when there is a connection leak, WEBLOGIC10 automatically shuts down automatically. The timeout number of seconds is set by the property inactive connection timeout. 0 for disable, set greater than 1.

For example: Set - seconds, the connection to the leak is automatically closed. Once set up here, you can view the logs of the connection auto-shutdown and the connection leak point in the weblogic10 log . See the log section for descriptions.

Monitoring connection Leak settings connection Leak profile

Check "Profile connection leak" option

Monitor connection Usage

Increase the leak connection count in the Customize this table column to count the number of connection leaks.

Find Java connection leak points

Copy the exception information and you can see where the code is leaking.

Java Database Connection Disclosure workaround-based on WebLogic server

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.