The formula for estimation of required heap size should allow to specify variables for message headers. Otherwise, the estimated value would be far from required. For example, in Broker with 1G of heap it is possible to publish 568920 AMQP 1-0 messages without application properties. However, it is possible to publish around 208700 messages if each message contains 20 application specific properties with average size of 20 bytes for name and value.
The formula for estimation of required heap size should allow to specify the following:
- average size of property name and value
- average number of application properties per message