3

I have attached four libraries in my project, but when I try to run this project, that time Eclipse show error dialog with error "Problem occurred with heap space". So what I have to do? Any idea related to this helps.

3

1 Answer 1

11

In your eclipse, installation folder find the eclipse.ini

enter image description here

and edit this file to increase size of heap as shown following

-Xms40m
-Xmx512m

to something more like

-Xms256m
-Xmx1024m

Edit :

Your eclipse.ini settings change will take effect only if you change following:

Run -> External Tools -> External ToolConfigurations.

go to configuration that u use, under jre tab -select option

Run in same JRE in workspace.

For more info on the topic have a look at this link.

What are the best JVM settings for Eclipse?

5
  • which Eclipse IDE version you are using ??
    – ajduke
    Apr 13, 2013 at 10:40
  • Is is your system RAM less or something ? Accordingly specify Heap Size
    – ajduke
    Apr 13, 2013 at 10:50
  • my system ram: 4 GB, processor core i3, and os: windows 8 - 64 bit Apr 13, 2013 at 10:51
  • @HirenPatel glad the edit helped. Credit to ajduke for posting the snapshot Apr 13, 2013 at 11:10
  • 1
    @Raghunandan good work at the end of answer, thanks !! (+1`d in other post answer which link you mentioned )
    – ajduke
    Apr 13, 2013 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.