Wednesday, 1 April 2020

User Memory Arguments Settings in Weblogic 12c Domain

 Hi  Viewers,

This post will explain you, how to customize the memory arguments in weblogic 12c.


  1. Login into the your respecticve weblogic domain and go to the bin directory.
  2. Cat the setDomain.sh file to verfy the below lines are existed , if not copy from here and update the file.

    # Set user overrides, if available.
    if [ -f ${DOMAIN_HOME}/bin/setUserOverrides.sh ] ; then
            . ${DOMAIN_HOME}/bin/setUserOverrides.sh
    fi

      3. Next step, create the setUserOverrides.sh file inside bin directory.

      4. Add the following lines inside the setUserOverrides.sh file, in order to customize the memory                arguments for your domain admin server and managed servers.

       if [ "$SERVER_NAME" == "managed server name" ]; then

            MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=2048m"

            export MEM_ARGS

    elif [ "$SERVER_NAME" == "managed server name" ]; then

            MEM_ARGS="-Xms2048m -Xmx2048m -XX:MaxPermSize=2048m"

            export MEM_ARGS

    elif [ "$SERVER_NAME" == "AdminServer" ]; then

            MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"

            export MEM_ARGS

    fi


    Happy to share with you !!!.

    Thanks,

    Madhu




    Oracle Opatch utility 12c

     Hi Blog Viewers, This post will describes the how to apply single or multiple patches at a time. Prerequisites : Set the Oracle Home and Op...