Setting memory of Java programs that runs from Eclipse

前端 未结 2 989
庸人自扰
庸人自扰 2020-12-01 23:24

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

Where can i put the -Xmms-xms flag ?

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 23:58

    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.

提交回复
热议问题