0

I was asking a question about the performance of a certain method Performance of method after some comments i discovered that the virtual machine can take argument before running. what is the best argument that make VM use all of my computer resources.

i have core i5 with 4 g ram

4

1 回答 1

2

您可以获得的最接近的是使用该-XX:+AggressiveHeap选项;然后 JVM 将尝试尽可能多地吃掉内存。

请注意,这仅涉及堆;您可能还想调整 permgen 的大小、堆栈大小等。

注 2:这是针对 Oracle JVM 的;我敢打赌 OpenJDK 也有这样的东西;至于其他JVM实现,不知道。

于 2013-06-16T15:26:20.570 回答