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空间,内存不足错误
基础教程推荐
- Maven:无效的目标版本:10 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- JPA惰性列表上的流 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
