Saturday, January 5, 2008

Linux上运行eclipse出现java.lang.OutOfMemoryError: PermGen space异常的解决办法

在linux上运行eclipse总是出现以下异常:
Error while informing user about event loop exception:
java.lang.OutOfMemoryError: PermGen space
Dialog open exception:
java.lang.OutOfMemoryError: PermGen space

解决办法如下:
修改eclipse安装目录下的eclipse.ini文件,添加如下行
-XX:PermSize=512m
-XX:MaxPermSize=512m
其中的值可以根据自己的情况设置,然后重新启动eclipse。

No comments: