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.

ajduke
  • 4,991
  • 7
  • 36
  • 56
Hiren Patel
  • 52,124
  • 21
  • 173
  • 151

1 Answers1

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?

Community
  • 1
  • 1
ajduke
  • 4,991
  • 7
  • 36
  • 56