Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Out of memory errors(Helios and java)
Out of memory errors [message #721999] Sun, 04 September 2011 00:30 Go to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
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 #722203 is a reply to message #721999] Mon, 05 September 2011 03:53 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
No suggestions? I've found various bugs reported for similar problems but the solutions that worked for them are not working for me. This has become even more annoying now that I can't seem to get my last stable version up and running again due to the same errors. jconsole reports a apx.25MB of heap being used with no spikes in the heap or non-heap. I'll wipe out my workspace and start a new one to see if the problem lies in that.
Re: Out of memory errors [message #722220 is a reply to message #722203] Mon, 05 September 2011 05:54 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
Which java are you using? Look at http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F and http://wiki.eclipse.org/Eclipse.ini
Re: Out of memory errors [message #723054 is a reply to message #721999] Wed, 07 September 2011 14:05 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/3/11 8:30 PM, timothydedrick wrote:
> 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?

PermGen errors are NOT related to heap space; PermGen is a separate
memory space that is used for objects that can't be garbage-collected,
such as classes.
See this to increase the PermGen space for Eclipse:
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

Eric
Re: Out of memory errors [message #723968 is a reply to message #721999] Sat, 10 September 2011 04:33 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Right. I'm getting both PermGen and java out of memory errors. It looks like my jvm is only running with 64 MBs available in the heap. Don't know how I missed that. Obviously my config file isn't being read. Probably a syntax error somewhere though I'm confused since I've always copied it over and this linux system is the only one giving me problems. (I did check the -- vs -) must be something else. Thanks for the replies.
Re: Out of memory errors [message #724107 is a reply to message #723968] Sat, 10 September 2011 19:57 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
This is definitely becoming more frustrating by the day since I'm making 3 minute attempts after every crash which occurs about once every 10 minutes. It's even more annoying seeing I have to log back into all of my servers and reopen/resave everything.

I just want my old working Eclipse back. I had no idea an upgrade would cause this big of a problem weeks later.

I've tried adjusting the eclipse.ini more, tried using different java versions, manually starting eclipse with --XX:MaxPermSize=512m and I'm still crashing with PermGen errors.

I am running an older version of Linux that was distributed around the same time as Europa and it has become a compatibility problem with several new hardware / software packages but I don't see why that would apply to java.

Here's my current config:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


and the various javas I have to work with:
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java
/usr/lib/jvm/java-gcj/jre/bin/java
/usr/bin/gij-4.1
/usr/bin/gij-4.2
/usr/lib/jvm/java-6-sun/jre/bin/java
/usr/lib/jvm/java-6-openjdk/jre/bin/java
/usr/lib/jvm/jdk1.7.0/jre/bin/java


Does anybody have any other ideas? I've tried downloading several different versions and all have the same problem. My last resort is to dig up my old notebook and see if I can put an old copy of Galileo on with an old java installation maybe.

Re: Out of memory errors [message #724116 is a reply to message #724107] Sat, 10 September 2011 21:19 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm going to leave this one unresolved but I copied my old copy of Galileo over and it's working fine without any special PermGen size. My Windows copy works fine without any special PermGen size. There has to be a bug on linux x86 I'm looking over somewhere.
Re: Out of memory errors [message #724929 is a reply to message #724107] Tue, 13 September 2011 14:08 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/10/11 3:57 PM, timothydedrick wrote:
> This is definitely becoming more frustrating by the day since I'm making
> 3 minute attempts after every crash which occurs about once every 10
> minutes. It's even more annoying seeing I have to log back into all of
> my servers and reopen/resave everything.
>
> I just want my old working Eclipse back. I had no idea an upgrade would
> cause this big of a problem weeks later.
>
> I've tried adjusting the eclipse.ini more, tried using different java
> versions, manually starting eclipse with --XX:MaxPermSize=512m and I'm
> still crashing with PermGen errors.
>
> I am running an older version of Linux that was distributed around the
> same time as Europa and it has become a compatibility problem with
> several new hardware / software packages but I don't see why that would
> apply to java.
>
> Here's my current config:
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vm
> /usr/lib/jvm/java-6-sun/jre/bin/java
> -vmargs
> -Xms40m
> -Xmx512m


Did you carefully read the page that Satyam and I both referred you to?
It shows the exact line you need to include in your eclipse.ini in order
to increase the PermGen size. What you have above is NOT correct for
Linux, only windows.
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

Eric
Re: Out of memory errors [message #726053 is a reply to message #724929] Fri, 16 September 2011 13:25 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Eric,

Maybe not carefully enough. I did mention above that I was manually starting Eclipse which was done with something like eclipse -vmargs -Xmx512m [and or -XX:MaxPermSize=512m] and I was still crashing. I do see that the launcher only identifies the JVM for Windows only. I'll try again later today. Thanks for the reply.

[Updated on: Fri, 16 September 2011 13:27]

Report message to a moderator

Re: Out of memory errors [message #726438 is a reply to message #726053] Sun, 18 September 2011 04:10 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Still getting out of perm gen space errors. Perhaps somebody could point out where my config file or command line arguments are faulty? I've compared with both links provided and to me the example for linux at wiki.eclipse.org/Eclipse.ini:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m


looks very similar to mine:
 -showsplash
 org.eclipse.platform
 --launcher.XXMaxPermSize
 256m
 -vm
 /usr/lib/jvm/java-6-sun/jre/bin/java
 -vmargs
 -Xms40m
 -Xmx512m


I've also taken out my jvm line out and tried various jvms.
Any further guidance would be appreciated.
Re: Out of memory errors [message #726439 is a reply to message #721999] Sun, 18 September 2011 04:14 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm still getting the same error.
Perhaps somebody could show me where my config file or command line arguments are incorrect?
I checked my file with wiki.eclipse.org/Eclipse.ini and the example posted for linux:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m



looks very similar to mine:


-showsplash
 org.eclipse.platform
 --launcher.XXMaxPermSize
 256m
 -vm
 /usr/lib/jvm/java-6-sun/jre/bin/java
 -vmargs
 -Xms40m
 -Xmx512m


I have tried with different jvms and without the jvm lines but still getting the same error. Any further guidance would be appreciated.
Re: Out of memory errors [message #726445 is a reply to message #726053] Sun, 18 September 2011 04:10 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Still getting out of perm gen space errors. Perhaps somebody could point out where my config file or command line arguments are faulty? I've compared with both links provided and to me the example for linux at wiki.eclipse.org/Eclipse.ini:


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m


looks very similar to mine:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I've also taken out my jvm line out and tried various jvms.
Any further guidance would be appreciated.
Re: Out of memory errors [message #726446 is a reply to message #721999] Sun, 18 September 2011 04:14 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm still getting the same error.
Perhaps somebody could show me where my config file or command line arguments are incorrect?
I checked my file with wiki.eclipse.org/Eclipse.ini and the example posted for linux:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m



looks very similar to mine:



-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I have tried with different jvms and without the jvm lines but still getting the same error. Any further guidance would be appreciated.
Re: Out of memory errors [message #726447 is a reply to message #726053] Sun, 18 September 2011 04:10 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Still getting out of perm gen space errors. Perhaps somebody could point out where my config file or command line arguments are faulty? I've compared with both links provided and to me the example for linux at wiki.eclipse.org/Eclipse.ini:


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m


looks very similar to mine:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I've also taken out my jvm line out and tried various jvms.
Any further guidance would be appreciated.
Re: Out of memory errors [message #726448 is a reply to message #721999] Sun, 18 September 2011 04:14 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm still getting the same error.
Perhaps somebody could show me where my config file or command line arguments are incorrect?
I checked my file with wiki.eclipse.org/Eclipse.ini and the example posted for linux:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m



looks very similar to mine:



-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I have tried with different jvms and without the jvm lines but still getting the same error. Any further guidance would be appreciated.
Re: Out of memory errors [message #726450 is a reply to message #726053] Sun, 18 September 2011 04:10 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Still getting out of perm gen space errors. Perhaps somebody could point out where my config file or command line arguments are faulty? I've compared with both links provided and to me the example for linux at wiki.eclipse.org/Eclipse.ini:


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m


looks very similar to mine:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I've also taken out my jvm line out and tried various jvms.
Any further guidance would be appreciated.
Re: Out of memory errors [message #726451 is a reply to message #721999] Sun, 18 September 2011 04:14 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm still getting the same error.
Perhaps somebody could show me where my config file or command line arguments are incorrect?
I checked my file with wiki.eclipse.org/Eclipse.ini and the example posted for linux:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m



looks very similar to mine:



-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I have tried with different jvms and without the jvm lines but still getting the same error. Any further guidance would be appreciated.
(no subject) [message #726452 is a reply to message #726053] Sun, 18 September 2011 04:10 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
Still getting out of perm gen space errors. Perhaps somebody could point out where my config file or command line arguments are faulty? I've compared with both links provided and to me the example for linux at wiki.eclipse.org/Eclipse.ini:


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m


looks very similar to mine:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I've also taken out my jvm line out and tried various jvms.
Any further guidance would be appreciated.
(no subject) [message #726453 is a reply to message #721999] Sun, 18 September 2011 04:14 Go to previous messageGo to next message
timothydedrick is currently offline timothydedrickFriend
Messages: 16
Registered: September 2011
Junior Member
I'm still getting the same error.
Perhaps somebody could show me where my config file or command line arguments are incorrect?
I checked my file with wiki.eclipse.org/Eclipse.ini and the example posted for linux:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
-vmargs
-Xms40m
-Xmx512m



looks very similar to mine:



-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Xms40m
-Xmx512m


I have tried with different jvms and without the jvm lines but still getting the same error. Any further guidance would be appreciated.
Re: (no subject) [message #726983 is a reply to message #726439] Tue, 20 September 2011 06:00 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
I don't know what's happening here. Which flavour or Eclipse are you using? Do you want to try out IBM JVM (permgen setting is not required for this). http://www.ibm.com/developerworks/java/jdk/linux/download.html
Re: Out of memory errors [message #727211 is a reply to message #726445] Tue, 20 September 2011 15:47 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/18/11 12:10 AM, timothydedrick wrote:
> Still getting out of perm gen space errors. Perhaps somebody could point
> out where my config file or command line arguments are faulty? I've
> compared with both links provided and to me the example for linux at
> wiki.eclipse.org/Eclipse.ini:
>
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vm
> /opt/sun-jdk-1.6.0.02/bin/java
> -vmargs
> -Xms40m
> -Xmx512m
>
>
> looks very similar to mine:
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vm
> /usr/lib/jvm/java-6-sun/jre/bin/java
> -vmargs
> -Xms40m
> -Xmx512m


Add
-XX:MaxPermSize=128M
as a new line after the -Xmx512m line.
The -XX setting is an argument that must be passed to the JVM; all
parameters to the JVM must come after the -vm lines, and are passed
as-is to the JVM as it's being started.

One more thing to clarify: we're talking about Eclipse itself having
PermGen errors, NOT a program that you're writing and running from
inside Eclipse. Right?


Eric
Re: Out of memory errors [message #728765 is a reply to message #727211] Fri, 23 September 2011 21:31 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 6
Registered: September 2011
Junior Member
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
Previous Topic:Can't get eclipse and clearcase to work together
Next Topic:cannot update eclipse - dependency error
Goto Forum:
  


Current Time: Mon Sep 23 15:17:25 GMT 2024

Powered by FUDForum. Page generated in 0.06586 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top