I think you are confusing memory cache with paging on the message system. Messages are kept in the memory for fast delivery unless you page then.
The message broker can be configured to start writing messages on disk for later reading. In a sense paging becomes like Kafka partition when paging kicks in. (I'm not trying to make comparisons. Saying that just for educational purposes please) So if you plan no consumers. Configure paging on the address settings. Look at he manual for paging. On Wed, Jun 7, 2017 at 11:24 AM wangqinghuan <1095193...@qq.com> wrote: > I understand that mmap against page cache , os helps swap page between > memory and disk.So less memory will be used by jvm. > why artemis maintains amounts of msgs in jvm space and needs to enable > paging to page messages into and out jvm memory? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/why-AvtiveMq-is-slowly-than-Kafka-tp4726911p4727164.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- Clebert Suconic