How to create an executable jar file with 1 GB heap

后端 未结 3 1102
我寻月下人不归
我寻月下人不归 2021-01-23 08:14

I created a class that gives a text file containing system performance as output. I want to run it as an executable Jar. but when I run the Jar I want to increa

3条回答
  •  长情又很酷
    2021-01-23 08:50

     java -Xms1200m -Xmx1300m -jar FILENAME.jar
    

    Define this somewhere in the jar File or in the Manifest is not possible:

    Can I set Java max heap size for running from a jar file?

提交回复
热议问题