weblogic内存、调试端口 常用设置

 

windows

 

setDomainEnv.cmd

set MEM_ARGS=-Xms768m -Xmx1024m -Xss2048k 

set MEM_PERM_SIZE=-XX:PermSize=256m

set MEM_MAX_PERM_SIZE=-XX:MaxPermSize=512m

startWebLogic.cmd

title 7001

rmdir /S/Q %DOMAIN_HOME%\servers\AdminServer\tmp

 

@REM added by mahh for eclipse remote debuge transport=dt_socket : 使用socket方式提供调试 address=17001: 调试端口为17001

set DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=17001,server=y,suspend=n

@REM end mahh

linux


lsof -i :7001

kill -9  `ps -ef | grep java | awk '{print $2}'`
LANG="zh_CN.GBK"
nohup /home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/env_9107_160407151157/D_TEMPLATE/bin/startWebLogic.sh > /root/mahh/9107.log  & #MAIN

startWebLogic.sh

echo =========================================================mahh-begin=================================================================
echo rm -rf ${DOMAIN_HOME}/servers/AdminServer/tmp/
rm -rf ${DOMAIN_HOME}/servers/AdminServer/tmp/
echo =========================================================mahh-end===================================================================

USER_MEM_ARGS="-D64 -Xms8192m -Xmx8192m -XX:MaxNewSize=2048m -XX:MaxPermSize=512m -Dweblogic.threadpool.MinPoolSize=100 -Dweblogic.threadpool.MaxPoolSize=1000 -Djava.awt.headless=true -Dfile.encoding=GBK -Ddefault.client.encoding=GBK -Dsun.jnu.encoding=GBK "

-XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSFullGCsBeforeCompaction=5 -XX:+PrintGC -Djava.awt.headless=true
 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页