美文网首页
NMT 报错 “Native memory tracking i

NMT 报错 “Native memory tracking i

作者: 偷油考拉 | 来源:发表于2021-08-07 00:48 被阅读0次

Not able to enable Native memory tracking in a spring boot application - Javaer101

解决方案:

-XX:NativeMemoryTracking 必须放到最前面,注意顺序。如下范例:

java -XX:NativeMemoryTracking=summary -Dlogging.config=log4j2.xml -jar application.jar

This is a pecularity of java launcher. -XX:NativeMemoryTracking must be handled both by the launcher and by the JVM in order to take effect. However, the launcher stops processing arguments as soon as it sees a terminal option. -jar is one them.

相关文章

网友评论

      本文标题:NMT 报错 “Native memory tracking i

      本文链接:https://www.haomeiwen.com/subject/eplwvltx.html