We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1ae7b commit 1e0a8fdCopy full SHA for 1e0a8fd
MD/OOM-analysis.md
@@ -39,8 +39,11 @@ Process finished with exit code 1
39
`java.lang.OutOfMemoryError: Java heap space`表示堆内存溢出。
40
41
42
-## 方法区/运行时常量池溢出
+## MetaSpace(元数据) 内存溢出
43
44
> `JDK8` 中将永久代移除,使用 `MetaSpace` 来保存类加载之后的类信息。字符串常量池也被移动到 Java 堆。
45
46
-`PermSize` 和 `MaxPermSize` 已经不能使用了,在 JDK8 中配置这两个参数将会发出警告。
+`PermSize` 和 `MaxPermSize` 已经不能使用了,在 JDK8 中配置这两个参数将会发出警告。
47
+
48
49
+JDK 8 中将类信息移到到了本地堆内存(Native Heap)中
…om/crossoverjie/oom/heap/PermGenOOM.java …/crossoverjie/oom/heap/MetaSpaceOOM.javasrc/main/java/com/crossoverjie/oom/heap/PermGenOOM.java renamed to src/main/java/com/crossoverjie/oom/heap/MetaSpaceOOM.java
@@ -13,7 +13,7 @@
13
* Date: 29/12/2017 21:34
14
* @since JDK 1.8
15
*/
16
-public class PermGenOOM {
+public class MetaSpaceOOM {
17
18
public static void main(String[] args) {
19
while (true){
0 commit comments