Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > Linux Threading Model and JBOSS(ZZ)
【标  题】:Linux Threading Model and JBOSS(ZZ)
【关键字】:Linux,Threading,Model,and,JBOSS,ZZ
【来  源】:http://www.cublog.cn/u/7000/showart.php?id=107513

Linux Threading Model and JBOSS(ZZ)

Your Ad Here

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=<kernel-version>

The appropriate values for <kernel-version> 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 <jboss-pid>



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

resovle the adobe reader's problem:【上一篇】
嘿嘿,还是重装系统了:【下一篇】
【相关文章】
  • Linux基础(unfinished)
  • Linux的IP设置技巧
  • Linux 使用技巧集锦
  • 理解Linux的启动过程
  • Dr.com在linux下的版本drcom-client在unbuntu下的安装
  • Linux磁盘与文件系统
  • 安装uclinux与skyeye的脚本
  • Linux的常用网络命令
  • LINUX下配置DNS全文
  • 15.1 End points and reachability
  • 【随机文章】
  • Meebo网站支持多种Instant Messengers
  • 亿阳信通面试题2006.12.15
  • 病毒防范误区之二:杀毒软件为什么没有告诉我们
  • PHP_字符串操作入门教程
  • kccrsz: expanded controlfile
  • Windows 快捷键大全
  • Mobile IP通讯协议架构
  • 宽带移动唤醒企业VPN需求
  • 和我一起学Windows Workflow Foundation(1)-----创建和调试一个WF实例
  • Linux下Oracle安装宝典
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.