weblogic中间件集群分享(五)之weblogic启动管理节点

时间:2015-03-04 13:10:28   收藏:0   阅读:6131

一、管理服务器----认证管理

[sinova@localhost ~]$ cd/app/sinova/domains/base_domain/servers/AdminServer

[sinova@localhost AdminServer]$ mkdir security

[sinova@localhost AdminServer]$ cd security/

[sinova@localhost security]$ vi boot.properties

username=weblogic

password=weblogic010

二、创建目录【后面脚本会使用到】

mkdir -p /app/sinova/bin

mkdir -p /app/sinova/logs/www

三、编写管理服务器启动脚本【管理节点给1G内存】

1cd /app/sinova/bin

 

2vi restart-admin.sh

#!/bin/bash

DATE=`date +%Y%m%d`

USER_MEM_ARGS="-Xms1024m -Xmx1024m-XX:MaxPermSize=256m"

export USER_MEM_ARGS JAVA_OPTIONS

ps -ef | grep java | grep weblogic | grep AdminServer | awk‘{print $2}‘ | xargs kill -9 > /dev/null 2>&1

nohup /app/sinova/domains/base_domain/bin/startWebLogic.sh> /app/sinova/logs/www/admin-${DATE}.log 2>&1 &

 

3、chmod+x restart-admin.sh

 

4、执行 ./restart-admin.sh

 

5、登录控平台   http://192.168.101.166:7001/console               【用户:  weblogic 密码:  weblogic010




################华丽分隔线###############


附上:启动管理节点常见出错的3种情况

 

启动报错1【修改  vi/app/sinova/Oracle/wlserver_10.3/common/bin/commEnv.sh

Exception in thread "Timer-1"

Exception: java.lang.OutOfMemoryError thrown from theUncaughtExceptionHandler in thread "Timer-1"

Exception in thread "[STANDBY] ExecuteThread: ‘3‘ forqueue: ‘weblogic.kernel.Default (self-tuning)‘"

Exception: java.lang.OutOfMemoryError thrown from theUncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: ‘3‘ forqueue: ‘weblogic.kernel.Default (self-tuning)‘"

Exception in thread "DynamicListenThread[Default]"

Exception: java.lang.OutOfMemoryError thrown from theUncaughtExceptionHandler in thread "DynamicListenThread[Default]"

./startWebLogic.sh: line 175: 58635 Killed                  ${JAVA_HOME}/bin/java${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME}-Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS}${PROXY_SETTINGS} ${SERVER_CLASS}

 

 

修改:【第152行,原 JAVA_VM=-jrockit

148 # Set up JVM options base on value of JAVA_VENDOR

149 if [ "$PRODUCTION_MODE" = "true" ];then

150   case $JAVA_VENDORin

151   Oracle)

152     JAVA_VM=-server

153    MEM_ARGS="-Xms128m -Xmx256m"

 

 

 

 

 

启动报错2【修改 /etc/hosts,增加上本机IP127.0.0.1

<Jan 29, 2015 11:57:23 AM CST> <Error><Security> <BEA-090870> <The realm "myrealm" failed tobe loaded: weblogic.security.service.SecurityServiceException:java.lang.ExceptionInInitializerError.

weblogic.security.service.SecurityServiceException:java.lang.ExceptionInInitializerError

      atweblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)

      atweblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)

      atweblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)

      atweblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)

      atweblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)

      Truncated. see logfile for complete stacktrace

 

Caused By: java.lang.ExceptionInInitializerError

      atcom.octetstring.vde.util.guid.GuidGenerator.nextGuidInBytes(GuidGenerator.java:125)

      atcom.octetstring.vde.util.guid.Guid.<init>(Guid.java:84)

      atcom.octetstring.vde.backend.standard.BackendStandard.add(BackendStandard.java:379)

      atcom.octetstring.vde.backend.BackendHandler.add(BackendHandler.java:460)

      atcom.octetstring.vde.util.LDIF.importLDIF(LDIF.java:279)

      Truncated. see logfile for complete stacktrace

 

Caused By: java.lang.NullPointerException

      atjava.lang.System.arraycopy(Native Method)

      atcom.octetstring.vde.util.guid.GuidParamGenerator.generateNodeID(GuidParamGenerator.java:47)

      atcom.octetstring.vde.util.guid.GuidStateManager.initializeGUIDParameters(GuidStateManager.java:59)

      at com.octetstring.vde.util.guid.GuidStateManager.<init>(GuidStateManager.java:30)

      atcom.octetstring.vde.util.guid.GuidStateManager.<clinit>(GuidStateManager.java:23)

      Truncated. see logfile for complete stacktrace

>

<Jan 29, 2015 11:57:23 AM CST> <Notice> <Security><BEA-090082> <Security initializing using security realm myrealm.>

<Jan 29, 2015 11:57:23 AM CST> <Critical><WebLogicServer> <BEA-000362> <Server failed. Reason:

 

There are 1 nested errors:

 

weblogic.security.service.SecurityServiceRuntimeException:[Security:090399]Security Services Unavailable

      atweblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)

      atweblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)

      atweblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)

      atweblogic.security.SecurityService.start(SecurityService.java:141)

      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

      atweblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

      atweblogic.work.ExecuteThread.run(ExecuteThread.java:173)

 

 

 

 

 

 

启动报错3【内存不够,使用我编写的启动脚本就不会报错了】

<Feb 14, 2015 3:43:56 AM CST> <Error> <JMX><BEA-149500> <An exception occurred while registering the MBeancom.bea:ServerRuntime=AdminServer,Name=AdminServer,Type=SingleSignOnServicesRuntime.

java.lang.OutOfMemoryError: PermGen space

        atjava.lang.ClassLoader.defineClass1(Native Method)

        atjava.lang.ClassLoader.defineClass(ClassLoader.java:800)

        atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        atjava.net.URLClassLoader.defineClass(URLClassLoader.java:449)

        atjava.net.URLClassLoader.access$100(URLClassLoader.java:71)

        Truncated. seelog file for complete stacktrace

>

<Feb 14, 2015 3:43:58 AM CST> <Error> <JMX><BEA-149500> <An exception occurred while registering the MBeancom.bea:ServerRuntime=AdminServer,Name=DataRetirementWorkManager,Type=MaxThreadsConstraintRuntime.

java.lang.OutOfMemoryError: PermGen space

        atjava.lang.Class.getDeclaredConstructors0(Native Method)

        atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2493)

        atjava.lang.Class.getConstructor0(Class.java:2803)

        atjava.lang.Class.getDeclaredConstructor(Class.java:2053)

        atweblogic.management.provider.internal.BeanInfoAccessImpl.buildBeanInfo(BeanInfoAccessImpl.java:400)

        Truncated. seelog file for complete stacktrace


本文出自 “李鹏飞oracle” 博客,请务必保留此出处http://lipengfei666666.blog.51cto.com/6384154/1617146

评论(1
Huangjw 2017-11-14 18:48:50
请问第二种错误的解决办法具体怎么修改
1
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!