hivemq-community-edition: Why the memory usage is too large and the limit does not work?

Expected behavior

Memory is limited, memory usage is not that large

Actual behavior

As shown in the figure below, the memory consumption is too large and is increasing all the time. In fact, I only have a small number of clients sending data in groups every five minutes! image The specific startup parameters are as follows: image

-Xmx1536m -XX:MaxDirectMemorySize=1g

I checked the data directory, and the disk space is as follows. image

In addition, I used JProfiler to check the memory usage, as shown below: Heap image Non-Heap image

To Reproduce

Steps

Add the following configuration to the startup parameters ‘-Xmx1536m -XX:MaxDirectMemorySize=1g’ .But it still takes up nearly 5g of memory

Reproducer code

Details

  • Affected HiveMQ CE version(s): 2021.1
  • Used JVM version: java11

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

Thank you for your patient reply, I will try and look forward to the results