使用SUN JDK 启动时要很长时间,但启动启来weblogic正常.
特征见下面标红部分,时间很长.
test01@linux-suse:~/bea/weblogic92/samples/domains/wl_server/bin> ./startWebLogic.sh
.
JAVA Memory arguments: -Xms 256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=/home/test01/bea/weblogic92/samples/server/examples/build/serverclasses:/home/test01/bea/patch_weblogic923/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/SDK/jdk/lib/tools.jar:/home/test01/bea/weblogic92/server/lib/weblogic_sp.jar:/home/test01/bea/weblogic92/server/lib/weblogic.jar:/home/test01/bea/weblogic92/server/lib/webservices.jar:::/home/test01/bea/weblogic92/common/eval/pointbase/lib/pbembedded51.jar:/home/test01/bea/weblogic92/common/eval/pointbase/lib/pbupgrade51.jar:/home/test01/bea/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home/test01/bea/weblogic92/server/lib/xqrl.jar::
.
PATH=/home/test01/bea/weblogic92/server/bin:/opt/SDK/jdk/jre/bin:/opt/SDK/jdk/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/SDK/jdk/bin:/opt/SDK/jdk/jre/bin:
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
starting weblogic with Java version:
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
Starting WLS with line:
/opt/SDK/jdk/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=/home/test01/bea/weblogic92 -Dwls.home=/home/test01/bea/weblogic92/server -Dwli.home=/home/test01/bea/weblogic92/integration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/test01/bea/patch_weblogic923/profiles/default/sysext_manifest_classpath -Dweblogic.Name=examplesServer -Djava.security.policy=/home/test01/bea/weblogic92/server/lib/weblogic.policy weblogic.Server
<2008-12-23 上午08时25分43秒 CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/home/test01/bea/weblogic92/platform/lib/p13n/p13n-schemas.jar:/home/test01/bea/weblogic92/platform/lib/p13n/p13n_common.jar:/home/test01/bea/weblogic92/platform/lib/p13n/p13n_system.jar:/home/test01/bea/weblogic92/platform/lib/wlp/netuix_common.jar:/home/test01/bea/weblogic92/platform/lib/wlp/netuix_schemas.jar:/home/test01/bea/weblogic92/platform/lib/wlp/netuix_system.jar:/home/test01/bea/weblogic92/platform/lib/wlp/wsrp-common.jar>
<2008-12-23 上午08时25分43秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_09-b03 from Sun Microsystems Inc.>
<2008-12-23 上午08时25分43秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3 Mon Mar 10 08:28:41 EDT 2008 1096261 >
<2008-12-23 上午08时36分52秒 CST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /home/test01/bea/license.bea>
解决办法:
这是SUN,JDK一个bug解决办法是在weblogic启动脚本里setDomainEnv.sh: 加入以下内容
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
export JAVA_OPTIONS