是不是这些: -XX:InitiatingHeapOccupancyPercent=n Percentage of the (entire) heap occupancy to start a concurrent GC cycle. It is used by GCs that trigger a concurrent GC cycle based on the occupancy of the entire heap, not just one of the generations (e.g., G1). A value of 0 denotes 'do constant GC cycles'. The default value is 45. -XX:MaxHeapFreeRatio=70 Maximum percentage of heap free after GC to avoid shrinking. -XX:MinHeapFreeRatio=40 Minimum percentage of heap free after GC to avoid expansion. 要不要用jconsole之类的软件来改参数?
where
【在 g*****g 的大作中提到】 : You can configure GC parameters on startup. There would also be cases where : you want to hold on reusable objects to reduce GC. That's about it.
w*z
4 楼
jconsole 只能看,改了参数要重启jvm.
one '.
【在 c*********e 的大作中提到】 : 是不是这些: : -XX:InitiatingHeapOccupancyPercent=n Percentage of the (entire) heap : occupancy to start a concurrent GC cycle. It is used by GCs that trigger a : concurrent GC cycle based on the occupancy of the entire heap, not just one : of the generations (e.g., G1). A value of 0 denotes 'do constant GC cycles'. : The default value is 45. : -XX:MaxHeapFreeRatio=70 Maximum percentage of heap free after GC to : avoid shrinking. : -XX:MinHeapFreeRatio=40 Minimum percentage of heap free after GC to : avoid expansion.