Redian新闻
>
被面how to manage heap in java jvm
avatar
被面how to manage heap in java jvm# Java - 爪哇娇娃
k*m
1
jvm specification 都没讲过怎么manage heap, 我也不是开发jvm,
这从何说起呀
avatar
g*g
2
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.

【在 k**m 的大作中提到】
: jvm specification 都没讲过怎么manage heap, 我也不是开发jvm,
: 这从何说起呀

avatar
c*e
3
是不是这些:
-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.

avatar
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.

avatar
c*e
5
那只能通过command line来改参数?

【在 w**z 的大作中提到】
: jconsole 只能看,改了参数要重启jvm.
:
: one
: '.

avatar
w*z
6
there are tons of JVM parameters, as far as I know, you will have to
restart JVM for them to take effect.

【在 c*********e 的大作中提到】
: 那只能通过command line来改参数?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。