GC日志

  • ParallelScanvage日志

      0.268: [GC (Allocation Failure) [PSYoungGen: 8192K->1008K(9216K)] 8192K->6847K(39936K), 0.0186652 secs] [Times: user=0.04 sys=0.01, real=0.02 secs] 
      
      0.268:GC发生的时间,Jvm启动之后按照秒计算
      Allocation Failure:GC原因,分配失败
      PSYoungGen:年轻带GC,ParallelScanvage算法
      8192K->1008K(9216K):GC前年轻代使用了8192K空间,GC后年轻代使用了1008K空间,年轻代总空间9216K
      8192K->6847K(39936K):回收前堆使用空间8192K,回收后堆使用空间6847K,堆总空间39936K
      0.0186652 secs:年轻代回收使用了0.0186652秒
      [Times: user=0.04 sys=0.01, real=0.02 secs] :用户态使用0.04秒,内核态使用0.01秒
  • ParallelOld日志

      17.087: [Full GC (Ergonomics) [PSYoungGen: 4095K->0K(5120K)] [ParOldGen: 51200K->592K(30720K)] 55295K->592K(35840K), [Metaspace: 3281K->3281K(1056768K)], 0.0090922 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]
      17.087:GC发生的时间,Jvm启动之后按照秒计算
      Full GC (Ergonomics):自动的调解gc暂停时间和吞吐量之间的平衡
      PSYoungGen: 4095K->0K(5120K):PSYoungGen的意思是年轻代垃圾回收使用ParallelScanvage垃圾收集器,年轻代回收前使用空间4095K,年轻代回收后使用空间0K,年轻代总空间5120K
      ParOldGen: 51200K->592K(30720K):ParOldGen的意思是老年代垃圾回收使用ParallelScanvage垃圾收集器,老年代回收前使用空间51200K,老年代回收后使用空间592K,老年代总空间592K
      55295K->592K(35840K):回收前使用堆空间55295K,回收后使用堆空间592K,堆总空间35840K
      Metaspace: 3281K->3281K(1056768K):回收前元空间使用了3281K,回收后元空间使用3281K
      0.0090922 secs:GC总时间
    
  • 堆信息

      Heap
      PSYoungGen      total 5120K, used 133K [0x00000007bf600000, 0x00000007c0000000, 0x00000007c0000000)
        eden space 4096K, 3% used [0x00000007bf600000,0x00000007bf621498,0x00000007bfa00000)
        from space 1024K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)
        to   space 3072K, 0% used [0x00000007bfa00000,0x00000007bfa00000,0x00000007bfd00000)
      ParOldGen       total 30720K, used 592K [0x00000007bc400000, 0x00000007be200000, 0x00000007bf600000)
        object space 30720K, 1% used [0x00000007bc400000,0x00000007bc494370,0x00000007be200000)
      Metaspace       used 3312K, capacity 4496K, committed 4864K, reserved 1056768K
        class space    used 360K, capacity 388K, committed 512K, reserved 1048576K
    

常用命令
image.png

常用工具
image.png


一只鱼
49 声望1 粉丝

« 上一篇
垃圾回收器

引用和评论

0 条评论