Jmapping 的基础知识?

发布于 2024-12-24 19:16:23 字数 171 浏览 2 评论 0原文

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

编辑:我指的是工具:jmap

I've done some search out there but couldn't find too much really helpful info on it, but could someone try to explain the basic of Java memory maps? Like where/how to use it, it's purpose, and maybe some syntax examples (inputs/outputs types)? I'm taking a Java test soon and this could be one of the topics, but through all of my tutorials Jmap has not come up. Thanks in advance

Edit: I'm referring to the tool: jmap

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九歌凝 2024-12-31 19:16:23

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

jmap 打印给定进程、核心文件或远程调试服务器的共享对象内存映射或堆内存详细信息。

注意:此实用程序不受支持,并且在 JDK 的未来版本中可能可用,也可能不可用。在不存在 dbgeng.dll 的 Windows 系统中,需要安装“Windows 调试工具”才能使这些工具正常工作。此外,PATH 环境变量应包含目标进程使用的 jvm.dll 的位置或生成故障转储文件的位置。

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

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

I would read the man page you have referenced.

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

Its not a tool to be played with lightly. You need a good profiler which can read it output as jhat is only useful for trivial programs. (YourKit works just fine for 1+ GB heaps)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文