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:eajdk141_02injava" -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Dweblogic
.Name=admin -Dweblogic.management.username=<username> -Dweblogic.management.
password=<password> -Dweblogic.ProductionModeEnabled=false -Djava.security.policy="e:ea
weblogic81serverlibweblogic.policy" weblogic.Server

Managed server

e:eajdk141_02injava" -client -Xms32m -Xmx200m -XX:MaxPermSize=128m
-Dweblogic.Name="server1" -Dweblogic.management.username=<username> -Dweblogic.management.
password=<password> -Dweblogic.management.server="http://127.0.0.1:7001" -Dweblogic.
ProductionModeEnabled=false -Djava.security.policy="e:eaweblogic81serverlibweblogic
.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
ParameterDescription
XmsMinimum 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.
XmxMaximum Java heap size.
Dweblogic.NameTarget server name.
Dweblogic.management.usernameAdmin server's username.
Dweblogic.management.passwordAdmin server's password.
Dweblogic.management.serverAdmin 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset