【JVM】used/capacity/commited/reserved

本文详细介绍了Java的Metaspace和Class Space,包括它们在JVM中的作用、内存统计信息used、capacity、committed和reserved的含义。Metaspace用于存储类元数据,非堆、本地内存;而Class Space涉及压缩类指针,与64位平台的内存寻址相关。文章还提到了开启压缩类指针时Metaspace的分层架构以及如何使用jcmd工具查看Metaspace信息。
摘要由CSDN通过智能技术生成

问题来源:https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/considerations.html

问题详情:Example 11-1 Typical Heap Printout

Heap
  PSYoungGen      total 10752K, used 4419K
    [0xffffffff6ac00000, 0xffffffff6b800000, 0xffffffff6b800000)
    eden space 9216K, 47% used
      [0xffffffff6ac00000,0xffffffff6b050d68,0xffffffff6b500000)
    from space 1536K, 0% used
      [0xffffffff6b680000,0xffffffff6b680000,0xffffffff6b800000)
    to   space 1536K, 0% used
      [0xffffffff6b500000,0xffffffff6b500000,0xffffffff6b680000)
  ParOldGen       total 20480K, used 20011K
      [0xffffffff69800000, 0xffffffff6ac00000, 0xffffffff6ac00000)
    object space 20480K, 97% used 
      [0xffffffff69800000,0xffffffff6ab8add8,0xffffffff6ac00000)
  Metaspace       used 2425K, capacity 4498K, committed 4864K, reserved 1056768K
    class space   used 262K, capacity 386K, committed 512K, reserved 1048576K

In the line beginning with Metaspace, the used value is the amount of space used for loaded classes. The capacity value is the space available for metadata in currently allocated chunks. The committed value is the amount of space available for chunks. The reserved value is the amount of space reserved (but not necessarily committed) for metadata. The line beginning with class space line contains the corresponding values for the metadata for compressed class pointers.


问题:

  1. 在这段gc日志中,metaspace和class space分别代表什么?
  2. metaspace和class space的日志统计信息中used、capacity、committed、reserved是什么意思?

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值