Setting memory of Java programs that runs from Eclipse

40,684

Solution 1

You can set the VM arguments for a specific run configuration:

Run → Run Configurations... → Arguments Tab → VM arguments

Btw, you may want to try -Xms instead of -Xmms.

Solution 2

from the run menu select run configuration. you can add specific parameters to each of your run configurations individually.

Share:
40,684
Guillaume Massé
Author by

Guillaume Massé

I'm Gui !

Updated on November 14, 2020

Comments

  • Guillaume Massé
    Guillaume Massé over 3 years

    I'm running a Java application from Eclipse that need a lot of memory.

    Where can i put the -Xmms-xms flag ?

  • Guillaume Massé
    Guillaume Massé over 13 years
    Unrecognized option: -Xmms512m Could not create the Java virtual machine.
  • Guillaume Massé
    Guillaume Massé over 13 years
    -Xms512m -Xmx1024m ( I'm dysleixc )