解决 weblogic jar包冲突 jar包优先级 内存不足问题 UUID问题

 

解决 weblogic jar包冲突

1.将需优先使用的jar包放到目录/bea/lib下。

2.打开文件${DOMAIN_HOME}/bin/setDomainEnv.sh。

   找到:

   WL_HOME="/bea/wlserver_10.3"

   export WL_HOME

   在该语句后增加:

PRE_CLASSPATH="/bea/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar:/bea/lib/antlr-2.7.7.jar:/bea/lib/commons-lang-2.6.jar"

export PRE_CLASSPATH

 

解决内存不足

1.打开文件${DOMAIN_HOME}/bin/setDomainEnv.sh

    1.1:找到位置:

MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=128m"

export MEM_MAX_PERM_SIZE_64BIT  

 

MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=128m"

export MEM_MAX_PERM_SIZE_32BIT

替换为:

MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=512m"

export MEM_MAX_PERM_SIZE_64BIT

 

MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=512m"

export MEM_MAX_PERM_SIZE_32BIT

 

   1.2:找到位置:

 

if [ "${JAVA_VENDOR}" = "Sun" ] ; then

WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"

export WLS_MEM_ARGS_64BIT

WLS_MEM_ARGS_32BIT="-Xms256m -Xmx512m"

export WLS_MEM_ARGS_32BIT

else

WLS_MEM_ARGS_64BIT="-Xms512m -Xmx512m"

export WLS_MEM_ARGS_64BIT

WLS_MEM_ARGS_32BIT="-Xms512m -Xmx512m"

export WLS_MEM_ARGS_32BIT

fi

改为

 

if [ "${JAVA_VENDOR}" = "Sun" ] ; then

WLS_MEM_ARGS_64BIT="-Xms1024m -Xmx2048m"

export WLS_MEM_ARGS_64BIT

WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx2048m"

export WLS_MEM_ARGS_32BIT

else

WLS_MEM_ARGS_64BIT="-Xms1024m -Xmx2048m"

export WLS_MEM_ARGS_64BIT

WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx2048m"

export WLS_MEM_ARGS_32BIT

fi

 

2.UUID问题

  jpa:kodo改为toplink

 

你可能感兴趣的:(weblogic)