Try increasing the heap and starting the broker again.[07/Fev/2011:09:10:58 BRST] ERROR [B2085]: Loading Destination EVENT_IN [Queue] failed. Messages stored on that destination will not be available.:
java.lang.OutOfMemoryError: Java heap space
We don't believe this should be happening but perhaps you can give a bit more detail about what commands you actually ran.
First, can you confirm that the destination is a Queue and not a Topic? Topics could certainly behave this way, even if they are persistent.
If you have the logs from both the MQ broker and, from the GlassFish servers, we'd like to review them. Preferably across the redeployment operations.
If you can send us the complete list of commands you ran, to deploy/undeploy/configure/reconfigure your instances and cluster, we should be able to get a better answer for you.
If the log files are large, or you would prefer not sending them to the full list, you can e-mail me directly (ed.bratt@oracle.com). I'll make sure the right developer(s) get them for review.
Thanks,
-- Ed
On 2/9/2011 2:13 AM, marciogj@gmail.com wrote:
Hi,
I´m interested to understand how Glassfish and OpenMQ works together
since we started to experience a odd situation:
We have a persistent queue which receives quite a lot of messages per
second.
After a while we had 350.000 messages in the queue (Almost 60MB). At
this point, we did a simple undeploy and deploy of our .ear application
(without any source code change).
The result of this operation was catastrophic: a Java heap space during
deploy and worst of all - The queue was cleaned!
This is our top requirement, never lose a single message. In this case
we lost million application messages since each jms message contains a
batch from our application.
I cannot understand such situation since we use persistent messages.
It's looks like Glassfish loads all message into a HashMap but I´m not
sure (I´m guessing by java heap error)...
The question is why Glassfish and Open MQ would touch data from a
persistent queue during application load? And why delete all messages
without any reasonable reason?
Other details:
Glassfish v2.1.1
Queue FlowLimit = 1
Regards
Ed Bratt | Senior Software Development
Manager
Phone: +1 408 2764170 |
Fax: +1 408 2767191 |
Skype ID: edbratt
Oracle GlassFish
Server
4220 Network Circle | MS USCA22-102 | Santa Clara, CA 95054
Oracle is committed to developing
practices and products that help protect the environment
(image/gif attachment: oracle_sig_logo.gif)
(image/gif attachment: green-for-email-sig_0.gif)