그것은 나를 위해 작동 :
기본값 (Windows의 자바 7 64 비트) :
java -Xmx4g -Xms4g -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Heap
par new generation total 613440K, used 21813K
eden space 545344K, 4% used
from space 68096K, 0% used
to space 68096K, 0% used
concurrent mark-sweep generation total 3512768K, used 0K
concurrent-mark-sweep perm gen total 21248K, used 2084K
지금 비율 매개 변수를 지정 (대략 같은 결과) :
java -Xmx4g -Xms4g -XX:+PrintGCDetails -XX:NewRatio=6 -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -version
par new generation total 539264K, used 19174K
eden space 479360K, 4% used
from space 59904K, 0% used
to space 59904K, 0% used
concurrent mark-sweep generation total 3595136K, used 0K
concurrent-mark-sweep perm gen total 21248K, used 2084K
그리고 전혀 다른 새로운/이전 및 에덴/생존자 비율 :
java -Xmx4g -Xms4g -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=1 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -version
par new generation total 1398144K, used 27965K
eden space 699136K, 4% used
from space 699008K, 0% used
to space 699008K, 0% used
concurrent mark-sweep generation total 2097152K, used 0K
concurrent-mark-sweep perm gen total 21248K, used 2084K
동일한 것은 Java 6 또는 클라이언트 VM (기본값이 다른 경우)에서 작동합니다.
사용중인 Java 버전은 무엇입니까? 자바 6 udpate 33을 사용해 볼 수 있습니까? –