Custom arguments to set in Weblogic JVM

前端 未结 6 923
北荒
北荒 2020-12-10 03:09

I need a custom property to set per each server JVM in Weblogic. What is the better approach doing it?

I know we can specify the argments like below:

6条回答
  •  难免孤独
    2020-12-10 04:01

    Under bin directory edit setDomainEnv.sh find the below line:

    If USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS add the below lines and modify the values accordingly

    For Admin Server

    `if [ "${SERVER_NAME}" = "AdminServer" ] ; then
    USER_MEM_ARGS="-Xms256m -Xmx256m -XX:MaxPermSize=256m"
    MEM_ARGS="${USER_MEM_ARGS}"
    export MEM_ARGS
    fi`
    

    For Managed Server

    `if [ "${SERVER_NAME}" != "AdminServer" ] ; then
    USER_MEM_ARGS="-Xms512m -Xmx512m -XX:MaxPermSize=256m"
    MEM_ARGS="${USER_MEM_ARGS}"
    export MEM_ARGS
    fi`
    

提交回复
热议问题