How do I set Java's min and max heap size through environment variables?

后端 未结 7 1883
抹茶落季
抹茶落季 2020-11-29 00:48

How do I set Java\'s min and max heap size through environment variables?

I know that the heap sizes can be set when launching java, but I would like to have this ad

7条回答
  •  盖世英雄少女心
    2020-11-29 01:21

    Actually, there is a way to set global defaults for Sun's JVM via environment variables.

    See How to set a java system property so that it is effective whenever I start JVM without adding it to the command line arguments.

提交回复
热议问题