[ Team LiB ] Previous Section Next Section

Creating Your Own Startup Scripts

To start WebLogic Server, you can create your own startup scripts. When creating your scripts, use the generated default scripts as a guide. There are three issues to address when creating start scripts: classpath, config.xml, and weblogic.Server command.

Ensure that you set your classpath properly to include the JDK certified for use with the WebLogic 8 series server, currently JDK 1.4.1_02. Ensure that server name used within your start scripts is reflected in your config.xml file, which is generated during your installation. Finally, pass the proper parameters to the weblogic.Server Java application that actually starts WebLogic Server as shown here

Admin server



e:\bea\jdk141_02\bin\java" -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Dweblogic
graphics/ccc.gif.Name=admin -Dweblogic.management.username=<username> -Dweblogic.management
graphics/ccc.gif.password=<password> -Dweblogic.ProductionModeEnabled=false -Djava.security.policy="e:\bea
graphics/ccc.gif\weblogic81\server\lib\weblogic.policy" weblogic.Server

Managed server



e:\bea\jdk141_02\bin\java" -client -Xms32m -Xmx200m -XX:MaxPermSize=128m
-Dweblogic.Name="server1" -Dweblogic.management.username=<username> -Dweblogic.management
graphics/ccc.gif.password=<password> -Dweblogic.management.server="http://127.0.0.1:7001" -Dweblogic
graphics/ccc.gif.ProductionModeEnabled=false -Djava.security.policy="e:\bea\weblogic81\server\lib\weblogic
graphics/ccc.gif.policy" weblogic.Server

Refer to Table 2.3 for descriptions of commonly used weblogic.Server parameters.

Table 2.3. Key Java and weblogic.Admin Parameters

Parameter

Description

Xms

Minimum Java heap size. For better performance, make this the same as the maximum Java heap size; set it to some large amount that's available.

Xmx

Maximum Java heap size.

Dweblogic.Name

Target server name.

Dweblogic.management.username

Admin server's username.

Dweblogic.management.password

Admin server's password.

Dweblogic.management.server

Admin server's address.

Further details about weblogic.Server parameters can be found on the BEA documentation site at http://e-docs.bea.com/wls/docs81/admin_ref/weblogicServer.html.

    [ Team LiB ] Previous Section Next Section