博客
关于我
对象进入老年代的几个条件
阅读量:213 次
发布时间:2019-02-28

本文共 241 字,大约阅读时间需要 1 分钟。

  1. 对象经过几次垃圾回收,熬到设定的年龄阈值,就会晋升到老年代。
  2. 如果直接分配大对象,该大对象超出了JVM设置的限定值,就会直接分配到老年代。
  3. 在一次新生代GC后,Survivor区域中的几个年龄对象加起来超过了Survivor区内存的一半,那么根据动态年龄判定规则,从最小的年龄加起,比如年龄1+年龄2+年龄3的对象大小总和,超过了Survivor区内存的一半,此时年龄3以上的对象就会晋升老年代。
  4. 新生代GC后,存活下来的对象太多,Survivor区放不下,此时对象直接晋升老年代。

转载地址:http://qgjp.baihongyu.com/

你可能感兴趣的文章
nginx 集群配置方式 静态文件处理
查看>>
nginx+mysql+redis+mongdb+rabbitmq 自动化部署脚本
查看>>
nginx+php的搭建
查看>>
nginx+tomcat+memcached
查看>>
Nginx+Tomcat实现动静分离
查看>>
nginx+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
nginx+vsftp搭建图片服务器
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
nginx-vts + prometheus 监控nginx
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx:Error ./configure: error: the HTTP rewrite module requires the PCRE library
查看>>
Nginx、HAProxy、LVS
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx中使用expires指令实现配置浏览器缓存
查看>>
Nginx之二:nginx.conf简单配置(参数详解)
查看>>
Nginx从入门到精通
查看>>
Nginx代理websocket配置(解决websocket异常断开连接tcp连接不断问题)
查看>>
Nginx代理初探
查看>>