gpt4 book ai didi

memory - Jmapping 的基础知识?

转载 作者:行者123 更新时间:2023-12-01 15:36:56 25 4
gpt4 key购买 nike

我已经在那里做了一些搜索,但找不到太多真正有用的信息,但是有人可以尝试解释 Java 内存映射的基础知识吗?比如在哪里/如何使用它,它的目的,也许还有一些语法示例(输入/输出类型)?我很快就要参加 Java 测试,这可能是主题之一,但在我的所有教程中,Jmap 都没有出现。提前致谢

编辑:我指的是工具:jmap

最佳答案

我会阅读您引用的手册页。

jmap prints shared object memory maps or heap memory details of a given process or core file or a remote debug server.

NOTE: This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgeng.dll is not present, 'Debugging Tools For Windows' needs to be installed to have these tools working. Also, PATH environment variable should contain the location of jvm.dll used by the target process or the location from which the Crash Dump file was produced.

http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html

它不是一个可以轻易使用的工具。您需要一个好的分析器来读取它的输出,因为 jhat 仅对简单的程序有用。 (YourKit 适用于 1+ GB 堆)

关于memory - Jmapping 的基础知识?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8717700/

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