Debug eclipse plugin project -- PermGen space, out of memory error(调试eclipse插件项目——PermGen空间,内存不足错误)
问题描述
我有一个插件项目.当我将其作为 Eclipse 应用程序进行调试时,在打开的第二个 Eclipse 中,我想打开项目资源管理器窗口.一旦单击按钮执行此操作,我就会得到 java.lang.OutOfMemoryError: PermGen space.我尝试在首选项中更改 PermGen 空间,但没有帮助.任何人都可以提出一个解决方案.
I have a plugin project. When i debug this as an eclipse application, in the 2nd eclipse that opens, I want to open Project explorer window. As soon as I click on the button to do this, I get java.lang.OutOfMemoryError: PermGen space. I tried changing the PermGen space in the preference, but it did not help. Can any one please suggest a solution.
推荐答案
你应该将 -XX:MaxPermSize=256m 或 512m 添加到 Window>Preferences>Java>Installed JREs 偏好页面.编辑 JRE 并将其添加到默认 VM 参数选项卡.
You should add the -XX:MaxPermSize=256m or 512m to the Window>Preferences>Java>Installed JREs preference page. Edit a JRE and add it to the Default VM arguments tab.
eclipse 原生启动器使用 eclipse.ini 向 Oracle JVM 添加额外的 permgen 参数,但在运行时启动期间不使用该信息.
The eclipse native launcher uses the eclipse.ini to add extra permgen arguments to Oracle JVMs, but that information is not used during runtime launching.
这篇关于调试eclipse插件项目——PermGen空间,内存不足错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:调试eclipse插件项目——PermGen空间,内存不足错误
基础教程推荐
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
