Oracle WebLogic Server 12c: Advanced Administration II — Question 35
You are monitoring a WebLogic JDBC data source and have decided to drop some connections because an earlier peak usage condition has now ended. In addition, this data source has not been enabled for automatic shrinking.
What will occur once you execute the shrink() method on that JDBCDataSourceRuntimeMBean?
Answer options
- A. The number of connections in the pool will be reduced to the greater of either the current number of connections in use or to the minCapacity property setting.
- B. The number of connections in the pool will be reduced to the current number of connections in use regardless of the minCapacity property setting.
- C. The number of connections in the pool will be reduced to the minCapacity property setting regardless of the current number of connections in use.
- D. The number of unused connections in the pool will be reduced by half.
Correct answer: A
Explanation
The correct answer is A because the shrink() method is designed to reduce the number of connections to at least the minimum capacity specified, ensuring that there are enough resources available for future demands. Options B and C do not take the minCapacity setting into account correctly, while D incorrectly describes the functionality of the shrink() method.