1 Use the WebLogic Server Administration Console to shut down the servers gracefully.
2 Open the setDomainEnv.sh file (or setDomainEnv.bat on Windows systems) for editing. You can find this file in the DOMAIN_HOME/bin directory.
3 Locate the IF statement for USER_MEM_ARGS and place the insertion point before that statement.
4 Set the -Xmx argument for USER_MEM_ARGS. The following list shows examples of how to set USER_MEM_ARGS for various operating systems:
Find this code and edit
# Set the -Xmx argument for USER_MEM_ARGS. Increasing the JVM java heap: Date 20160620: Lerato Motaung
if [ "${SERVER_NAME}" = "" ] ; then
SERVER_NAME="AdminServer"
USER_MEM_ARGS="-Xms4096m -Xmx4096m -XX:CompileThreshold=8000 -XX:MaxPermSize=4096m"
export SERVER_NAME also find this code and edit
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
# Set the -Xmx argument for USER_MEM_ARGS. Increasing the JVM java heap: Date 20160620: Lerato Motaung
USER_MEM_ARGS="-Xms4096m -Xmx4096m -XX:CompileThreshold=8000 -XX:MaxPermSize=4096m"
if [ "${USER_MEM_ARGS}" != "" ] ; then
MEM_ARGS="${USER_MEM_ARGS}"
export MEM_ARGS
1 After setting the parameter, save and close the file, then restart the Administration Server and Managed Servers for the changes to take effect.
2 In a scaled-out system, repeat these steps for each domain home. Note that if you scale out the system at a future point, then you must perform these steps for the new node (the settings are not copied to the new node's domain home).
Comments
Post a Comment