开发者

Java resize heap question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜