什么是烫发空间? [英] What is perm space?

查看:264
本文介绍了什么是烫发空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在了解java内存分析的同时,除了堆之外,我还不断看到perm space这个术语。我知道堆是什么 - 什么是烫发空间?

While learning about java memory profiling, I keep seeing the term "perm space" in addition to "heap." I know what the heap is - what's perm space?

推荐答案

它代表永久代


永久代是特殊的
,因为它包含描述
用户类的元数据(不是
类Java语言的类)。示例
这样的元数据是对象
描述类和方法,
它们存储在Permanent
Generation中。具有大型
代码库的应用程序可以快速填满堆的
段,这将导致
java.lang.OutOfMemoryError :PermGen没有
你的-Xmx有多高,你的机器内存多少

The permanent generation is special because it holds meta-data describing user classes (classes that are not part of the Java language). Examples of such meta-data are objects describing classes and methods and they are stored in the Permanent Generation. Applications with large code-base can quickly fill up this segment of the heap which will cause java.lang.OutOfMemoryError: PermGen no matter how high your -Xmx and how much memory you have on the machine.

这篇关于什么是烫发空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆