No, it's not. the memoryUsage limit is for messages cached within the broker ready for dispatch. it should be a portion of the heap usage (50-70%). you still need heap memory for normal usage (threads, object creation, etc). if you set memoryLImit to the same as the JVM heap, you can run OOM.
Hope that helps On Thu, Dec 6, 2012 at 8:46 AM, Eugene Ong <pebria...@yahoo.com> wrote: > > lets say that I set my -Xmx (heap size) to 1G. Is it a good idea to also > set my activemq memoryUsage limit to 1G. Why or why not? > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta