jQuery in Action, 3rd edition
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Java Heap Erorr Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Java Heap Erorr" Watch "Eclipse Java Heap Erorr" New topic

Eclipse Java Heap Erorr

Girdher Singh

Joined: Feb 12, 2012
Posts: 12
I have created a folder structure which contains number of other jar files.Size of this folder is around 6 GB, When I am trying to import this folder in eclipse then I am getting java heap error.I tried with increasing the size of max perm size in eclipse.ini file


I am stucking with this problem for so long any kind of help is appreciable.

[Thumbnail for error.jpg]

Sanjeev Sariya

Joined: Nov 06, 2012
Posts: 4
Do try by going to Run -> run as configuration-> and set argument in that.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

6GB? What is in that folder that the folder is so big? Is it a lot of smaller files or are there some huge files? Knowing what's in that directory and what you are doing with it will help.

I'm not sure which files Eclipse will attempt to load, but if it tries to load at 6GB your need a 64-bit JDK, and run a 64-bit Eclipse (you'll also need a 64-bit OS). You will need either a lot of RAM or a large page file, and then set the heap to a very large value. I recall once needing to load a 1.5GB file into a Java app and I needed a 6GB (4*1.5) heap. Not sure if you'll need a 24GB heap or if a smaller one will do.

JBoss In Action
I agree. Here's the link: http://aspose.com/file-tools
subject: Eclipse Java Heap Erorr
It's not a secret anymore!