WAS 6.0 Logs1
WAS 6.0 Logs1
Carla Sadtler
David Titzler
This paper contains information about the diagnostic data that is available in
WebSphere Application Server V6. It contains information about the location of
the data, how it is collected, and configuration options.
To configure the properties of these logs from the administrative console, select
Troubleshooting → Logs and Trace. Select the process whose logs you want
to configure, and then click JVM Logs. The General Properties window opens,
as shown in Figure 1.
All of these properties can be changed for both the SystemOut and the
SystemErr logs. You can choose to use the same properties for both logs, which
we recommend, or use different properties for them.
You can view the SystemOut and SystemErr files on the file system with a text
editor or you can view them within the administrative console. It might be useful
to view them in the administrative console if you need to view them from a
remote system. To view them in the administrative console, select the Runtime
tab and then click View (next to the SystemOut or SystemErr file name).
The entries in the output of the SystemOut.log are in the following format:
[7/12/05 14:46:00:264 EDT] 0000001a ApplicationMg A WSVR0221I: Application
started: adminconsole
The configuration of the trace file properties is very similar to the configuration of
the JVM logs. You want to ensure that Enable Log remains selected. For Trace
Output, we recommend that you always select File instead of Memory Buffer so
that the trace logs are easier to manage.
As with the JVM logs, we strongly recommend selecting Basic (the default value)
for the Trace Output Format. This makes the trace easier to read, and it is the
preferred format of the WebSphere Application Server support team.
When you view the trace properties in the administrative console, you notice that
there are two tabs, a Configuration tab and a Runtime tab. You can enable
tracing on either tab. The difference is that when you use the Configuration tab,
you must restart the WebSphere Application Server process before the tracing
begins. When you use the Runtime tab, tracing begins as soon as you click OK
or Apply. In many production environments, it is preferable to enable trace using
the Runtime tab so that you do not have to restart the WebSphere process.
After the trace properties are configured, you must decide which WebSphere
Application Server components to trace. To do this in the administrative console:
1. Select Troubleshooting → Logs and Trace.
2. Select the process whose trace logs you want to configure
3. Click Change Log Level Details.
As with the trace properties, the log level details can be set on the
Configuration tab or the Runtime tab.
In the Change Log Detail Levels screen (Figure 3 on page 8), you can select
which components and groups to trace.
The default log detail level is *=info. The log detail levels in WebSphere
Application Server V6 are configured differently than the trace specifications in
V5 and V5.1. If you use a V5 style trace specification as the log detail level in V6,
it is mapped to the most similar V6 log detail level. However, to ensure that the
correct tracing is enabled, we recommend only using the V6 log detail levels.
You can get a complete overview of the V6 log detail levels and how they relate
to the V5 and V5.1 trace specifications in the Log level settings section of the
WebSphere Information Center at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/
com.ibm.websphere.base.doc/info/aes/ae/utrb_loglevel.html
You can specify as many components and groups as you wish. You can view the
components and groups that can be traced in the administrative console.
However, the more components and groups you trace, the larger the trace output
will be. It is a good idea to decide on a specific log detail level before enabling a
trace.
After enabling the trace, clear out any old trace files from the
<WAS_install_root>/profiles/<profile>/logs/<server> directory. Then, if you
configured the trace properties and log detail level properties on the
Configuration tab, restart the application server or process that you want to trace.
If you configured the trace properties and log detail level on the Runtime tab, the
tracing starts immediately without restarting the process. At this point, you can
reproduce the problem and then disable tracing after you have reproduced it.
This helps ensure that the trace file does not grow too large and makes it easier
to find the time at which the problem occurs in the trace.
The trace output contains all of the messages that are also written to the
SystemOut.log as well as the trace events. The trace events are in the following
format:
[7/12/05 16:13:10:379 EDT] 00000032 DSConfigurati > getPooledConnection Entry
The text message is the data that is written to the trace output file. It is meant to
provide advanced debugging and troubleshooting information.
Parameters
Optionally, parameters can also be included in the trace entry. In the
example, there are no parameters.
You should always run the collector tool under the root or administrator user ID,
and it must be run from a directory outside of the <WAS_install_root> directory.
The resulting jar file is created in the current directory and the file name is
<host>-<cell>-<node>-<profile>-WASenv.jar. For example:
C:\tmp\ServerHost1-Cell01-CellManager01-Dmgr01-WASenv.jar
The resulting jar file is very useful to the WebSphere Application Server support
team and any others who are involved in the problem determination process. It
allows them to view quickly your WebSphere Application Server configuration
and see any errors or exceptions that have occurred.
You can find more information about the collector tool in the following
WebSphere Information Center items:
Gathering information with the Collector tool
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.
ibm.websphere.base.doc/info/aes/ae/ctrb_ct.html
Running the collector tool
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/
com.ibm.websphere.base.doc/info/aes/ae/ttrb_runct.html
Analyzing collector tool output
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/
com.ibm.websphere.base.doc/info/aes/ae/ctrb_readct.html
FFDC does not affect the performance of WebSphere Application Server and
should not be disabled. The FFDC logs will not, most likely, be useful in your
You can find more information about the FFDC feature in the WebSphere
Information Center item First failure data capture at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.
websphere.base.doc/info/aes/ae/ctrb_ffdc.html
Other logs
The following logs are not always useful for problem determination, but you might
find that on occasion they will be required.
The only configuration that is possible for the process logs is changing the
directory location or file names for the logs. You can do this in the administrative
console:
1. Select Troubleshooting → Logs and Trace.
2. Select the WebSphere Application Server process.
3. Select Process Logs.
You can find more information about the Log Analyzer in the WebSphere
Information Center item Log Analyzer at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.
websphere.base.doc/info/aes/ae/ctrb_jfla.html
It is also possible to view the events in the activity.log outside of the Log Analyzer
by using the showlog script in the <WAS_install_root>/bin directory.
You can find details about the usage of the showlog script in the WebSphere
Information Center item Showlog Script at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.
websphere.base.doc/info/aes/ae/rtrb_showlog.html
You can find more information about the service log in the WebSphere
Information Center item Viewing the service log at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.
websphere.base.doc/info/aes/ae/rtrb_viewsvclog.html
You can find the location of the log file by first looking at the Web server
configuration. This refers to the plug-in configuration file as shown in Example 1
on page 15. The plug-in configuration file then tells you where the log file is as
The default setting for LogLevel is Error, but you can set it to Trace to collect
significantly more information. Should you need to raise this problem with IBM
Support, they will request a plug-in trace.
You need to restart the IBM HTTP Server for this to take effect.
Enable trace logging in the Web server plug-in by setting the LogLevel directive
in the plugin-cfg.xml file as shown:
<Log LogLevel="Trace"
Name="c:\ibm\was6\plugins\logs\webserver1\http_plugin.log" />
You do not need to restart the IBM HTTP Server for this change to take effect.
Tip: The plug-in trace generates significant amounts of data. Make your test
as specific as possible, and run it in isolation to reduce the number of lines
generated.
Network trace
In rare cases, you might need to use a network protocol analyzer that allows you
to capture an iptrace. This tool can help you to determine where the problem lies.
WebSphere Application Server does not supply such a tool. However, there are
third-party tools available (for example, Ethereal from
http://www.ethereal.com/).
You can also increase the amount of data that is logged to this file by tracing the
wsadmin utility. To do so, update the following file:
<WAS_install_root>/properties/wsadmin.properties
Note that the information that is logged is of limited use because wsadmin calls
MBeans in the application server that is running the administrative console
application. So, you usually need to trace that application server as well.
Management scripts
You can manage WebSphere Application Server services using the supplied
management scripts. For example, each WebSphere Application Server
installation has a script to start an application server, a script to stop an
application server, and a script to show you the status of all application servers
defined in a profile. Each of these scripts writes its own log file into the server’s
logs directory. For example, the stopServer script writes stopServer.log into the
logs directory:
<WAS_install_root>/profiles/<profile>/logs/<server>/stopServer.log
Summary of logs
Table 1 on page 18 shows a summary of the WebSphere logs.
Installation tasks
Profile tasks
<WAS_install_root>/logs/waspro XML
file/wasprofile_create_<profile>.l
og.
WebSphere System.out stream IBM service log (aka activity log) Binary format.
+ messages that contain at View with Log Analyzer. Showlog
extended service information <profile_home>/logs/activity.log1 tool can convert the contents to a
text format.
Operational tasks
<profile_home>/logs/dmgr/:
startServer.log
stopServer.log
Configuration tasks
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in other countries. Consult
your local IBM representative for information on the products and services currently available in your area.
Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product, program, or service that
does not infringe any IBM intellectual property right may be used instead. However, it is the user's
responsibility to evaluate and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this document.
The furnishing of this document does not give you any license to these patents. You can send license
inquiries, in writing, to:
IBM Director of Licensing, IBM Corporation, North Castle Drive Armonk, NY 10504-1785 U.S.A.
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer
of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made
to the information herein; these changes will be incorporated in new editions of the publication. IBM may
make improvements and/or changes in the product(s) and/or the program(s) described in this publication at
any time without notice.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in any
manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the
materials for this IBM product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Information concerning non-IBM products was obtained from the suppliers of those products, their published
announcements or other publicly available sources. IBM has not tested those products and cannot confirm
the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on
the capabilities of non-IBM products should be addressed to the suppliers of those products.
This information contains examples of data and reports used in daily business operations. To illustrate them
as completely as possible, the examples include the names of individuals, companies, brands, and products.
All of these names are fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which illustrates programming
techniques on various operating platforms. You may copy, modify, and distribute these sample programs in
any form without payment to IBM, for the purposes of developing, using, marketing or distributing application
programs conforming to the application programming interface for the operating platform for which the
sample programs are written. These examples have not been thoroughly tested under all conditions. IBM,
therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy,
modify, and distribute these sample programs in any form without payment to IBM for the purposes of
developing, using, marketing, or distributing application programs conforming to IBM's application
programming interfaces.
Trademarks
The following terms are trademarks of the International Business Machines Corporation in the United States,
other countries, or both:
Java, JVM, and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States,
other countries, or both.
Windows, and the Windows logo are trademarks of Microsoft Corporation in the United States, other
countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other company, product, or service names may be trademarks or service marks of others.