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

后端 未结 8 1805
刺人心
刺人心 2020-11-28 10:16

I am launching a java jar file which often requires more than the default 64MB max heap size. A 256MB heap size is sufficient for this app though. Is there anyway to speci

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 10:59

    Found an answer on google.

    He says no for the JAR file, yes in JavaWeb Start, and that you should do it in your (possibly system-specific) launcher/wrapper script/app.

提交回复
热议问题