故障現(xiàn)象
日 志 中 有 <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 的標(biāo)準(zhǔn)輸出日志,在啟動階段可以發(fā)現(xiàn)類似以下信息:
<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 啟動失敗。
此問題通常出現(xiàn)在 HP-UX 平臺上,HP-UX 平臺 32 位和64 位JDK 啟動的區(qū)別是:64 位JDK 需要添加-d64 參數(shù)。如果使用32 位JDK 安裝weblogic 軟件,使用64 位JDK 啟動 domain 中的 serverr 就會遇到這個問題。
解決方案
$WL_HOME/common/bin/commEnv.sh, 里面有設(shè)置 LD_LIBRARY_PATH,只需要修改這個腳本文件就可以解決了。
在 commEnv.sh 中有兩個字符串的值需要修改, JAVA_USE_64BIT=true 和 SUN_ARCH_DATA_ MODEL="64"。