[WLS]JDBC Connection Pool 튜닝
- Middleware/WebLogic
- 2010. 4. 1.
How to tune JDBC connection pools for production environments?
Configuration of JDBC connection pools for production systems is a critical and important task to ensure stability and performance. Some general recommendations may help as a starting point for administrators:
-
set
InitialCapacity = MaxCapacity
This will ensure that all connections are opened during WebLogic Server start. As creation of a physical database connection is very expensive, all needed connections should be opened immediately and kept open.
-
disable shrinking by setting
ShrinkingEnabled
to false
As mentioned above, creation of physical database connections is expensive, connections should be established once and kept during the complete lifetime of the WebLogic Server instance.
-
turn off refresh functionality if it is not needed - please check JDBC Connection Pool Issues and Firewall between database and WebLogic Server above for more information.
-
set
TestConnectionsOnReserve
to true.
This will ensure that connections are tested before they go to the application and are reopened if needed.
-
set
TestConnectionsOnRelease to false.
As connection testing is an overhead that should be avoided where possible, connection testing for connections that an application gives back to the pool is an unnecessary effort. As long as connections are tested during agetConnection
, this is not needed.
-
set the number of connections in the JDBC pool equally to the number of execute threads that use the connections.
This helps to avoidResourceExceptions
.
'Middleware > WebLogic' 카테고리의 다른 글
[WLS] Administration Console 로그인 설정 관련 (0) | 2010.04.12 |
---|---|
[WLS10] Administration Console 계정 변경 및 재 생성 (0) | 2010.04.12 |
[WLS]WLDF Console Extension 설치 및 Resource Monitoring(For Linux) (0) | 2009.10.20 |
[WLS10] WebLogic Server와 IIS 연동 (0) | 2009.09.22 |
[WLS]WebLogic Server Window Service에 등록하는 방법 (0) | 2009.09.17 |