Oracle Exadata Database Machine X7 and Database In-Memory — Question 16
In a Java EE messaging application, one MDB is consuming a lot of memory at high traffic.
What configuration should you use to prevent possible out-of-memory error at high traffic and at the same time not losing messages?
Answer options
- A. Configure a Work Manager for the MDB with a Maximum Thread Constraint.
- B. Configure a Work Manager for the MDB with a Minimum Thread Constraint.
- C. Configure a Work Manager for the MDB with a Maximum Thread Constraint and a Capacity Constraint.
- D. Configure a Work Manager for the MDB with a Minimum Thread Constraint and a Capacity Constraint.
- E. Configure a Work Manager for the MDB with both a Maximum Thread Constraint and Minimum Thread Constraint.
Correct answer: B
Explanation
The correct answer is B, as configuring a Work Manager with a Minimum Thread Constraint allows a steady number of threads to process messages, which helps manage memory usage without overwhelming the system. The other options either set maximum constraints that could lead to underutilization or do not directly address the need for a stable message processing rate during high traffic.