Skip to content

Commit 1e0a8fd

Browse files
committed
更新
1 parent ec1ae7b commit 1e0a8fd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MD/OOM-analysis.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ Process finished with exit code 1
3939
`java.lang.OutOfMemoryError: Java heap space`表示堆内存溢出。
4040

4141

42-
## 方法区/运行时常量池溢出
42+
## MetaSpace(元数据) 内存溢出
4343

4444
> `JDK8` 中将永久代移除,使用 `MetaSpace` 来保存类加载之后的类信息。字符串常量池也被移动到 Java 堆。
4545
46-
`PermSize``MaxPermSize` 已经不能使用了,在 JDK8 中配置这两个参数将会发出警告。
46+
`PermSize``MaxPermSize` 已经不能使用了,在 JDK8 中配置这两个参数将会发出警告。
47+
48+
49+
JDK 8 中将类信息移到到了本地堆内存(Native Heap)中

src/main/java/com/crossoverjie/oom/heap/PermGenOOM.java renamed to src/main/java/com/crossoverjie/oom/heap/MetaSpaceOOM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Date: 29/12/2017 21:34
1414
* @since JDK 1.8
1515
*/
16-
public class PermGenOOM {
16+
public class MetaSpaceOOM {
1717

1818
public static void main(String[] args) {
1919
while (true){

0 commit comments

Comments
 (0)