I'm running a Java application from Eclipse that need a lot of memory.
Where can i put the -Xmms-xms flag ?
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.