84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
人生最曼妙的风景,竟是内心的淡定与从容!
Oracle’s official documentation was not found. Please try the explanation in the SO answer. http://stackoverflow.com/ques...
To answer your actual question: Only run server 模式下的时候才是 min(1G, 物理内存的四分之一) 所以依你的情况应该是 1G 的样子 当然别忘了要用 java -server <类名> to start your program ..
server
min(1G, 物理内存的四分之一)
1G
java -server <类名>
You can also try printing the value of Runtime.getRuntime().maxMemory() in the program to see what it is
Runtime.getRuntime().maxMemory()
Oracle’s official documentation was not found. Please try the explanation in the SO answer.
http://stackoverflow.com/ques...
To answer your actual question: Only run
server
模式下的时候才是min(1G, 物理内存的四分之一)
所以依你的情况应该是1G
的样子 当然别忘了要用java -server <类名>
to start your program ..You can also try printing the value of
Runtime.getRuntime().maxMemory()
in the program to see what it is