Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

 
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 ?
 
Saloon Keeper
Posts: 21125
131
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
author
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
Posts: 21125
131
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE 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
 
What's gotten into you? Could it be this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!