wangqinghuan wrote > why artemis maintains amounts of msgs in jvm space and needs to enable > paging to page messages into and out jvm memory?
Because each have different purposes and information about the messages: - the journal is a commit log -> it doesn't contain all the runtime informations of the messages - the (JVM) on heap space (eg QueueImpl) is where a message live until expired or delivered -> it doesn't contain the sequence of operation on a message The paging allow, as you rightly pointed to move the message out of the JVM space to an off heap storage to make the life easier for the user that wan't a bound HEAP size and the most of GCs that are not very skilled (until new ones will arrive) to deal with huge quantity of on heap references live for long time. -- View this message in context: http://activemq.2283324.n4.nabble.com/why-AvtiveMq-is-slowly-than-Kafka-tp4726911p4727166.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.