File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Is there any memory size limit for each and every workspace in eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Is there any memory size limit for each and every workspace in eclipse?" Watch "Is there any memory size limit for each and every workspace in eclipse?" New topic
Author

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

arul micheal
Greenhorn

Joined: Jul 04, 2007
Posts: 9
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

Joined: Jun 25, 2001
Posts: 16303
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

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

Joined: Oct 05, 2001
Posts: 1170

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any memory size limit for each and every workspace in eclipse?