weblogic 内存配置

修改weblogic 使用内存

修改位置:startWeblogic.sh

在最开头增加使用内存配置信息如下:

我的服务器配置 内存:32G   ,CPU:16  根据实际情况配置

#!/bin/sh
 
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
 
# --- Start Functions ---
 export USER_MEM_ARGS="-Xms4096m -Xmx4096m -Xmn2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m"
stopAll()
{
    # We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
    # STOP DEBUGGER (only if we started it)
    if [ "${specialFlag}" = "false" ] ; then
        if [ "${debugFlag}" = "true" ] ; then
            echo "Stopping the Weblogic Workshop debugger..."
            ${JAVA_HOME}/bin/java -classpath ${DEBUG_CLASSPATH} ${DBG_JAVA_OPTIONS} weblogic.debugging.engine.DbgMain -shutdown  > "${DOMAIN_HOME}/debuggerShutdown.log" 2>&1 
            echo "Debugger Stopped."
        fi
    fi
    # STOP POINTBASE (only if we started it)
    if [ "${pointbaseFlag}" = "true" ] ; then
        echo "Stopping Pointbase server..."
        ${WL_HOME}/common/bin/stopPointBase.sh -port=9093 -name=workshop  > "${DOMAIN_HOME}/pointbaseShutdown.log" 2>&1 
 
        echo "Pointbase server stopped."
    fi
}
原文地址:https://www.cnblogs.com/xiaojianblogs/p/7477507.html