调试eclipse插件项目——PermGen空间,内存不足错误

2022-01-16 00:00:00 eclipse-plugin eclipse

我有一个插件项目.当我将其作为 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.

相关文章