|
|
|
|
|
|
|
|
Re: java.lang.OutOfMemoryError: PermGen space [message #669769 is a reply to message #669413] |
Wed, 11 May 2011 13:06 |
Andrea Santi Messages: 12 Registered: April 2011 |
Junior Member |
|
|
N.lincke.lincke-online.de wrote on Tue, 10 May 2011 05:12-Xms40m -Xmx512m -XX:PermSize=512M
I even tried higher Sizes... but it didn't solved my problem...
Exactly the same here.
Quoting from the eclipse wiki (How_do_I_increase_the_permgen_si ze_available_to_Eclipse page)
Quote:Note: Eclipse 3.6 and below on Windows has a bug with Oracle/Sun JDK 1.6.0_21 (July 2010) where the launcher cannot detect a Oracle/Sun VM, and therefore does not use the correct PermGen size. If you are using either of this version, add the -XX flag to the eclipse.ini as described above.
I have Windows 7 with SUN JVM and JDK 1.6.0_17 so there should be no problems. Even with 800mb of PermSize I have this problem.
Any idea about the reason?
[Updated on: Wed, 11 May 2011 13:09] Report message to a moderator
|
|
|
|
|
|
|
|
Re: java.lang.OutOfMemoryError: PermGen space [message #674189 is a reply to message #670113] |
Thu, 26 May 2011 04:40 |
LD Messages: 28 Registered: March 2011 |
Junior Member |
|
|
Hi, well for a reason I still don't know. The parameters given to the eclipse.ini are not taken. So I'm using java commands directly to execute the eclipse with the specific parameters.
Here is a solution that at least interrupt the constant crashing of eclipse.
Command format: java [ options ] -jar file.jar [ argument ... ]
Examples:
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar (for eclipse 3.5.x)
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar (for eclipse 3.6.x)
Best Regards,
[Updated on: Thu, 26 May 2011 04:44] Report message to a moderator
|
|
|
|
|
Re: java.lang.OutOfMemoryError: PermGen space [message #691099 is a reply to message #691085] |
Thu, 30 June 2011 17:39 |
john doe Messages: 74 Registered: June 2011 |
Member |
|
|
I'm running helios 3.6.1 and was using the latest version of java (in my case jdk1.6.0_26) to try and fix this problem but it didn't work. I had to uninstall java jdk and download jdk1.6.0_20 from here. Then I opened up my eclipse.ini file and added in -XX:MaxPermSize=256m
My eclipse.ini thus looks like:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx1024m
-XX:MaxPermSize=256m
Eclipse no longer crashes when I run my plugin and I no longer get the 'OutOfMemoryError'. Hope this helps.
[Updated on: Thu, 30 June 2011 17:41] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05422 seconds