This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28399
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28399
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic