You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Francesco Nigro (Jira)" <ji...@apache.org> on 2021/01/05 14:03:00 UTC
[jira] [Created] (ARTEMIS-3051) Fix
MessageReferenceImpl::getMemoryEstimate
Francesco Nigro created ARTEMIS-3051:
----------------------------------------
Summary: Fix MessageReferenceImpl::getMemoryEstimate
Key: ARTEMIS-3051
URL: https://issues.apache.org/jira/browse/ARTEMIS-3051
Project: ActiveMQ Artemis
Issue Type: Bug
Affects Versions: 2.16.0
Reporter: Francesco Nigro
Assignee: Francesco Nigro
MessageReferenceImpl::memoryOffset is used on MessageReferenceImpl::getMemoryEstimate: it reports 64 bytes.
[https://github.com/openjdk/jol] is reporting 72 bytes for OpenJDK 64 bit using COOPS and 8 bytes alignment, that's very common, and that's a more accurate estimated footprint value.
To be honest, a full-fat 64 bit JVM would use 112 bytes instead, but that could be improved in a bigger follow-up PR.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)