Sun Microsystems 820682310 Server User Manual


 
By default, all Enterprise Server log information is captured in the server.log le, typically
located in domain-dir/logs. Log Viewer is not available in Enterprise Server v3 Prelude. You
cannot view the server's log le or congure logging using the Administration Console. To view
log information, open the server.log le in a text editor. You can also use command-line le
viewing commands such as tail, grep,ormore. Logging is congured by editing the
logging.properties le, located by default in the same directory as the domain.xml le,
typically domain-dir/config.
Log levels such as SEVERE, WARNING, INFO , CONFIG, and others can be set to provide dierent
types and amounts of information. Each Enterprise Server module has its own logger, and each
logger has its own namespace. Log levels can be set globally for all loggers, or individually for
module-specic loggers.
See
Chapter 9, “Administering Logging,” in Sun GlassFish Enterprise Server v3 Prelude
Administration Guide
for complete details about logging. Also see the Sun GlassFish Enterprise
Server v3 Prelude Release Notes
for any known issues related to logging.
Monitoring the System
Monitoring is another helpful tool. It is the process of reviewing the statistics of a system to
improve performance or solve problems. By monitoring the state of various components and
services deployed in Enterprise Server, you can identify performance bottlenecks, predict
failures, perform root cause analysis, and ensure that everything is functioning as expected. For
more information about monitoring, see
Chapter 10, “Monitoring the Enterprise Server,” in
Sun GlassFish Enterprise Server v3 Prelude Administration Guide
.
Troubleshooting Tools
Several tools are available that can be used to collect information for troubleshooting purposes.
This section provides basic information about the following:
“Operating System Utilities” on page 17
“Stack Traces and Thread Dumps” on page 18
“VisualVM” on page 18
Operating System Utilities
Operating system utilities, such as pkginfo and showrev on Solaris and rpm on Linux, are
helpful in gathering system information.
The ps -ef command provides helpful information about processes that are running,
including their process identication numbers (PIDs).
TroubleshootingTools
Chapter1 • OverviewofEnterprise ServerTroubleshooting 17