GC action的定义

 http://www.ibm.com/developerworks/ibm/library/i-garbage3.html


[1] Performing a GC without using the wilderness. It is designed to avoid compactions by keeping the wilderness available for a large allocation request.

[2] Tried to allocate out of the wilderness and failed.

[3] Attempting to expand the heap.

[4] Clearing any remaining soft references. This is only done if there is less than 12% free space in a fully expanded heap.

[5] Trying to steal some space from the transient heap. Only applies to resettable mode.

[6] Not actually an action. It gives a verbosegc message that we are very low on heap space, or totally out of heap space

 

 

IBM JDK
–-verbose:gc-Xverbosegclog:<path_GC_log_file_name>
HP JDK
–-Xverbosegc[:help]|[0|1][:file=[stdout|stderr|<filename>]] -Xloggc
Sun JDKBEA JRockit
–-verbose:gc–Xloggc:logfile
BEA JRockit
–-verbose:gc-Xverboselog:logfile

 


To get detailed GC info
–-XX:-PrintGC
–-XX:+PrintGCDetails
–-XX:+PrintGCApplicationConcurrentTime
–-XX:+PrintGCApplicationStoppedTime
–-XX:+PrintGCTimeStamps

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值