IBM Software Services for Lotus Consulting Education Accelerated Value Program. Log Files. 2009 IBM Corporation

Similar documents
WebSphere Application Server V6: Diagnostic Data. It includes information about the following: JVM logs (SystemOut and SystemErr)

Tuning WebSphere Application Server ND 7.0. Royal Cyber Inc.

Troubleshooting WebSphere Application Server Start/Stop Issues

ITG Software Engineering

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Determine the process of extracting monitoring information in Sun ONE Application Server

SW5706 Application deployment problems

1 of 24 7/26/2011 2:48 PM

SOA Software: Troubleshooting Guide for WebSphere Application Server Agent

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

WebSphere Business Monitor V7.0 Installation and stand-alone server profile creation

SAS Marketing Automation 4.4. Unix Install Instructions for Hot Fix 44MA10

BIRT Application and BIRT Report Deployment Functional Specification

IBM WebSphere Server Administration

SOA Software: Troubleshooting Guide for Agents

WebSphere Application Server security auditing

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

IBM WebSphere Partner Gateway V6.2.1 Advanced and Enterprise Editions

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

IBM WEBSPHERE LOAD BALANCING SUPPORT FOR EMC DOCUMENTUM WDK/WEBTOP IN A CLUSTERED ENVIRONMENT

Deploying Intellicus Portal on IBM WebSphere

How To Improve Performance On An Asa 9.4 Web Application Server (For Advanced Users)

WebLogic Server Admin

WebSphere Application Server V8.5: Technical Overview Guide

Java VM monitoring and the Health Center API. William Smith

WebSphere Server Administration Course

DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER

Universal Event Monitor for SOA Reference Guide

This presentation will discuss how to troubleshoot different types of project creation issues with Information Server DataStage version 8.

IBM Support Assistant v5. Review and hands-on by Joseph

Tool - 1: Health Center

WebSphere Application Server V7: Deploying Applications

WEBLOGIC ADMINISTRATION

WebSphere Application Server V8.5.5 Serviceability and Performance Monitoring

Configuring Log Files and Filtering Log Messages for Oracle WebLogic Server c (12.1.3)

A Step-By-Step Guide to Configuring a WebSphere Portal v8.0 Cluster

Enhanced Connector Applications SupportPac VP01 for IBM WebSphere Business Events 3.0.0

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

Java Troubleshooting and Performance

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

How to use IBM HeapAnalyzer to diagnose Java heap issues

Enterprise Content Management System Monitor. Server Debugging Guide CENIT AG Bettighofer, Stefan

Course Description. Course Audience. Course Outline. Course Page - Page 1 of 5

WebSphere Business Monitor V7.0: Clustering Single cluster deployment environment pattern

SSO Plugin. Installation for BMC AR System. J System Solutions. Version 4.0

24x7 Scheduler Multi-platform Edition 5.2

DMZ Secure Proxy Environment setup for IP Forwarding

InfoSphere Master Data Management operational server v11.x OSGi best practices and troubleshooting guide

Configuring IBM WebSphere Application Server 6.1 to Support SAS 9.2 Web Applications

SOA Software API Gateway Appliance 7.1.x Administration Guide

IBM Software Group. SW5706 JVM Tools IBM Corporation 4.0. This presentation will act as an introduction to JVM tools.

Deploying to WebSphere Process Server and WebSphere Enterprise Service Bus

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

A Step-By-Step Guide to Configuring a WebSphere Portal v Dynamic Cluster

Enterprise Manager Performance Tips

WebSphere Application Server V7: Monitoring the Runtime

IBM WebSphere Application Server Version 7.0

Install guide for Websphere 7.0

Application Servers - BEA WebLogic. Installing the Application Server

SAS Marketing Optimization. Windows Installation Instructions for Hot Fix 51mo14

TIBCO Hawk SNMP Adapter Installation

Deploying a Logi Info Application on WAS

Using Tomcat with CA Clarity PPM

Chapter 1 - Web Server Management and Cluster Topology

Using SSH Secure FTP Client INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Fall 2008.

Also on the Performance tab, you will find a button labeled Resource Monitor. You can invoke Resource Monitor for additional analysis of the system.

WINDOWS PROCESSES AND SERVICES

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Kaltura Extension for IBM Connections Deployment Guide. Version: 1.0

Novell Access Manager

TIBCO LogLogic. Universal Collector (UC) User Guide. Software Release: November 2012

Troubleshooting. System History Log. System History Log Overview CHAPTER

Web services with WebSphere Studio: Deploy and publish

Enterprise Content Management System Monitor. How to deploy the JMX monitor application in WebSphere ND clustered environments. Revision 1.

Glassfish Architecture.

JBoss AS Administration Console User Guide. by Shelly McGowan and Ian Springer

An Oracle White Paper September Advanced Java Diagnostics and Monitoring Without Performance Overhead

vcenter Hyperic Configuration Guide

TIBCO Administrator User s Guide. Software Release March 2012

User and training guides and related documentation from Parametric Technology Corporation and its subsidiary companies (collectively "PTC") are

As shown, the emulator instance connected to adb on port 5555 is the same as the instance whose console listens on port 5554.

Securing SAS Web Applications with SiteMinder

Slide Index. Technical Support Training

Chapter 2 SYSTEM MANAGEMENT. SYS-ED/ Computer Education Techniques, Inc.

TDA - Thread Dump Analyzer

Automated Process Center Installation and Configuration Guide for UNIX

NGASI Shared-Runtime Manager Administration and User Guide WebAppShowcase DBA NGASI

Sophos Deployment Packager user guide. Product version: 1.2

Safewhere*ADFS2Logging

WebSphere Business Monitor V7.0 Configuring a remote CEI server

LANDESK Service Desk. Desktop Manager

AXIS 70U - Using Scan-to-File

Moving the TRITON Reporting Databases

edm RIE Export Plugin

Using weblock s Servlet Filters for Application-Level Security

Sample copy. Introduction To WebLogic Server Property of Web 10.3 Age Solutions Inc.

Unicenter NSM Integration for Remedy (v 1.0.5)

Enterprise Content Management System Monitor 5.1 Agent Debugging Guide Revision CENIT AG Author: Stefan Bettighofer

RoomWizard Synchronization Software Manual Installation Instructions

Transcription:

Log Files 2009 IBM Corporation

Goals Understand where to find log files Understand the purpose of various log files

Components and log files Look at logs, starting with the most likely component Review logs from other components that directly interact with it Data Flow Log Output Deployment Manager Java log files: Web server logs Web Server Plug-in Node Agent logs/dmgr logs/nodeagent SystemOut.log SystemErr.log native_stdout.log native_stderr.log server1 server2 http_plugin.log Database logs logs/server1 activity.log logs/server2

WebSphere logs: Overview Group Log Files (default names) Descriptions Service log activity.log Binary log file contains data from each JVM in a node, for analysis using Log Analyzer JVM logs Native process logs Embedded HTTP server logs SystemOut.log, SystemErr.log native_stdout.log, native_stderr.log http_access.log, http_error.log Contains all messages sent to the Java System.out and System.err streams. These are your main runtime log files. Contain messages sent to stdout and stderr from native code, including the JVM. Mainly used for verbosegc logging. Contain all requests to the embedded HTTP server. HTTP server plug-in log http_plugin.log Contains data about the operation of the HTTP server plug-in module. Command-line program logs startserver.log, addnode.log, <command>.log Contains data about the execution of individual command-line utilities System application & sample application logs <name>_deploy.txt, <name>_config.txt Deployment and configuration logs for each of the enterprise applications installed by the WAS installer.

Java Virtual Machine (JVM) logs Two log files per managed process Found in <PROFILE_HOME>/logs/<servername>/ directory by default SystemOut.log Contains logged messages and messages written to the System.out stream SystemErr.log Contains messages written to the System.err stream Good place to look for detailed information when there is a problem with an Application Server. Node Agent and Deployment Manager processes also write to JVM logs. You should look at these if the Node Agent or Deployment Manager is unable to start.

JVM logs (cont.) Log files are managed by the runtime Time-based or size-based rollover Can combine size and time rollover Can keep any number of historical files When logs roll over, previous filename is appended with date and time of roll over.

Configuring JVM logs From Servers > Application Servers > servername: Logging and Tracing > JVM Logs SystemOut and SystemErr logs configured from here Logs are self-managing Can roll over based on time or file size Number of historical log files is configurable

JVM logs: Basic log format <timestamp><threadid><shortname><eventtype>[classname][methodname]<message> [01/02/04 12:28:01:132 EDT] 5deeec25 WSRdbXaResour W CWWRA0302E: XAException occurred. Error code is: XAER_RMERR. Timestamp - Date and time of the event ThreadID - Identifier (in Hex) of thread that generated message ShortName - Abbreviated name of component that generated message EventType - Kind of message that was logged (see next slide) ClassName - Java class that logged message (optional) MethodName - Java method that logged the message (optional) Message ID- Identifies type of message and component (see Information Center for component IDs) It is suggested that you use the new component IDs Create the custom property com.ibm.websphere.logging.messageid.version on your Application Server, with a value of 6

JVM logs: Event types Indicates type or severity of message Types defined by Java logging specification ID Description ID Description F Fatal Message E Error Message W Warning Message A Audit Message I Informational Message C Configuration Message D Detail Message

Example Lotus Connections log entries Informational Warning [11/17/09 17:57:04:871 EST] 0000002c GroupLookup W com.ibm.lotus.connections.search.searchhandler.grouplookup warn CLFRW0134W: An error occurred while retrieving wiki groups for user E0EAF6F7-DAE7-4780-98B7-5A8A8C72AD70 from the wikis server. [11/17/09 18:01:00:677 EST] 00000021 IndexingNotif I CLFRW0042I: Lotus Connections indexing task 15min-search-indexing-task fired event TaskNotificationInfo.FIRING [11/17/09 18:16:01:777 EST] 00000021 IIndexingProc E com.ibm.lotus.connections.dashboard.search.index.impl.iindexingprocessimpl indexprocess CLFRW0027E: Error Indexing component files for search. [11/17/09 18:16:01:961 EST] 00000021 ServerToServe E org.apache.commons.logging.impl.jdk14logger error CLFRO0153E: remote service from this targeted URL 'https://lc.ibm.com:9450/wikis/seedlist/myserver? Start=0&Action=GetDocuments&Format=xml&SeedlistId=SeedlistId&Range=500' is not available! Error

Native process logs Native logs contain stderr and stdout messages from native code Log files do not rollover by default JVM command line parameters can be used to control rollover behavior -Xverbosegclog[:<file>[,<X>,<Y>]] Filenames are configurable under the Process Logs link in the Application Server's Logging and Tracing panel http://www.ibm.com/developerworks/java/jdk/diagnosis/ WAS 6.1 Diagnostic Guide 5.0 WAS 7.0 Diagnostic Guide 6.0

Looking for signs of trouble in native_stderr.log If you see these lines it means your JVM has crashed (I)DUMP0007 JVM Requesting System Dump using 'D:\core.20040817.131302.2168.dmp' (I)DUMP0010 System Dump written to D:\core.20040817.131302.2168.dmp If you see these lines it means your JVM requested a Java Dump (aka javacore). This does not necessarily represent a crash. It could also be done manually for diagnosing hangs or performance problems. (I)DUMP0007 JVM Requesting Java Dump using 'D:\javacore.20040817.131319.2168.txt' (I)DUMP0010 Java Dump written to D:\javacore.20040817.131319.2168.txt

Service log (activity.log) Binary-format log Contains system messages from all application servers and the node agent for a given node Contains messages produced by instrumented applications Configurable Under Logging and Tracing Select IBM Service Logs Located in <profile_root>/logs by default Viewable with Log Analyzer or the showlog command

Log Analyzer Graphical interface to the service log (activity.log) Color-codes error messages for easy browsing Compares error messages in the service log to a database of known problems Database can be updated with the latest symptoms using File > Update Database Good starting point when dealing with a new problem

Embedded HTTP server logs Embedded HTTP server can write data to access and error logs Access log writes data about every incoming HTTP request Error log only logs errors Similar to Apache/IHS logs Disabled by default

Embedded HTTP server logs (cont.) New Admin. Console panels for configuring embedded HTTP Server logs (access & error) Previously could only be configured by setting custom properties From main Application Server panel, click HTTP Error and NCSA Access Logging Access and error logs can be controlled separately When maximum file size is reached, oldest entries are pruned

HTTP server plug-in log Web server Plug-in writes data to a log file, separate from the HTTP Server logs Contains messages about startup and runtime events Useful for diagnosing communication problems between the plug-in and an Application Server

HTTP server plug-in log: Configuration Can be set to one of three levels: Error, Warn, or Trace Default is Error Trace has high overhead Configure using the properties page for your Web server in the Administrative Console

HTTP server plug-in log output [Thu Mar 04 15:05:27 2010] 00001210 00000684 - DEBUG: ws_common: webspherevhostmatch: Found a match '*:80' to 'vmpe01.swg.usma.ibm.com:80' in VhostGroup: default_host with score 1, exact match 0 [Thu Mar 04 15:05:27 2010] 00001210 00000684 - TRACE: ws_common: webspherevhostmatch: Comparing '*:9080' to 'vmpe01.swg.usma.ibm.com:80' in VhostGroup: default_host [Thu Mar 04 15:05:27 2010] 00001210 00000684 - DEBUG: ws_common: websphereurimatch: Found a match '/homepage' to '/homepage' in UriGroup: default_host_homepagecluster_uris with score 9, exact match 9 [Thu Mar 04 15:05:27 2010] 00001210 00000684 - TRACE: ws_common: websphereurimatch: uri length smaller than uri defs so skipping the rest [Thu Mar 04 15:05:27 2010] 00001210 00000684 - TRACE: mod_was_ap20_http: as_translate_name: WebSphere will handle: /homepage

Command-line utility logs Several command-line utilities write data to their own log files Logs appear in the logs directory for a particular profile by default Most utilities allow you to specify a log file name with a command-line option Examples: StartServer.log AddNode.log

The collector tool Used to gather data when asked by IBM support Intended to reduce the number of "round trips" between customers and IBM Support Gathers all relevant data about WebSphere Application Server and the environment Information collected into a jar file Logs, configuration files, Operating System data,... Files known to contain passwords have the passwords removed Licensing information not collected

Collector: Usage Create a temporary directory and make it your current directory Directory must be outside the WebSphere Application Server directory structure Will produce its output in the current working directory

Collector: Usage (cont.) Command: <WAS_ROOT>/bin/collector Gathers data about all servers on the node Command: <WAS_ROOT>/bin/collector servername Only gathers data about servername Command: <WAS_ROOT>/bin/collector -Summary Outputs a lightweight set of information to Collector_Summary.txt Operating system and WebSphere version information

Collector: Usage tips Log onto system as root or Administrator Ensure Java 1.2.2 or higher is available in the path Tool needs a JVM and also collects data about the JVM in which it is running If possible, run using the WebSphere-installed JVM Use fully-qualified path name if <WAS_ROOT>/bin is not in your PATH On a Windows system, ensure that regedit is in the path On a UNIX system, the path should contain: /bin, /sbin, /usr/bin, /usr/sbin

Summary Always start by thinking of the big picture Problems can be caused by any component Log files are your first clues Based on what you learn from the logs, there are several ways to dig deeper: Tracing Java thread dumps Java heap dumps Profiling and debugging

Components and log files Data Flow Log Output Deployment Manager Java log files: Web server logs Web Server Plug-in Node Agent logs/dmgr logs/nodeagent SystemOut.log SystemErr.log native_stdout.log native_stderr.log server1 server2 http_plugin.log Database logs logs/server1 activity.log logs/server2

References This presentation along with several others related to problem determination can be viewed at the following link: http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp? topic=/com.ibm.iea.was_v6/was/6.1/problemdetermination.html