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
Java Memory explained (SUN JVM)
提问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
- How does garbage collection work?
- Detailed description of garbage collection
- Generational and concurrent garbage collection
Sun
太阳
- Turbo-charging Java HotSpot Virtual Machine, v1.4.x to Improve the Performance and Scalability of Application Servers- (discussion of low pause collectors)
- Performance Documentation for the Java HotSpot VM
- Improving Java Application Performance and Scalability by Reducing Garbage Collection Times and Sizing Memory Using JDK 1.4.1
- Frequently Asked Questions About the Java HotSpot VM
- Java HotSpot VM Options
- Turbo-charged Java HotSpot Virtual Machine, v1.4.x 以提高应用服务器的性能和可扩展性——(低暂停收集器的讨论)
- Java HotSpot VM 的性能文档
- 使用 JDK 1.4.1 通过减少垃圾收集时间和调整内存大小来提高 Java 应用程序的性能和可扩展性
- 关于 Java HotSpot VM 的常见问题
- Java HotSpot VM 选项
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.
回答by cadrian
回答by Wonil
Also, please see these JavaOne sessions for JVM GC. (including video playback)
另外,请参阅这些用于 JVM GC 的 JavaOne 会话。(包括视频播放)
- Garbage Collection Friendly Programming
- Garbage Collection Tuning in the Java HotSpot virtual machine
- The Garbage First Garbage Collector<== highly recommended
- Performance considerations in concurrent garbage-collected systems
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.
最后一部分提供了有用的链接,可以深入研究特别感兴趣的领域。

