Interview Questions

What can I do when I get java.lang.OutOfMemoryError because producers are faster than consumers?

BEA WebLogic Questions and Answers


(Continued from previous question...)

What can I do when I get java.lang.OutOfMemoryError because producers are faster than consumers?

Quotas can be used to help this situation. Your sender will then receive ResourceAllocationExceptions and the server will stay up. WLS 6.X does not support paging of messages out of memory.
As of WLS 6.1 SP02 or later, you can use the Message Paging feature, which can free up valuable virtual memory during peak message load periods by swapping out messages from virtual memory to persistent storage when message loads reach a specified threshold.

(Continued on next question...)

Other Interview Questions