Forums Register Login

JMS OutOfMemory

+Pie Number of slices to send: Send
Currently, I have a multi-user app and the server needs to send status messages back to a client. It currently does so via JMS queues. However, after a while of running, I get an OutOfMemoryError related to JMS (and this is the only JMS bit in my application). I've read that I can alleviate this problem using the VM argument -Xss to allocate more space for native threads, but will this problem just get larger as more messages get put on the queue, or is it once the message is read by a client it is removed by the queue? If I need to remove them some other way, how can I do that?

Thanks,
Jeff
+Pie Number of slices to send: Send
When a client reads the message the message will be deleted from the queue. JMS outofMemoryerror occur due to the fact that , JMS server implementation by the app server you are using might be holding all the message in the JVM memory itself (apart from persisting the message to file/database). If you have provision on your JMserver to use paging store configuration, then it will help you solve this problem. (WebLogic supports this)

The solution (xss) you are trying to implement resolves StackOb=verFlow exceptions but not outOfMemory errors.
+Pie Number of slices to send: Send
Thanks for the help. I'm using JBoss, but I couldn't find a PageSize parameter in any of the config files, so I'm guessing this version does not support it. I think the problem was actually related to another problem, but I will keep this solution in mind for the future. Thanks!
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1191 times.
Similar Threads
JMS conceptual doubt
JMS or JCA or Webservice ?
How to read those messages which got delayed by specified time on a JMS queue.
JMS Service not releasing resources
Specifying JMS Queue size in OAS
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:20:44.