Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any memory size limit for each and every workspace in eclipse?

 
arul micheal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any memory size limit for each and every workspace in eclipse?

I am getting an alert like "Out of memory".

Can you please tell me ?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not really a workspace memory limit - it's the Eclipse application's memory limit. Eclipse is a Java app - ignoring the binary Eclipse from Red Hat, which I doubt you're using. So you can set JVM memory specifications when you start Eclipse just like you would for any other Java app.

If you get too many large-scale projects in a single workspace, you might need to break them out into multiple workspaces, since not only will you be consuming large amounts of memory, but also Eclipse will be spending a lot of time keeping them all properly managed. However, Eclipse can handle a lot, so unless you're already running more than about 2GB of VM RAM, that's probably not necessary.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are working on windows, you can set the heap size for eclipse itself using

eclipse.exe -vmargs -Xmx768m

(The example sets teh maximum heap size to 768 MB.)

I guess it works similar with other operating systems.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
If you are working on windows, you can set the heap size for eclipse itself using

eclipse.exe -vmargs -Xmx768m

(The example sets teh maximum heap size to 768 MB.)

I guess it works similar with other operating systems.


It does. I was just too lazy to look it up.
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:
If you are working on windows, you can set the heap size for eclipse itself using

eclipse.exe -vmargs -Xmx768m

(The example sets teh maximum heap size to 768 MB.)

I guess it works similar with other operating systems.


Yes, the platform independent way is to edit eclipse.ini

Mine is like so
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic