Out of memory errors [message #721999] |
Sat, 03 September 2011 20:30  |
Eclipse User |
|
|
|
Hello,
I can't say I'm exactly a newcomer to Eclipse since I've been using it since Europa but I've recently been plagued with a few errors since Helios release. I'm having problems on my Linux computer while on Windows 7 it runs happily. I currently have java, pdt, and cdt added on since I use all of these. I upgraded to Indigo but could not get it to work. It would start but as soon as I entered the workbench it just locked up. I downgraded my java from 7 to 6 which seemed to help but it was still frequently locking up. I switched back to Helios to see if I would have better luck. I'm still randomly getting
Permgen error, !MESSAGE Unhandled event loop exception, Java out of memory errors.
It seems to occur more frequently when adding and deleting files but sometimes it just randomly locks up while typing in the editor with the same errors. I didn't realize I was doing anything memory intensive. Working with small files and directories. I have tried changing various heap sizes. Here is my current config:
...
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
On each install I used a new directory but my workbench is the same.
Could there be left over preferences interfering since the workbench is the same?
Any suggestions?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Out of memory errors [message #728765 is a reply to message #727211] |
Fri, 23 September 2011 17:31  |
Eclipse User |
|
|
|
Yes, Eric is correct.
There is a special JVM-specific option for PermGen space: -XX:MaxPermSpace
Here is my eclipse.ini:
-startup
configuration/org.eclipse.osgi/bundles/273/data/-168945402/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
configuration/org.eclipse.osgi/bundles/273/data/-168945402/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-install
/home/jcuzella/bin/eclipse
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
|
|
|
Powered by
FUDForum. Page generated in 0.52570 seconds