RunTime.getRunTime().addShutdownHook用法">RunTime.getRunTime().addShutdownHook用法 RunTime.getRunTime().addShutdownHook用法手动触发java项目GC命令:jcmd GC.runlinux 查看heap详情:jmap -heap