mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
701 B
701 B
Display, and update the vm diagnostic options.
vmoption -h{{execute T2}}
Usage
View all options
vmoption{{execute T2}}
View individual option
vmoption PrintGCDetails{{execute T2}}
Update individual option
vmoption PrintGC true{{execute T2}}
Then use the vmtool{{}} command to force GC, you can see the GC log printed in Tab 1{{}} :
vmtool --action forceGc{{execute T2}}
Configure print GC details
vmoption PrintGCDetails true{{execute T2}}
Then use the vmtool{{}} command to force GC, you can see the GC details printed in Tab 1{{}} :
vmtool --action forceGc{{execute T2}}