Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse performance tuning for multiple CPUs and lots of memory?

I have a dual quad core machine with 12 Gigs of memory on which I run eclipse, does anyone know what JVM Options will give the most responsive / performant experience?

I am currently running:

-Xms256m -Xmx2048m -Xss2m -XX:PermSize=128m -XX:MaxPermSize=384m

Would changing -Xmx to 4096 give better performance? Or is there some point when more memory will deteriorate performance?

Also can I have a garbage collector running on a separate core to stop lags in the UI during GC?

like image 897
Greg Avatar asked Feb 15 '11 16:02

Greg


1 Answers

The most important thing to make sure is that you are running 64-bit version of Eclipse on 64-bit version of JVM. Your are already allocating more memory than I have ever seen allocated to Eclipse. Unless you have ginormous code base loaded in Eclipse, chances are that you will not come close to hitting that limit. You can keep an eye on Eclipse memory consumption in your OS process monitor. If you see it approaching the limit, then you know that you can give it more memory.

JVM will automatically use all available cores. Eclipse is highly multi-threaded. There are no facilities to pin Java threads or the GC to specific cores.

If you are seeing UI lag on a modern JVM, it is not due to GC unless you ran out of memory and GC must pause the process.

like image 198
Konstantin Komissarchik Avatar answered Sep 23 '22 15:09

Konstantin Komissarchik