weblogic启动缓慢解决方案

(一)遇到场景

<2013-12-10 04?05ST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3  Mon Mar 10 08:28:41 EDT 2008 1096261 > 



ts  -Dweblogic.Name=AdminServer -Djava.security.policy=/data/bea/weblogic92/server/lib/weblogic.policy   weblogic.Server
<2013-12-10 04?18ST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/data/lcims/bea/weblogic92/platform/lib/p13n/p13n-schemas.jar:/data/lcims/bea/weblogic92/platform/lib/p13n/p13n_common.jar:/data/lcims/bea/weblogic92/platform/lib/p13n/p13n_system.jar:/data/lcims/bea/weblogic92/platform/lib/wlp/netuix_common.jar:/data/lcims/bea/weblogic92/platform/lib/wlp/netuix_schemas.jar:/data/lcims/bea/weblogic92/platform/lib/wlp/netuix_system.jar:/data/lcims/bea/weblogic92/platform/lib/wlp/wsrp-common.jar> 
<2013-12-10 04?18ST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-linux-ia32 from BEA Systems, Inc.> 
<2013-12-10 04?18ST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3  Mon Mar 10 08:28:41 EDT 2008 1096261 > 
 <2013-12-10 04?21ST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /data/lcims/bea/license.bea> 
<2013-12-10 04?21ST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2013-12-10 04?21ST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<2013-12-10 04?21ST> <Notice> <Log Management> <BEA-170019> <The server log file /data/lcims/bea/user_projects/domains/testdomain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.> 
<2013-12-10 04?21ST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<2013-12-10 04?21ST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<2013-12-10 04?21ST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2013-12-10 04?21ST> <Warning> <HTTP> <BEA-101339> <The context parameter: weblogic.httpd.inputCharset./* has been deprecated. Instead use the element: charset-params in weblogic.xml.> 
<2013-12-10 04?21ST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.> 
<2013-12-10 04?21ST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
<2013-12-10 04?21ST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 

<2013-12-10 04?21ST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias aa from the jks keystore file /root/zhengshu/keystore.jks.> 


weblogic启动到上面2个红色标注的地方,日志不滚动,一直处于停滞情况,要等好久才能往下执行。


(二)解决办法:

这是SUN,JDK一个bug解决办法是在weblogic启动脚本里setDomainEnv.sh: 加入以下内容

JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
export JAVA_OPTIONS


也可能你看到日志不太一样,也可以参考

http://blog.sina.com.cn/s/blog_4053302b0100b9uw.html



你可能感兴趣的:(weblogic启动缓慢解决方案)