Technical data

Setting Up a WebLogic Server Instance as a Windows Service
Administration Guide 2-31
When the Windows service checks the file size, if the file is larger than the
size you specify, it saves the file as
pathname-yyyy_mm_dd-hh_mm_ss. It
then creates a new file named
pathname. This new file, which contains all of
the headers that you specified originally, collects new standard out and
standard error messages.
If you specify
# ROTATION_TYPE = SIZE but do not include the other lines,
the Windows Service checks the size of the message file every 5 minutes. If
the file is larger than 1 megabytes, it rotates the file.
Printing Thread Dumps to Standard Out
To cause the WebLogic Server instance to print a thread dump to standard out, do
either of the following:
n Use the weblogic.Admin THREAD_DUMP command. For more information, refer
to “THREAD_DUMP” on page -24.
n Open a command prompt and enter the following command:
weblogic\bin\beasvc -dump -svcname:service-name
where
weblogic is the directory in which you installed WebLogic Server and
service-name is the Windows service that is running a server instance.
For example:
D:\bea\wlserver6.1\bin\beasvc -dump -svcname:mydomain_myserver
Adding Classes to the Classpath
The classpath is a declaration of the location of Java classes that a JVM can invoke.
When you install a server instance as a Windows service, the
installNTService.cmd script specifies all classes required to run a server instance.
If you want to extend WebLogic Server by adding your own Java classes, you must
add them to the classpath.
To add classes to the classpath:
1. Make a backup copy of
weblogic\config\mydomain\installNTService.cmd
(where
weblogic is the directory where WebLogic Server was installed and
mydomain is the domain you created when you installed WebLogic Server).
2. Open
installNTService.cmd in a text editor.
3. In the line that starts with
set CLASSPATH statement, add your Java classes.