gpt4 book ai didi

java - XX :NativeMemoryTracking Native memory tracking has been shutdown due to out of native memory

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:55:58 29 4
gpt4 key购买 nike

我正在尝试使用 -XX:NativeMemoryTrackingsummarydetail 值来获取内存使用统计信息。

然后调用 jcmd pid VM.native_memory summary *(or detail)*

并且总是出现错误“由于 native 内存不足, native 内存跟踪已关闭”我有 12Gb RAM 我试过给 java 2GB 或 10GB,我什么都试过了,但不明白哪里出了问题。

我用

Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

最佳答案

试试 -XX:-AutoShutdownNMT

NMT will shut itself down when it detects low resource conditions, such as when running low on native memory. Sometimes that may be the situation when you would really want the data!

来自 here .

关于java - XX :NativeMemoryTracking Native memory tracking has been shutdown due to out of native memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34750248/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com