Github user clebertsuconic commented on the issue: https://github.com/apache/activemq-artemis/pull/1853 You are getting the getEncodeSize() as the size... what is what you want to measure? how much memory it uses on the JVM? We have some calculations we do on paging.. perhaps that's what you want to expose? perhaps we should also review those calculations.
---