Weblogic 12c调整JVM大小(Linux)
weblogic server 都是运行在一个java虚拟机上 ,对weblogic的内存设置也就是对java虚拟机的内存设置
-Xms512m表示jvm内存下限为512m
-Xmx1024m表示jvm内存上限为1024m
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 cd /weblogic/wlser1221/user_projects/domains/base_domain/bin vi setDomainEnv.sh . ${WL_HOME} /../oracle_common/common/bin/commEnv.sh PATH="${DOMAIN_HOME} /bin${CLASSPATHSEP} ${PATH} " export PATH WLS_HOME="${WL_HOME} /server" export WLS_HOME WLS_MEM_ARGS_64BIT="-Xms512m -Xmx1024m" export WLS_MEM_ARGS_64BIT WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m" export WLS_MEM_ARGS_32BITif [ "${JAVA_VENDOR} " != "HP" ] ; then if [ "${VM_TYPE} " = "HotSpot" ] ; then WLS_MEM_ARGS_64BIT="-Xms512m -Xmx1024m" export WLS_MEM_ARGS_64BIT WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m" export WLS_MEM_ARGS_32BIT fi fi MEM_ARGS_64BIT="${WLS_MEM_ARGS_64BIT} " export MEM_ARGS_64BIT MEM_ARGS_32BIT="${WLS_MEM_ARGS_32BIT} " export MEM_ARGS_32BIT
保存修改后的文件,重启weblogic 先查看进程 ps -ef|grep java
杀掉进程 kill -9 进程ID
后台启动 nohup ./startWebLogic.sh &
蚂蚁🐜再小也是肉🥩!