Solved

Eclipse "Out of Memory Error"

Posted on 2008-10-08
5
2,993 Views
Last Modified: 2013-12-15
I have searched the internet for possible solutions and they all claim it is the stack and heap memory size.  I have increased the sizes, but I still get the message and Eclipse is running very slow.
This is what I have in my ini file;
-showsplash
org.eclipse.platform
--launcher.XX:MaxPermSize 1024M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Xms256M
-Xmx512M
-XX:PermSize=256M
-osgi.requiredJavaVersion=1.5

Any helpful hints?
0
Comment
Question by:chima
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 400 total points
ID: 22677110
Can I assume this is on a well equipped PC? How much RAM do you have and how large is your swap space? Running too slowly can be caused by 1) older PC, 2) running out of RAM and swapping and 3) virus scanner.
0
 
LVL 9

Expert Comment

by:mbodewes
ID: 22677136
Also: close as many projects as you can. Especially e.g. C++ projects and large Java projects can cause massive amounts of memory and processor use.
0
 

Author Comment

by:chima
ID: 22677862
It appears that this line --launcher.XX:MaxPermSize 1024M  needed this
--launcher.XX:MaxPermSize=1024M
I changed it and I have not had the error come up.  I will see how it does today.
0
 
LVL 2

Assisted Solution

by:rikga
rikga earned 100 total points
ID: 22681861
You can always try running Eclipse with JRockit.

JRockit sizes the heap automatically, no need to set the -Xmx flag, and the JVM doesn't use a perm-space so you don't need to set it, or change it. JRockit can also use a non-contiguous heap so the JVM will probably be able to use more of the memory you have in your machine. JRockit is a server JVM, but it also works very well for long running client applications where performance is important, like in an IDE where you compile stuff all the time. You can download it here.
http://www.oracle.com/technology/software/products/jrockit/index.html
0
 

Author Closing Comment

by:chima
ID: 31504457
It was that equal sign that was missing.  How it was deleted I do not know.  I do not think I did it.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now