免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1151 | 回复: 0
打印 上一主题 下一主题

Linux Threading Model and JBOSS(ZZ) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-01 11:44 |只看该作者 |倒序浏览

Why do I see lots of java processes when I start JBoss on Linux?
This is the old threading model of Linux. Each thread on Linux is a process and ps, pstree or top doesn't understand this. The clue is that when you run top, they all have the same memory allocation.
NPTL
Linux 2.6 kernels and Redhat9+ use a new threading model called NPTL. This behaves the same way as other operating systems. You only see one process.
Redhat9 / Enterprise Linux AS 3 (/ others?)
The backport of NPTL to Redhat9 is buggy. If you are using Redhat9, disable NPTL using:
export LD_ASSUME_KERNEL=
The appropriate values for  can be found in the release notes of your distribution.
For instance, for EL3, search for "NPTL" in this page
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/release-notes/as-x86/

. Additional information on what the LD_ASSUME_KERNEL setting does is described in this page:
http://people.redhat.com/drepper/assumekernel.html

.
JBoss recommends upgrading to the 2.6 kernel and avoiding 2.4 kernels with backports of NPTL as they have proven to be unstable in production Java-based systems.
Thread dump
To get a thread dump of each thread, use ctrl-\ or kill -3  
Note: According to this excellent serie of articles on NPTL
http://www.linuxdevices.com/articles/AT6753699732.html

, other Linux distributions also have issues with their backport on 2.4 kernels. Check your distribution release notes for details.
Referenced by:
JBossFrequentlyAskedQuestions
RedhatHints
JBossOperatingSystemSpecificIssues


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7000/showart_107513.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP