Run application via gradlew with -Xmx and -Xms

前端 未结 3 1946
忘掉有多难
忘掉有多难 2021-02-11 23:15

I have an application. I run it via

gradlew run-app

Or debug

gradlew debug-app

It works. How do I pass \'-Xm

3条回答
  •  情书的邮戳
    2021-02-11 23:29

    Using application plugin one can use applicationDefaultJvmArgs property

    apply plugin: 'application'    
    applicationDefaultJvmArgs = ["-Xms1024m", "-Xmx2048m"]
    

    The arguments will be applied to run task and to start script of your application

    more info

提交回复
热议问题