Java 内存解释(SUN JVM)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/858250/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 14:05:32  来源:igfitidea点击:

Java Memory explained (SUN JVM)

javamemorymemory-managementjvm

提问by Mauli

I tried to find an interpretation of the memory segments of the sun java vm, which would also be understandable by an administrator. It should explain what heap / non-heap memory is and the significance of the different memory pools.

我试图找到对 sun java vm 的内存段的解释,这也是管理员可以理解的。它应该解释什么是堆/非堆内存以及不同内存池的意义。

If it would somehow relate to the jconsole view, it would be a bonus.

如果它以某种方式与 jconsole 视图相关,那将是一个奖励。

Is there somewhere a website with such an explanation?

有没有网站有这样的解释?

回答by A_M

Here's a list of resources I had noted down. Some of these explain how the heap/garbage collection works and some have details on how to configure everything.

这是我记下的资源列表。其中一些解释了堆/垃圾收集的工作原理,一些详细介绍了如何配置所有内容。

IBM

IBM

Sun

太阳

Other

其他

回答by matt b

This article from Sun on Tuning Garbage Collection with the 5.0 Java Virtual Machineshould have pretty good definitions and explanations of everything you are looking for; I don't believe a ton has changed on this subject between 5.0 and 6.0

Sun 的这篇关于 Tuning Garbage Collection with the 5.0 Java Virtual Machine 的文章应该对您正在寻找的所有内容都有很好的定义和解释;我不相信 5.0 和 6.0 之间在这个主题上有很多变化

There is also this whitepaper on Memory Management in the Java HotSpot Virtual Machine.

还有这个关于Java HotSpot 虚拟机中的内存管理的白皮书。

More Sun documentation, technical articles, and whitepapers.

更多 Sun文档技术文章白皮书

回答by Wonil

Also, please see these JavaOne sessions for JVM GC. (including video playback)

另外,请参阅这些用于 JVM GC 的 JavaOne 会话。(包括视频播放)

UPDATE:

更新:

Oracle changed JavaOne contents as paid one. Please see this articlefor G1 garbage collector instead.

Oracle 将 JavaOne 内容更改为付费内容。请参阅这篇文章以了解 G1 垃圾收集器。

回答by Leigh

I find that Sun's Memory Management Whitepaperoffers a good overview.

我发现Sun 的内存管理白皮书提供了很好的概述。

The final section offers useful links to delve deeper into areas of particular interest.

最后一部分提供了有用的链接,可以深入研究特别感兴趣的领域。