Setting Java Parameters for Starting WebLogic Server

7 Tuning WebLogic Server 7-1 7 Tuning WebLogic Server The following sections describe how to tune WebLogic Server to match your application needs. ■ Section 7.1, Setting Java Parameters for Starting WebLogic Server ■ Section 7.2, Development vs. Production Mode Default Tuning Values ■ Section 7.4, Thread Management ■ Section 7.5, Tuning Network IO ■ Section 7.6, Setting Your Compiler Options ■ Section 7.7, Using WebLogic Server Clusters to Improve Performance ■ Section 7.8, Monitoring a WebLogic Server Domain ■ Section 7.9, Tuning Class and Resource Loading

7.1 Setting Java Parameters for Starting WebLogic Server

Java parameters must be specified whenever you start WebLogic Server. For simple invocations, this can be done from the command line with the weblogic.Server command. However, because the arguments needed to start WebLogic Server from the command line can be lengthy and prone to error, Oracle recommends that you incorporate the command into a script. To simply this process, you can modify the default values in the sample scripts that are provided with the WebLogic distribution to start WebLogic Server, as described in Specifying Java Options for a WebLogic Server Instance in Managing Server Startup and Shutdown for Oracle WebLogic Server. If you used the Configuration Wizard to create your domain, the WebLogic startup scripts are located in the domain-name directory where you specified your domain. By default, this directory is MW_HOME\user_projects\domain\domain-name, where MW_HOME is the Middleware Home directory containing the Oracle product installation, and domain-name is the name of the domain directory defined by the selected configuration template. You need to modify some default Java values in these scripts to fit your environment and applications. The important performance tuning parameters in these files are the JAVA_HOME parameter and the Java heap size parameters: ■ Change the value of the variable JAVA_HOME to the location of your JDK. For example: set JAVA_HOME=C:\Oracle\Middleware\jdk160_11 7-2 Performance and Tuning for Oracle WebLogic Server ■ For higher performance throughput, set the minimum java heap size equal to the maximum heap size. For example: JAVA_HOME\bin\java -server –Xms512m –Xmx512m -classpath CLASSPATH - See Section 5.3.4, Specifying Heap Size Values for details about setting heap size options.

7.2 Development vs. Production Mode Default Tuning Values