7.6.2.3 Configure WebLogic Memory Settings

To configure the WebLogic Memory Settings, follow these steps:

  1. Change the memory setting for Java Heap to -Xms512m -Xmx3072m in the setDomainEnv.sh file, which resides in the <DOMAIN_HOME>/bin directory and the CommEnv.sh file which resides in the common/bin directory
  2. Edit this file for customizing memory settings and garbage collector settings depending on the available hardware configuration.
    Example 1:
    if [ "${JAVA_VENDOR}" = "Sun" ] ; then WLS_MEM_ARGS_64BIT="-Xms512m -
    Xmx1024m"
    export WLS_MEM_ARGS_64BIT WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m"
    export WLS_MEM_ARGS_32BIT else WLS_MEM_ARGS_64BIT="-Xms512m -Xmx1024m"
    export WLS_MEM_ARGS_64BIT WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m"
    export WLS_MEM_ARGS_32BIT
    Example 2:
    JAVA_VM=
    MEM_ARGS="-Xms256m -Xmx1024m"