More precisely, the 70% is for within the allocated heap the memory activemq will use for the memory store. ActiveMQ has its own data structures unrelated to the memory store, which consume heap space from the JVM above and beyond what is used for the memory store. But the overall explanation is exactly right.
Also, the OS has no idea how much of the memory that has been allocated for the JVM's heap is actually in use, so you may in fact be using only a small fraction of the amount shown. Use JConsole, JVisualVM, or similar tools to determine that, because top won't help you. Tim On Jul 4, 2017 9:16 AM, "Michael André Pearce" <[email protected]> wrote: The Java process will at the os level which is what you output from what I can tell, will be allocated 6gb if that's what you set the heap size to (Java will always actually use a little more than just the heap for bits like offheap, classes (permgen) and process overhead) The 70% is for within the allocated heap the memory activemq will use. To see the heap utilisation you can use tools such as visualvm, jconsole (list of tools nearly endless) Cheers Mike Sent from my iPhone > On 4 Jul 2017, at 09:48, Montecchius <[email protected]> wrote: > > Hello, > > I'm a little new about activemq. > > We allocated 6gb jvm memory for activemq and in the activemq.xml file we set > memory usage for jvm %70 percent.In this case it's supposed to use ( 6gb = > 6144 mb ) 61,44 * 70 = 4.3 gb if i'm correct ? > <http://activemq.2283324.n4.nabble.com/file/n4728197/1.gif> > > If you look at the picture above it uses more then that ? Could anyone can > explain it ? Or correct me if i'm wrong? > > Regards. > > > > > -- > View this message in context: http://activemq.2283324.n4. nabble.com/A-question-about-memory-usage-jvm-tp4728197.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
