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.
精彩评论