Sun Microsystems 820682310 manual Troubleshooting Tools, Monitoring the System

Models: 820682310

1 48
Download 48 pages 55.33 Kb
Page 17
Image 17
Monitoring the System

Troubleshooting Tools

By default, all Enterprise Server log information is captured in the server.log file, typically located in domain-dir/logs. Log Viewer is not available in Enterprise Server v3 Prelude. You cannot view the server's log file or configure logging using the Administration Console. To view log information, open the server.log file in a text editor. You can also use command-line file viewing commands such as tail, grep, or more. Logging is configured by editing the logging.properties file, located by default in the same directory as thedomain.xml file, typically domain-dir/config.

Log levels such as SEVERE, WARNING, INFO, CONFIG, and others can be set to provide different 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-specific 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 identification numbers (PIDs).

Chapter 1 • Overview of Enterprise Server Troubleshooting

17

Page 17
Image 17
Sun Microsystems 820682310 manual Troubleshooting Tools, Monitoring the System, Operating System Utilities