hi! | 关于
专注于Java技术、开源项目、项目管理
今天 | RSS | RDF | Atom | 其它
 
高级搜索

标签 - 分类 : 全部 | UNIX | 随笔 | 数据库 | Java技术 | 网摘文章
在BEA的官方网站上有这样一段文档——在HP-UX 11,11i on PA-RISC上安装Weblogic需支持的配置

The HP-UX 11.0 default value for maximum threads per process is 64, which may be too low for WebLogic Server and many Java server applications in general. When the value is too low, WebLogic Server may have problems starting up.

BEA recommends that you use the maximum kernel setting for the max_thread_proc and maxusers parameters. Setting maxusers to a higher value increases other machine-wide limits, such as nkthread (the maximum number of kernel threads). The following table provides some examples.

 

Parameter

Old Value

New Value

Description

max_thread_proc

64

1024

Maximum threads per process

maxfiles

60

256

Soft file limit per process

maxusers

32

256

Influences other parameters

nkthread

499

3635

Number of threads total on the system

nproc

276

2068

Maximum number of processes

ncallout

292

2084

Number of pending timeouts


所以Weblogic报错OutOfMemoryError: unable to create new native thread时要修改以上配置参数,方法如下:
$sam
选择kerneal configuration
退出,重新编译内核
$shutdown -ry 0
其实这个也在BEA WebLogic平台下J2EE调优攻略  提到过。

还有一种极端的情况:当前运行的JVM里确实开了很多的线程,超过了操作系统每个进程最大线程数的极限或者JVM的极限,可以做做Thread Dump数一下线程数
标签 :




置评

标题
正文
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
姓名
电邮地址
网站
记住我 是  否 

电邮地址将不会发表在公开网页上,您留下的电邮地址仅用于本文有新评论时通知您(以后可以随时拿掉).

回接到 http://www.searchfull.net:80/blog/addTrackBack.action?entry=1182654816271