银行GC分析报告

本资料无预览

如感兴趣请购买后下载

立即下载

资料简介:

a.PNG

查看新的错误日志native_stderr.log,在文件尾部在 18:40分有大量的AF日志,内存分配失败都是由于无法分配照成,和先前的症状相同。





= 32), weak 0, final 0, phantom 0>







= 32), weak 0, final 2, phantom 0>


JVMDBG001: malloc failed to allocate 12288 bytes, time: Tue Oct 07 18:41:41 2008


由于IBM的1.4 JVM 的分配策略,当GC发生时,只能移动,回收不用的对象,而不能移动,回收Class对象,这些class对象会一直存在内存当中,当需要给大对象分配内存时,内存中已经无法找到足够的连续空间,就会造成AF错误,直至OOM。

建议调整参数-Xloratio,默认值为0.05,修改为0.2,
该参数是预留部分内存为大对象,如果是0.2 则预留当前heapsize 的20%,当收到新的分配内存申请>= 64 KB,JVM先从其他的80%中分配内存,如果分配失败,则在这20%中分配。如果仍然出现分配失败可以考虑加大预留内存,0.3-0.5.

配置方法:

Servers > Application Servers > server_name > Java and Process Management > Process definition > Java Virtual Machine > Generic JVM Arguments





使用ISA 分析工具分析内存GC情况。



以下是ISA分析报告。

Tuning recommendation

Heap usage seems to be growing over time. It increased by 15% in the last third of the log compared to the middle of the log. The heap size increased by 15% in response to the increased pressure on the heap. While this kept the change in the rate of collections to -100%, the heap growth is not sustainable. Unless the application stops growing its memory requirements, it is likely that an out memory error or severe performance degradation will eventually occur.If you don't know of a reason why the memory requirements of your application should be growing, your application may be leaking memory. Consider reviewing your application for references which are being held unneccessarily, large maps and sets, and large statically-held objects. Using weak references where appropriate may help.

Garbage collection is causing some large pauses. The largest pause was 5917 ms. This may affect application responsiveness. If responsiveness is a concern then a switch of policy or reduction in heap size may be helpful.

The garbage collector tried to allocate from the large object area and failed 309 times. Consider setting or increasing -Xloratio. You may need to also increase the heap size with -mx. Be cautious of increasing -Xloratio to anything greater than 0.2.

The mean heap unusable due to fragmentation is estimated at 17.98%, which is high.You are using the optthrupput gc policy, which is already a reasonable choice. You may be able to reduce fragmentation levels by increasing -Xloratio to increase the room available for large objects or increasing the pinned free list size with the -Xp command line parameter.

At one point 10144 objects were queued for finalization. Using finalizers is not recommended as it can slow garbage collection and cause wasted space in the heap. Consider reviewing your application for occurrences of the finalize() method.

The application seems to be using some quite large objects. The largest request which triggered an allocation failure (and was recorded in the verbose gc log) was for 4194320 bytes.

The recommended command line is -Xloratio0.2.

Summary















Mean garbage collection pause (ms)

183

Proportion of time spent in garbage collection pauses (%)

0.01

Number of collections

3125

Largest memory request (bytes)

4194320

Mean interval between collections (minutes)

32.2

Proportion of time spent unpaused (%)

100.0

Allocation failure count

3111

Forced collection count

14

GC Mode

optthruput

Mean heap unusable due to fragmentation (MB)

138

Concurrent collection count

0

Full collections

0

Rate of garbage collection

14.293 MB/minutes


Heap size





Mean

Minimum

Maximum

Total

heap (MB)

heap (MB)

heap (MB)

heap (MB)

768

768

768

2399995


Fragmentation (estimate)





Mean

Minimum

Maximum

Total

percent (%)

percent (%)

percent (%)

percent (%)

121594

2.35

1520765

41949970


Used heap (after collection)





Mean

Minimum

Maximum

Total

heap (MB)

heap (MB)

heap (MB)

heap (MB)

286

2.91

416

893825



JVM restarts





Mean

Minimum

Maximum

Total

restart

restart

restart

restart

1.0

1.0

1.0

7.0

2012-03-25
浏览5500
下载16

已下载用户的评价7.41分

您还未下载该资料,不能发表评价;
查看我的 待评价资源
loopwa291loopwa291网站开发工程师wisco2015-08-06
没用
非常感谢楼主的分享,受教了!
loopwa291loopwa291网站开发工程师wisco2015-08-06
没用
非常感谢楼主的分享,受教了!
dongbayoudongbayou软件开发工程师digitalchina2015-05-25
没用
学习一下!
jaymarcojaymarco系统运维工程师上海新炬2015-05-24
没用
学习一下!
star120120star120120技术支持DC2014-02-13
没用
看看
mdl9630mdl9630系统运维工程师西安民航凯亚科技2014-02-13
没用
太费钱了!
yuanlongwenwenyuanlongwenwen系统运维工程师112013-08-19
没用
下来 学习下
liuliyongliuliyong系统工程师tjliuliyong2013-08-16
没用
学习了,非常感谢
暗黑城堡new暗黑城堡new其它XXX科技有限公司2013-07-11
没用
学习一下!
lpr2010lpr2010数据库管理员GDC2013-07-10
没用
来学习一下。最近在学习这块。

贡献者

laopoainiben软件实施顾问,ibm
X社区推广