设为首页 收藏本站
查看: 1336|回复: 0

[经验分享] IBM JDK1.6.0 full gc

[复制链接]

尚未签到

发表于 2017-5-25 12:04:45 | 显示全部楼层 |阅读模式
请教高手,我仅设置了堆的最大最小值。
从GC日志来看为什么我的JVM堆大小都是tenured区了(tenured大小=Xmx大小)。导致每次都进行global,即full。
默认的年轻代,年老大比例是多少呢。

操作系统:AIX Version 6.1
JDK:java version "1.6.0",IBM J9 VM
应用服务器:weblogic10
JVM设置:-Xms448m -Xmx576m。
GC日志:
<sys id="1" timestamp="Apr 11 21:32:35 2012" intervalms="0.000">
  <time exclusiveaccessms="0.050" meanexclusiveaccessms="0.036" threads="1" lastthreadtid="0x0000000115D96400" />
  <refs soft="7197" weak="2686" phantom="35" dynamicSoftReferenceThreshold="32" maxSoftReferenceThreshold="32" />
  <tenured freebytes="105552120" totalbytes="469762048" percent="22" >
  <soa freebytes="82064632" totalbytes="446274560" percent="18" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <gc type="global" id="1" totalid="1" intervalms="0.000">
  <classunloading classloaders="28" classes="13" timevmquiescems="0.000" timetakenms="8.799" />
  <finalization objectsqueued="1811" />
  <timesms mark="95.835" sweep="3.707" compact="0.000" total="132.262" />
  <tenured freebytes="399378504" totalbytes="469762048" percent="85" >
  <soa freebytes="375891016" totalbytes="446274560" percent="84" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  </gc>
  <tenured freebytes="399378504" totalbytes="469762048" percent="85" >
  <soa freebytes="375891016" totalbytes="446274560" percent="84" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <refs soft="6570" weak="1006" phantom="11" dynamicSoftReferenceThreshold="27" maxSoftReferenceThreshold="32" />
  <time totalms="134.796" />
</sys>

<af type="tenured" id="1" timestamp="Apr 11 21:33:27 2012" intervalms="0.000">
  <minimum requested_bytes="48" />
  <time exclusiveaccessms="0.244" meanexclusiveaccessms="0.133" threads="1" lastthreadtid="0x0000000115D96400" />
  <refs soft="14776" weak="4065" phantom="791" dynamicSoftReferenceThreshold="27" maxSoftReferenceThreshold="32" />
  <tenured freebytes="23487488" totalbytes="469762048" percent="4" >
  <soa freebytes="0" totalbytes="446274560" percent="0" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <gc type="global" id="2" totalid="2" intervalms="52495.745">
  <classunloading classloaders="52" classes="14" timevmquiescems="0.000" timetakenms="17.752" />
  <finalization objectsqueued="2286" />
  <timesms mark="129.401" sweep="6.562" compact="0.000" total="154.076" />
  <tenured freebytes="350597360" totalbytes="469762048" percent="74" >
  <soa freebytes="327109872" totalbytes="446274560" percent="73" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  </gc>
  <tenured freebytes="350597312" totalbytes="469762048" percent="74" >
  <soa freebytes="327109824" totalbytes="446274560" percent="73" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <refs soft="13797" weak="1801" phantom="25" dynamicSoftReferenceThreshold="23" maxSoftReferenceThreshold="32" />
  <time totalms="163.018" />
</af>

<af type="tenured" id="2" timestamp="Apr 11 21:33:49 2012" intervalms="21631.184">
  <minimum requested_bytes="64" />
  <time exclusiveaccessms="0.089" meanexclusiveaccessms="0.089" threads="0" lastthreadtid="0x0000000118BB6B00" />
  <refs soft="14612" weak="2323" phantom="28" dynamicSoftReferenceThreshold="23" maxSoftReferenceThreshold="32" />
  <tenured freebytes="23487488" totalbytes="469762048" percent="4" >
  <soa freebytes="0" totalbytes="446274560" percent="0" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <gc type="global" id="3" totalid="3" intervalms="21639.875">
  <finalization objectsqueued="1836" />
  <timesms mark="138.777" sweep="7.135" compact="0.000" total="146.230" />
  <tenured freebytes="292566400" totalbytes="469762048" percent="62" >
  <soa freebytes="269078912" totalbytes="446274560" percent="60" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  </gc>
  <tenured freebytes="292566336" totalbytes="469762048" percent="62" >
  <soa freebytes="269078848" totalbytes="446274560" percent="60" />
  <loa freebytes="23487488" totalbytes="23487488" percent="100" />
  </tenured>
  <refs soft="14592" weak="2055" phantom="27" dynamicSoftReferenceThreshold="19" maxSoftReferenceThreshold="32" />
  <time totalms="165.901" />
</af>

<!-- google_ad_section_end --><!--End_body//-->
 
  -----------------------
IBM jdk 默认的GC回收策略是mark - sweep 所以每次都是FULL GC 和sun 的分代是不一样的!当然你也可以通过修改参数改成分代策略
<!--End_rbody_78638784//-->
 
-

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-380968-1-1.html 上篇帖子: 听IBM院士王云的讲座有感 下篇帖子: IBM Java自带了哪些安全算法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表