首页  

如何手工触发fullgc     所属分类 jvm 浏览量 1525
jcmd PID GC.run
-XX:+DisableExplicitGC  
配置 禁用gc 则不会触发GC

jmap -dump:live   jmap -histo:live都会触发Full GC   , 不受 -XX:+DisableExplicitGC  影响


LinuxVirtualMachine


jint dump_heap(AttachOperation* op, outputStream* out) {
...
// Request a full GC before heap dump if live_objects_only = true
// This helps reduces the amount of unreachable objects in the dump
// and makes it easier to browse.
HeapDumper dumper(live_objects_only /* request GC */);
int res = dumper.dump(op->arg(0));
...




jdk jcmd 使用 Java黑科技VirtualMachine

上一篇     下一篇
springboot mybatis 多数据源实例

贝尔宾团队角色理论:优秀团队的9种角色

RocketMQ Kafka 简单比较

mongodb简介

springboot2集成业务指标

Object的hashCode和equals方法