免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 无风之谷
打印 上一主题 下一主题

[WebLogic] 中间件WebLogic/Tuxedo/GoldenGate的排错与优化(获奖名单已公布) [复制链接]

论坛徽章:
0
41 [报告]
发表于 2012-02-15 22:55 |只看该作者
回复 40# 叙利亚


    网上不是贴出来几页嘛,别买中文的了,直接买英文的。或者干脆就看e-docs + weblogic.jar中的源代码。

论坛徽章:
0
42 [报告]
发表于 2012-02-15 23:53 |只看该作者
回复 41# tdy218


    哦,我以为您已经看到过了,英文+原代码就算了,要我有那水平早出国混去了。我还是再等等吧,买个中文的 :em39b:

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
43 [报告]
发表于 2012-02-16 09:30 |只看该作者
FAQ: OutOfMemory in WebLogic

From time to time I see questions like this:

Q: "We are seeing OutOfMemory error in the WebLogic log, after that our app becomes inaccessible. The application is not under heavy load. In fact, we can see it even if the server is idle. WebLogic performance console shows that there is plenty of heap available. What's wrong?".

A: Given the symptoms above, the most likely cause of the problem is that the default size of the heap allocated by JVM for long living objects is often too small for a J2EE application is general and for one under WebLogic in particular. Weblogic uses caching a lot, so if you've got many EJBs, there will be plenty of long living object, and they may not fit into perm heap.

To fix this problem, you need to increase MaxPermSize JVM parameter. Go to WebLogic startup script and add -XMaxPermSize=64m or -XMaxPermSize=128m to JVM startup parameters. If you don't have an application memory leak, this change should take care about the problem.

Q: But how do I know if it's not an app memory leak?

A: The first symptom of the app memory leak is that in addition to OutOfMemory, you will see that the memory graph in WebLogic performance console hits the top, and forcing GC doesn't change anything. Fixing this problem is relatively easy. Get a good profiler tool, like OptimizeIt of JProfiler, and run a load test while memory profiling is enabled. Set up a filter to see only your classes and fined ones taking most of memory. It's likely that the same objects will have largest instance counts.

Tips for setting up a profiler.

First, set the JVM memory to as minimum as possible. If you expect WebLogic to run with 1Gb of JVM heap, set it to much lower values at which app can run. It can be 32M, 64M, depending on the app. Is sounds odd, but the reason is that the memory profiler catches JVM GC activities, and as there will be much more object in 1GB than in 64Mb, that GC under profiler will be dead slow, it can be hours, virtually. Set memory to as low as possible.

Second, turn off anything except the memory profiling. Memory profiling itself is slow, so you will want yo avoid any additional overhead in this case. Performance profiling is to be turned off in any case.

论坛徽章:
0
44 [报告]
发表于 2012-02-16 09:35 |只看该作者
楼上各位朋友好,非常感谢大家的光临,一并谢过。

关于书,我这厢已经和出版社联系确认过,本套三本均已公开发行;因为流通时有自己的流程和周期,上架的时候的确会有快慢,但无论如何,近日应该是都能展列并被大家搜到见到购到。

再次诚恳感谢给予我支持的各位新老朋友!

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
45 [报告]
发表于 2012-02-16 10:22 |只看该作者
以前做WebSphere的一些经验:

遇到比较多的问题是OOM和high CPU,除此之外还有很多其它问题,IBM官方网站把它们分类整理了一下:
http://www-01.ibm.com/support/docview.wss?uid=swg21145599

以OOM为例,一般的分析问题步骤是这样的:
http://www-01.ibm.com/support/docview.wss?uid=swg21145349

1、增大 Maximum Java Heap Value (-Xmx)

2、启用 Verbose GC,由于使用的JDK不同,在Solaris和HP-UX上还需要一些特别的参数设置,详见:
http://www-01.ibm.com/support/docview.wss?uid=swg21114927

3、增加 MaxPermSize 和 MaxNewSize,把它们分别设为 max heap 的四分之一

4、用IBM提供的脚本runISALite.sh收集日志

注:步骤1~3也是性能调优的重要部分,IBM的技术支持团队通常会建议客户进行这些设置。

http://blog.chinaunix.net/uid-17176286-id-3074364.html

评分

参与人数 1可用积分 +15 收起 理由
无风之谷 + 15 感谢分享!

查看全部评分

论坛徽章:
0
46 [报告]
发表于 2012-02-16 10:33 |只看该作者
回复 45# Shell_HAT

谢谢您,分享IBM WebSphere上的经验和资料


   

论坛徽章:
0
47 [报告]
发表于 2012-02-16 11:07 |只看该作者
好活动,支持

weblogic内存溢出时,观察GC也是一种手段,但大型企业都未配置-verbose:gc,调优时可以作为参考

论坛徽章:
0
48 [报告]
发表于 2012-02-16 11:21 |只看该作者
这个好,路过此地,学习学习。

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
49 [报告]
发表于 2012-02-16 11:26 |只看该作者
回复 47# zorrohu


大型应用里面如果开启VerboseGC,日志长的太快了,一个小时就是几G、几十G,所以一般只在出现问题需要分析的时候才开启。

论坛徽章:
0
50 [报告]
发表于 2012-02-16 12:18 |只看该作者
虽然没学过  但是这个东西还是先关注一下  万一以后用的着呢
昨天去书店看了一下  确实还没有看到weblogic这本书
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP