How to reduce the eclipse memory usage?

2 points by SmartCoder ↗ HN
Hi guys, I start a new empty project with eclipse . then the memory usage nearly up to 360M. what should i do ?

7 comments

[ 591 ms ] story [ 397 ms ] thread
Buy more RAM.

360 megs is a rounding error on anything made in the last 7 years.

In eclipse.ini you'll see the JRE VM args.

I'd recommend these args which save memory:

-server This slows startup time but payoff is greater optimization.

-XX:+AggressiveOpts Flips on a variety of options that increase performance.

-XX:MinHeapFreeRatio=1 Lets the JRE give as much RAM as possible back to the OS.

-XX:MaxHeapFreeRatio=2 Lets the JRE give as much RAM as possible back to the OS.

-XX:+UseSerialGC Old-fashioned 'stops the world' garbage collection, but it's the best GC for guaranteeing least memory usage.