Technical data

2 Starting and Stopping WebLogic Servers
2-6 Administration Guide
Starting the WebLogic Administration Server from the
Command Line
The WebLogic Server is a Java class file, and like any Java application, you can start
it with the
java command. The arguments needed to start the WebLogic Server from
the command line can be quite lengthy and typing it out whenever you need to start the
server can be tedious. To make sure that your startup commands are accurate, BEA
Systems recommends that you incorporate the command into a script that you can use
whenever you want to start a WebLogic Server.
The following arguments are required when starting the WebLogic Administration
Server from the
java command line:
n Specify the minimum and maximum values for Java heap memory.
For example, you may want to start the server with a default allocation of 64
megabytes of Java heap memory to the WebLogic Server. To do so, you can start
the server with the
java -ms64m and -mx64m options.
For best performance it is recommended that the minimum and maximum values
be the same so that the JVM does not resize the heap.
The values assigned to these parameters can dramatically affect the performance
of your WebLogic Server and are provided here only as general defaults. In a
production environment you should carefully consider the correct memory heap
size to use for your applications and environment.
n Set the java -classpath option.
The minimum content for this option is described under Setting the Classpath
Option.
n Specify the name of the server.
The domain configuration specifies configuration by server name. To specify the
name of the server on the command line, use the following argument:
-Dweblogic.Name=servername
The default value is myserver.
n Specify the listen address of the server.
If you want to run Managed Servers on other machines in the same domain (or
run the Administration Server and a Managed Server on a multi-homed