Thursday, July 17, 2008

Solving Memory problems

Issue:
CPU takes 100% usage and eclipse hangs.

Cause:lipse Project Release Notes 3.4
By default, Eclipse will allocate up to 256 megabytes of Java heap memory.
This should be ample for all typical development tasks. However, depending on
the JRE that you are running, the number of additional plug-ins you are using,
and the number of files you will be working with, you could conceivably have to
increase this amount. Eclipse allows you to pass arguments directly to the Java
VM using the -vmargs command line argument, which must follow all
other Eclipse specific arguments. Thus, to increase the available heap memory,
you would typically use:

eclipse -vmargs -Xmx<memory size>

Fix:
  1. Make a shortcut to the eclipse on desktop
  2. under target give: C:\pathToEclipse\eclipse\eclipse.exe -vmargs -Xmx768M
  3. For me even 512 was giving issues. Dont forget the M to the end else it would take it as Bytes!

No comments:

Post a Comment