我在 AKS 中运行一个 ActiveMQ 容器。我向它发布了数百万条消息。消耗完所有消息后,我看到地址内存减少了,但 ActiveMQ 的 JVM 没有释放内存(下图中的尖峰是垃圾收集器造成的)。我需要在
artemis.profile
中实现一些东西来释放内存吗?如何检查是否有内存泄漏?
当前 Java 参数 -
-XX:+UseCompressedOops -Xmx3048M -Xms1512M -Djava.net.preferIPv4Addresses=true -XX:+UnlockExperimentalVMOptions -XX:AutoBoxCacheMax=20000 -XX:+PrintClassHistogram -XX:+UseG1GC
Artemis 版本 - 2.27.0
JDK-11