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

2023-08-21Java开发问题
1

本文介绍了调试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空间,内存不足错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Java 代表?
Java Delegates?(Java 代表?)...
2024-08-25 Java开发问题
15

Eclipse:无法初始化监视器线程:无法建立环回连接
Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK
Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6