the personal understanding about JAVA Heap space and GC

these days,i try to summarize  knowledge in my five past years .this morning i just  restudied the JVM (Java Virtual Machine). actually before this because the reason of job,i did not know it well . let us just get straight to the point.

  the space of heap . there are three parts compose its heap space,  heap space= new generation space+old generation space+ Permanent space.

new generation space= one Eden space + two survivor spaces  

old generation space=tenure space

permanent space=  perm read only ,perm read write

the process of GC goes like: JVM initially  allocates memories  of  all objects in Eden space, when Eden space is full, JVM moves those objects which are still referred  not "dead object" to one of the survivor  space, when GC carries a minor garbage collection . those objects still alive in survivor space move to the tenure space.when the tenure is full .GC will take a slowly full garbage clearness .it usually take a lot of time 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值