Solved

Eclipse "Out of Memory Error"

Posted on 2008-10-08
5
2,995 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

948 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

19 Experts available now in Live!

Get 1:1 Help Now