Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveMQ.DLQ memory usage #55

Closed
tkohegyi opened this issue Jul 17, 2015 · 3 comments
Closed

ActiveMQ.DLQ memory usage #55

tkohegyi opened this issue Jul 17, 2015 · 3 comments
Assignees

Comments

@tkohegyi
Copy link
Contributor

In case of extra large messages (think about >60 Mbytes per msg), and high load it may happen that ActiveMQ runs out of memory, like this:

15:17:31.447 [reponseJmsContainer-2] INFO  c.e.w.core.jms.LoggerErrorHandler - Error occurred in response queue: 
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
15:17:39.657 [reponseJmsContainer-2] INFO  c.e.w.core.jms.LoggerErrorHandler - Error occurred in response queue: 
java.lang.OutOfMemoryError: Requested array size exceeds VM limit

And this can cause moving that message to the DQL. If this happens many times, DLQ size is increasing and can eat up all the available memory, and can result of high load, then ActiveMQ failure then run out of threads in Jetty, and finally Wilma cannot handle incoming requests. This sequence of problems may take hours so Wilma can protect itself against it, by cleaning up the DLQ.

This ticket is partially addressed by commit 193e0a0. so will be part of the next release soon.

@tkohegyi tkohegyi self-assigned this Jul 17, 2015
tkohegyi added a commit that referenced this issue Jul 18, 2015
need change on wiki page: how to build the product, also need change on CI server
in addition, fix minor checkstyle error for #55
@tkohegyi
Copy link
Contributor Author

Test is ongoing, if everything is ok, a new Wilma release will be published.

@tkohegyi
Copy link
Contributor Author

Test passed successfully.

13:10:12.375 [reponseJmsContainer-9] INFO  c.e.w.core.jms.LoggerErrorHandler - Error occurred in response queue: 
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
13:10:15.008 [RMI TCP Connection(125)-10.208.10.32] INFO  o.a.activemq.broker.region.Queue - queue://ActiveMQ.DLQ purged of 1 messages
13:10:15.008 [maintenanceScheduler-4] INFO  c.e.w.s.monitor.JmsQueueMonitorTask - Message found in ActiveMQ.DLQ. Queue size is: 1, queue purged successfully.

New Wilma release is coming soon.

@tkohegyi
Copy link
Contributor Author

Published with V1.1.73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant