开发者

Java resize heap question

开发者 https://www.devze.com 2023-01-28 06:48 出处:网络
If there was a way to resize the heap by passing Xmsn to the argument array in main. Could I be shown a small exa开发者_StackOverflowmple of this.You can not resize the amount of memory allotted to th

If there was a way to resize the heap by passing Xmsn to the argument array in main. Could I be shown a small exa开发者_StackOverflowmple of this.


You can not resize the amount of memory allotted to the Java Virtual Machine (-Xmx) once it's been started. What you could do is launch another Java process from your main with the value you get from the args array.

0

精彩评论

暂无评论...
验证码 换一张
取 消