故障现象
日 志 中 有 <BEA-000402>5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. You may want to alter your configuration.> 报 警 ,weblogic 性能低下。
分析过程
查看 weblogic 的标准输出日志,在启动阶段可以发现类似以下信息:
<Warning> <Store> <BEA-280109> <Unable to load the native wlfileio library for the persistent file store "store_name". The store will use buffered I/O. The store is still operating in a transactionally safe synchronous mode. See store open log messages for the requested and final write policies.>
说明Weblogic Native IO 启动失败。
此问题通常出现在 HP-UX 平台上,HP-UX 平台 32 位和64 位JDK 启动的区别是:64 位JDK 需要添加-d64 参数。如果使用32 位JDK 安装weblogic 软件,使用64 位JDK 启动 domain 中的 serverr 就会遇到这个问题。
解决方案
$WL_HOME/common/bin/commEnv.sh, 里面有设置 LD_LIBRARY_PATH,只需要修改这个脚本文件就可以解决了。
在 commEnv.sh 中有两个字符串的值需要修改, JAVA_USE_64BIT=true 和 SUN_ARCH_DATA_ MODEL="64"。