• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Making more memory available to Eclipse

 
Ranch Hand
Posts: 228
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Problem: I have running a system with 32 gigs of RAM. I am working on a large JSF project which seems to make my Eclipse slightly sluggish. There are plenty of answers on Stackoverflow and Quora where people simply share what their eclipse.ini settings are. Unfortunately, this doesn't tell me anything about what I should do in my particular case with the amount of RAM I have available. Also, this doesn't shed any light on what Xms, Xmx, XX:PermSize, XX:MAXPerSize actually does.

Given that I have 32 gigs of RAM, I don't mind giving the vast majority of it to Eclipse since that's all I use on my machine while I am working.

If someone a little informed on the nuances of this topic can chime in please?

Thank you.



 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know exactly what Xms and Xmx mean, but I believe they mean Xms: the amount of memory that Eclipse uses on startup, and Xmx: the maximum amount of memory Eclipse can use.  

I would fiddle with those two setting -- but remember that speed is not one of Eclipse's fortes.  And my Eclipse's memory footprint at the moment is under 150MB, so I don't know if bigger numbers will help.

Here's my values.  I would guess that "m" is MB.  You could try "g" for GB -- no idea if that will work.

-vmargs
-Xms256m
-Xmx1024m
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is a slightly-helpful page on the matter:

https://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your JSF project needs more memory, it probably isn't going to help to give Eclipse more memory. The two run in different JVM's. So I'd look into how to give JSF more memory when Eclipse runs it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic