SlideShare uma empresa Scribd logo
1 de 41
Baixar para ler offline
© 2015 IBM Corporation
Monitoring and Analytics with
the WebSphere Liberty
Profile
Don Bourne
Agenda
• Runtime Self-Checks
− Slow / Hung Request Detection
− Event Logs
• Performance Monitoring
– Monitor MXBeans
– Viewing Data in Jconsole
– Viewing Data in Admin Center
• Embedded Analytics
− Access Logs
− Message Logs / Binary Logs / FFDC
2
Runtime Self-Checks
Request Timing
 Which requests are slow?
 Why are they slow?
4
NEW IN FEBRUARY 2015 LIBERTY BETA
5
Request Timing – Concepts
 Built on a new request probe framework
– Tracks REQUESTS made to the
application server
• Requests have a unique request
ID
• Requests have a tree of events
– Builds a tree of EVENTS as each
request runs
• Events have a type that identifies
what kind of event it is
• Events have context info that
describes an instance of the event
• Events have a duration
Servlet service
EJB method
JDBC query
JDBC update
EJB method
A single request with a tree of events
RequestID: AAC9KLwFFXT_AAAAAAAAAAN
NEW IN FEBRUARY 2015 LIBERTY BETA
6
Request Timing – What does it do?
Slow requests
 Logs the request with the tree of events
 Logs the current stack for the thread the request is using
 Repeats 3 times
Hanging requests
 Logs the request with the tree of events
 Captures a series of 3 javacores
Noteworthy
 Does not attempt to abort requests
 Reports on work from a single thread
 Production-friendly
 Idle-friendly
NEW IN FEBRUARY 2015 LIBERTY BETA
7
Request Timing – Configuration
<featureManager>
<feature>requestTiming-1.0</feature>
</featureManager>
<requestTiming
slowRequestThreshold="10s"
hungRequestThreshold="600s"
includeContextInfo="true"
sampleRate="1"
<timing
type="websphere.servlet.execute"
slowRequestThreshold="20s"
hungRequestThreshold="900s"
/>
/>
NEW IN FEBRUARY 2015 LIBERTY BETA
DEMO
8
9
Request Timing - Output
Sample slow request detection output:
TRAS0112W: Request websphere.servlet.service|DayTrader Web | TradeScenarioServlet(AAC9KLwFFXT_AAAAAAAAAAN) has been
running on thread 0000006b for 1549.460ms. The following stack trace shows what this thread is currently doing.
<stack trace>
The following table shows the events that have run during this request.
Duration Operation
1552.012ms + websphere.servlet.service | DayTrader Web | TradeScenarioServlet
0.014ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean
30.714ms websphere.servlet.service | DayTrader Web | TradeAppServlet
0.010ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean
30.456ms websphere.servlet.service | DayTrader Web | /quote.jsp
28.903ms websphere.servlet.service | DayTrader Web | /displayQuote.jsp
0.194ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.CHANGE1, t0.COMPANYNAME, t0.H
1520.695ms + websphere.servlet.service | DayTrader Web | TradeAppServlet
0.013ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean
0.190ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.ADDRESS, t0.CREDITCARD, t0.EMAIL, t0
0.135ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.ACCOUNTID, t0.BALANCE, t0.CREATIONDAT
0.110ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.CHANGE1, t0.COMPANYNAME, t0.HIGH, t0
0.299ms websphere.datasource.psExecuteQuery | jdbc/NoTxTradeDataSource | SELECT KEYVAL FROM KEYGENEJB WHERE KEYNAME
0.571ms websphere.datasource.psExecuteUpdate | jdbc/NoTxTradeDataSource | UPDATE KEYGENEJB SET KEYVAL = ? WHERE KEYN
0.126ms websphere.datasource.psExecuteQuery | jdbc/NoTxTradeDataSource | SELECT KEYVAL FROM KEYGENEJB WHERE KEYNAME
0.286ms websphere.datasource.psExecuteUpdate | jdbc/NoTxTradeDataSource | UPDATE KEYGENEJB SET KEYVAL = ? WHERE KEYN
522.450ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | INSERT INTO orderejb (ORDERID, COMPLETIONDATE,
230.333ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | INSERT INTO holdingejb (HOLDINGID, PURCHASEDAT
0.936ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | UPDATE accountejb SET BALANCE = ? WHERE ACCOUN
NEW IN FEBRUARY 2015 LIBERTY BETA
10
Request Timing - Output
Sample hung request detection output:
TRAS0114W: Request AAAg7irff7c_AAAAAAAAAAA has been running on thread 000000c9 for 600579.325ms. The following table shows
the events that have run during this request.
<event tree>
CWWKE0067I: Java dump request received.
JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155505.13168.0001.txt' through
com.ibm.jvm.Dump.JavaDump
JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155505.13168.0001.txt
CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155505.13168.0001.txt
<1 minute passes>
CWWKE0067I: Java dump request received.
JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155605.13168.0002.txt' through
com.ibm.jvm.Dump.JavaDump
JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155605.13168.0002.txt
CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155605.13168.0002.txt
<1 minute passes>
CWWKE0067I: Java dump request received.
JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155705.13168.0003.txt' through
com.ibm.jvm.Dump.JavaDump
JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155705.13168.0003.txt
CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155705.13168.0003.txt
TRAS0115W: Request AAAg7irff7c_AAAAAAAAAAA, which was previously detected to be hung, has completed after 821583.742ms.
NEW IN FEBRUARY 2015 LIBERTY BETA
Event Logging
 Logs data at start and/or end of events
− Event type / Event context info1
− Event duration1
− Request ID1
 Can be configured to
− Log at entry, exit, or both
− Log only for specified list of event types
− Log only for events longer than a certain duration (for logs written at event
exit only)
 Log events will use log record extensions (filterable using binaryLog
command) for
− Type
− Context info
− Request ID
11
1Request and event details are provided by underlying Liberty Request Probe framework
NEW IN FEBRUARY 2015 LIBERTY BETA
Event Logging – Log Record Context
Key event logging fields are added to the LogRecordContext
 requestID
 type
 contextInfo
Fields from LogRecordContext are stored in log / trace records
when binary logging is used
The wlp/bin/binaryLog command can filter for records by extension:
binaryLog view myServer –-includeExtension="type=websphere.datasource.executeUpdate"
binaryLog view myServer –-includeExtension="type=websphere.datasource.executeUpdate"
--format=advanced
12
NEW IN FEBRUARY 2015 LIBERTY BETA
Event Logging – Configuration
13
<featureManager>
<feature>eventLogging-1.0</feature>
</featureManager>
<eventLogging
includeTypes="websphere.servlet.execute"
minDuration="500ms"
logMode="exit"
sampleRate="1"
includeContextInfo="true"
/>
NEW IN FEBRUARY 2015 LIBERTY BETA
DEMO
14
Event Logging
Sample event logging output (basic format):
Servlet:
[6/18/14 16:21:35:761 IST] 0000002a EventLoggingProbeExtension.class I BEGIN
requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.servlet.service # contextInfo=com.ibm.ws.request.timing.TestJDBC
[6/18/14 16:22:04:643 IST] 0000002a EventLoggingProbeExtension.class I END
requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.servlet.service # contextInfo=com.ibm.ws.request.timing.TestJDBC #
duration=2.614ms
JDBC:
[6/18/14 16:21:43:727 IST] 0000002a EventLoggingProbeExtension.class I BEGIN
requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table
cities (name varchar(50) not null, population int, county varchar(30))
[6/18/14 16:21:44:200 IST] 0000002a EventLoggingProbeExtension.class I END
requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table
cities (name varchar(50) not null, population int, county varchar(30)) # duration=0.231ms
Session:
[6/18/14 16:22:04:655 IST] 0000002a EventLoggingProbeExtension.class I BEGIN
requestID=AAADvUHkFwy-AAAAAAAAAAE # type=websphere.session.sessionReleased # contextInfo=default_host/jdbcTestPrj_3
[6/18/14 16:22:04:656 IST] 0000002a EventLoggingProbeExtension.class I END
requestID=AAADvUHkFwy-AAAAAAAAAAE # type=websphere.session.sessionReleased # contextInfo=default_host/jdbcTestPrj_3 #
duration=0.012ms
[note that the contextInfo for servlets includes servlet name, pathinfo and query string when that info is present in
the request]
15
NEW IN FEBRUARY 2015 LIBERTY BETA
Event Logging
Zooming in...(JDBC example)
requestID=AAADvUHkFwy-AAAAAAAAAAD
type=websphere.datasource.executeUpdate
contextInfo=jdbc/exampleDS | create table
cities (name varchar(50) not null,
population int, county varchar(30))
duration=0.231ms
16
[6/18/14 16:21:44:200 IST] 0000002a EventLoggingProbeExtension.class I END requestID=AAADvUHkFwy-
AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table cities (name varchar(50) not
null, population int, county varchar(30)) # duration=0.231ms
NEW IN FEBRUARY 2015 LIBERTY BETA
Performance Monitoring
Performance Monitoring
Focus Areas
 JVM Performance : Analysis on JVM Performance Data , GC data
 Application Performance : Servlet Usage and response time, Sessions
 WAS Containers : Usages of ThreadPools, ConnectionPools
monitor-1.0 feature (introduced in WAS85 Liberty Profile)
 Collects data from various Liberty components
 Data reporting using MXBeans
 MXBean data can be viewed with JConsole1 or any standard JDK client
 Much of the data can also be viewed from Liberty admin center tools
18
Performance Monitoring
JConsole (part of JDK)
 Graphical monitoring tool to monitor Java Virtual Machine (JVM) and java applications
 Comes as part of Java Development Kit (java/bin/jconsole)
 Connects to local or remote JVMs
 Interacts with JMX MBeans and MXBeans to get data or execute operations
 Provides a way to log counters into a CSV file
19
monitor-1.0
 The monitor-1.0 feature monitors the following components:
− JVM JvmStats MXBean
− Web applications ServletStats MXBean
− Thread pool ThreadPoolStats MXBean
− [8.5.5.0 or later] JAX-WS endpoints WebServiceStats MXBean
− [8.5.5.0 or later] Session management SessionStats MXBean
− [8.5.5.0 or later] ConnectionPool ConnectionPool MXBean
 All MXBeans in a collective can be accessed by connecting to the collective
controller using the JMX REST Connector and the RoutingContext MBean1
1see http://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/rwlp_jmx_routing.html
20
monitor-1.0
JvmStats
 Sample Object Name: WebSphere:type=JvmStats
− Heap
− FreeMemory
− UsedMemory
21
− ProcessCPU
− GcCount
− GcTime
− UpTime
monitor-1.0
ServletStats (1 MXBean per servlet)
 Sample Object Name: WebSphere:type=ServletStats,name=MyApp.MyServlet
− AppName
− ServletName
− RequestCount
− ResponseTime (nanoseconds)
22
− Description
− RequestCountDetails
− ResponseTimeDetails
monitor-1.0
ThreadPoolStats
 Sample Object Name: WebSphere:type=ThreadPoolStats,name=Default Executor
− ActiveThreads
− PoolSize
− PoolName
23
monitor-1.0
SessionStats (1 MXBean per web application)
 Sample Object Name: WebSphere:type=SessionStats,name=default_host/trade_lite
− CreateCount
− LiveCount
− ActiveCount
24
− InvalidatedCount
− InvalidatedCountbyTimeout
monitor-1.0
ConnectionPool (1 MXBean per connection pool)
 Sample Object Name: WebSphere:type=ConnectionPool,name=jdbc/TradeDataSource
− CreateCount
− DestroyCount
− ManagedConnectionCount
25
− WaitTime
− ConnectionHandleCount
− FreeConnectionCount
Monitoring Views in the Admin Center Explore
Tool
26
monitor-1.0
Traditional PMI Support
(for clients written to work with the full profile application server)
− monitoring data is available in PMI format (CountStatistics,
RangeStatistics, etc.) via “Perf” Mbean “WebSphere:*,type=perf”
− Existing clients will be able to work (changes required in
connectors)
 Use JMX Rest Connectors to connect to Liberty
 Retrieve all MBeans
 Query for MBean type=Perf
 Invoke standard methods exposed by “Perf” MBean
27
monitor-1.0 - Configuration
28
<featureManager>
<feature>monitor-1.0</feature>
</featureManager>
<monitor
// Property to enable or disable Traditional PMI way of reporting.
enableTraditionalPMI="false"
// Allows user to enable/disable monitors based on group name such as
// WebContainer,JVM,ThreadPool,Session,ConnectionPool,...
filter="Session"
/>
monitor-1.0
Performance
 Overhead is about 4%, when all components are monitored
 Overhead is lower when fewer components are monitored
29
Liberty Integrated Log
Analytics
31
Liberty Integrated Log Analytics
 Data and analytics based on content
from logs / trace / ffdc / access logs
Liberty (user apps)
AnalyticsCollector-1.0
AdminCenter
AnalyticsEngine-1.0
messages.log
trace.log
access.log
binary log
ffdc files
Index
kibana.war*
Admin Center Explore
Tool
Kibana (not included with Liberty)
NEW IN FEBRUARY 2015 LIBERTY BETA
32
Integrated Log Analytics – Configuration
<featureManager>
<feature>analyticsCollector-1.0</feature>
<feature>analyticsEngine-1.0</feature>
</featureManager>
<analyticsCollector
logLevel="INFO"
accessLogEnabled="true"
ffdcEnabled="true"
/>
<httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9085"
httpsPort="9448">
<accessLogging
filepath="${server.output.dir}/logs/http_defaultEndpoint_access.log"
logFormat="%h %u %t &quot;%r&quot; %s %b %D %{User-agent}i"
/>
</httpEndpoint>
NEW IN FEBRUARY 2015 LIBERTY BETA
DEMO
33
34
Integrated Log Analytics – Admin Center Views
Admin Center Explore Tool contains analytic views and monitoring data
NEW IN FEBRUARY 2015 LIBERTY BETA
35
Integrated Log Analytics – Sample Kibana Dashboard
We've experimented with deploying Kibana in the same server as our analytics engine
(Kibana is not included with Liberty)
NEW IN FEBRUARY 2015 LIBERTY BETA
Useful Links – Full Profile
36
Using High Performance Extensible Logging to troubleshoot applications
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.nd.multiplatform.doc%2Fae%2Fttrb_usinghpel.html
High Performance Extensible Logging (HPEL)
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v8/was/8.0/ProblemDetermination/WASv8_HPEL/player.html
System administration in WebSphere Application Server V8.5, Part 3
High Performance Extensible Logging (HPEL): http://www.ibm.com/developerworks/websphere/techjournal/1208_bourne/1208_bourne.html
WebSphere Application Server v8.5 Cross Component Trace
http://webspherecommunity.blogspot.ca/2012/07/websphere-application-server-v85-cross.html
Use Cross Component Trace (XCT) request Ids to see which log entries were generated by each request
http://www.youtube.com/watch?v=oXsfDoiNb5c
Use the IBM WebSphere Cross Component Trace Logviewer to view WebSphere Application Server log files
http://www.youtube.com/watch?v=qorwRZh4DgQ
High Performance Extensible Logging and Cross Component Trace Tech Video
https://www.youtube.com/watch?v=FKKfUdNux70
Configuring the memory leak policy
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/ttrb_configmemleak.html
Memory leaks in Java Platform, Enterprise Edition applications
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Fae%2Fctrb_memleakdetection.html
Configuring the hang detection policy (full profile)
http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.iseries.doc/ae/ttrb_confighangdet.html
Using sensitive log and trace guard
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.express.doc/ae/ctrb_sensitivelogtrace.html
Useful Links – Liberty Profile
37
Liberty Profile: Binary Logging
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.wlp.express.doc/ae/cwlp_HPELOverview.html
Binary logging for Liberty profile
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASV855_Binary_Logging/player.html?dmuid=2013
0807101913462846
Timed operations for Liberty
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASV855_Serviceability_TimedOperations/player.h
tml?dmuid=20130815082326115285
Lab: Liberty profile timed operations for JDBC
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASv855_Liberty_Timed_Operations_Lab.pdf?dmui
d=20130807102148029081
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASv855Labs_libtops.zip?dmuid=20130807102201
566285
Liberty Profile: Slow and hung request detection
http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_requesttiming.html
Liberty profile: Event Logging
http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_eventlogging.html
Liberty profile: Analytics
http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_analytics.html
Liberty monitoring feature
http://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html
Creating remote JMX connections in Liberty
https://developer.ibm.com/wasdev/docs/article_howto_remotejmx/
Configuring secure JMX connection to the Liberty profile
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.wlp.nd.doc%2Fae%2Ftwlp_admin_restconnector.html
Useful Links – Other
38
JVM
Writing Verbose GC to a Specified Log -Xverbosegclog in AIX, Linux and Windows
http://www-01.ibm.com/support/docview.wss?uid=swg21384096
PROBLEM DETERMINATION TOOLS
IBM Support Assistant
http://www.ibm.com/software/support/isa/
IBM Whole-system Analysis of Idle Time (WAIT)
http://wait.ibm.com
Memory Analyzer (MAT)
https://eclipse.org/mat/
EDUCATION AND TRAINING
IBM WebSphere Application Server V8.5.5 Problem Determination
http://www-304.ibm.com/jct03001c/services/learning/ites.wss/ca/en?pageType=course_description&courseCode=WA591CE
Support Technical Exchanges
http://www.ibm.com/support/entry/portal/Scheduled_tech_exchanges/Software/WebSphere/WebSphere_brand_support_(general)
Notices and Disclaimers
Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or
transmitted in any form without written permission from IBM.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
IBM.
Information in these presentations (including information relating to products that have not yet been announced by IBM) has been
reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM
shall have no responsibility to update this information. THIS document is distributed "AS IS" without any warranty, either express
or implied. In no event shall IBM be liable for any damage arising from the use of this information, including but not limited to, loss
of data, business interruption, loss of profit or loss of opportunity. IBM products and services are warranted according to the terms
and conditions of the agreements under which they are provided.
Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without
notice.
Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are
presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual
performance, cost, savings or other results in other operating environments may vary.
References in this document to IBM products, programs, or services does not imply that IBM intends to make such products,
programs or services available in all countries in which IBM operates or does business.
Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not
necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither
intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation.
It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal
counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s
business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or
represent or warrant that its services or products will ensure that the customer is in compliance with any law.
Notices and Disclaimers (con’t)
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 in connection with this
publication 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. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products
to interoperate with IBM’s products. IBM expressly disclaims all warranties, expressed or implied, including but not
limited to, the implied warranties of merchantability and fitness for a particular purpose.
The provision of the information contained herein is not intended to, and does not, grant any right or license under any
IBM patents, copyrights, trademarks or other intellectual property right.
• IBM, the IBM logo, ibm.com, Bluemix, Blueworks Live, CICS, Clearcase, DOORS®, Enterprise Document
Management System™, Global Business Services ®, Global Technology Services ®, Information on Demand,
ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™,
PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®,
pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, SoDA, SPSS, StoredIQ, Tivoli®, Trusteer®,
urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International
Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names
might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at
"Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
Thank You
Your Feedback is
Important!
Access the InterConnect 2015
Conference CONNECT Attendee
Portal to complete your session
surveys from your smartphone,
laptop or conference kiosk.

Mais conteúdo relacionado

Mais procurados

Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans Hitesh-Java
 
T-Beam Design by USD method-10.01.03.102
T-Beam Design by USD method-10.01.03.102T-Beam Design by USD method-10.01.03.102
T-Beam Design by USD method-10.01.03.102Sadia Mitu
 
Design of mat and combined footing
Design of mat and combined footingDesign of mat and combined footing
Design of mat and combined footingMd Faiz Ali
 
Footing design(09.02.03.096)
Footing design(09.02.03.096)Footing design(09.02.03.096)
Footing design(09.02.03.096)Zawad khalil
 
Introduction to Limit State Design
Introduction to Limit State DesignIntroduction to Limit State Design
Introduction to Limit State DesignAlamin Sikder
 
Collectors in the Wild
Collectors in the WildCollectors in the Wild
Collectors in the WildJosé Paumard
 
Creating Single Page Applications with Oracle Apex
Creating Single Page Applications with Oracle ApexCreating Single Page Applications with Oracle Apex
Creating Single Page Applications with Oracle ApexDick Dral
 
Gateshead dhruv
Gateshead dhruvGateshead dhruv
Gateshead dhruvDhruv Seth
 
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)Pratik Solanki
 
Application of plate girders in steel construction
Application of plate girders in steel constructionApplication of plate girders in steel construction
Application of plate girders in steel constructionHaider Jafferi
 

Mais procurados (14)

Deep foundation
Deep foundationDeep foundation
Deep foundation
 
Cast in situ Pile
Cast in situ PileCast in situ Pile
Cast in situ Pile
 
Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans Spring - Part 1 - IoC, Di and Beans
Spring - Part 1 - IoC, Di and Beans
 
T-Beam Design by USD method-10.01.03.102
T-Beam Design by USD method-10.01.03.102T-Beam Design by USD method-10.01.03.102
T-Beam Design by USD method-10.01.03.102
 
Design of mat and combined footing
Design of mat and combined footingDesign of mat and combined footing
Design of mat and combined footing
 
Footing design(09.02.03.096)
Footing design(09.02.03.096)Footing design(09.02.03.096)
Footing design(09.02.03.096)
 
Introduction to Limit State Design
Introduction to Limit State DesignIntroduction to Limit State Design
Introduction to Limit State Design
 
Collectors in the Wild
Collectors in the WildCollectors in the Wild
Collectors in the Wild
 
Creating Single Page Applications with Oracle Apex
Creating Single Page Applications with Oracle ApexCreating Single Page Applications with Oracle Apex
Creating Single Page Applications with Oracle Apex
 
Gateshead dhruv
Gateshead dhruvGateshead dhruv
Gateshead dhruv
 
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)
Pile Foundation by Pratik Solanki (tes.google.com/site/infodiplomacivil/)
 
Steeel
SteeelSteeel
Steeel
 
Application of plate girders in steel construction
Application of plate girders in steel constructionApplication of plate girders in steel construction
Application of plate girders in steel construction
 
Java bean
Java beanJava bean
Java bean
 

Destaque

Splunk WAS Overview
Splunk WAS OverviewSplunk WAS Overview
Splunk WAS Overviewsierrahotel
 
Was liberty at scale
Was liberty at scaleWas liberty at scale
Was liberty at scalesflynn073
 
Netwalk - Un piccolo ecommerce contro i colossi della rete
Netwalk - Un piccolo ecommerce contro i colossi della reteNetwalk - Un piccolo ecommerce contro i colossi della rete
Netwalk - Un piccolo ecommerce contro i colossi della reteFabio Fogolin
 
Giovanni Nicolia's Personal Persona
Giovanni Nicolia's Personal PersonaGiovanni Nicolia's Personal Persona
Giovanni Nicolia's Personal PersonaGiovanniNicolia
 
ENC 3250 Professional Writing: Midterm Reflection
ENC 3250 Professional Writing: Midterm ReflectionENC 3250 Professional Writing: Midterm Reflection
ENC 3250 Professional Writing: Midterm Reflectionelliotelliot
 
Kejang demam-neurology-2012
Kejang demam-neurology-2012Kejang demam-neurology-2012
Kejang demam-neurology-2012Agung Zukhruf
 
Baby rats2
Baby rats2Baby rats2
Baby rats2MrsT56
 
Strategic Challenges in the Arctic
Strategic Challenges in the ArcticStrategic Challenges in the Arctic
Strategic Challenges in the ArcticIna Ny Moe
 
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudie
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudieBiomekanisk testning af kørestolsrugbyatleter, Et pilotstudie
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudieWilliam Bond
 
Native power point2
Native power point2Native power point2
Native power point2MrsT56
 
Real grave encounters
Real grave encountersReal grave encounters
Real grave encountersellieschool
 

Destaque (20)

Splunk WAS Overview
Splunk WAS OverviewSplunk WAS Overview
Splunk WAS Overview
 
Was liberty at scale
Was liberty at scaleWas liberty at scale
Was liberty at scale
 
Isbd
IsbdIsbd
Isbd
 
M.P.M.
M.P.M.M.P.M.
M.P.M.
 
Netwalk - Un piccolo ecommerce contro i colossi della rete
Netwalk - Un piccolo ecommerce contro i colossi della reteNetwalk - Un piccolo ecommerce contro i colossi della rete
Netwalk - Un piccolo ecommerce contro i colossi della rete
 
Tie box
Tie boxTie box
Tie box
 
7 things to know about laser hair removal
7 things to know about laser hair removal7 things to know about laser hair removal
7 things to know about laser hair removal
 
Giovanni Nicolia's Personal Persona
Giovanni Nicolia's Personal PersonaGiovanni Nicolia's Personal Persona
Giovanni Nicolia's Personal Persona
 
ENC 3250 Professional Writing: Midterm Reflection
ENC 3250 Professional Writing: Midterm ReflectionENC 3250 Professional Writing: Midterm Reflection
ENC 3250 Professional Writing: Midterm Reflection
 
Kejang demam-neurology-2012
Kejang demam-neurology-2012Kejang demam-neurology-2012
Kejang demam-neurology-2012
 
Blog
BlogBlog
Blog
 
Baby rats2
Baby rats2Baby rats2
Baby rats2
 
Strategic Challenges in the Arctic
Strategic Challenges in the ArcticStrategic Challenges in the Arctic
Strategic Challenges in the Arctic
 
Updated_Cv1
Updated_Cv1 Updated_Cv1
Updated_Cv1
 
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudie
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudieBiomekanisk testning af kørestolsrugbyatleter, Et pilotstudie
Biomekanisk testning af kørestolsrugbyatleter, Et pilotstudie
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
MU access Award presentation.
MU access Award presentation.MU access Award presentation.
MU access Award presentation.
 
인터렉1
인터렉1인터렉1
인터렉1
 
Native power point2
Native power point2Native power point2
Native power point2
 
Real grave encounters
Real grave encountersReal grave encounters
Real grave encounters
 

Semelhante a Monitoring and analytics with was liberty

Live Streaming & Server Sent Events
Live Streaming & Server Sent EventsLive Streaming & Server Sent Events
Live Streaming & Server Sent Eventstkramar
 
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...HostedbyConfluent
 
High Availability by Design
High Availability by DesignHigh Availability by Design
High Availability by DesignDavid Prinzing
 
RichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitRichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitbalunasj
 
Sherlock Homepage - A detective story about running large web services - NDC ...
Sherlock Homepage - A detective story about running large web services - NDC ...Sherlock Homepage - A detective story about running large web services - NDC ...
Sherlock Homepage - A detective story about running large web services - NDC ...Maarten Balliauw
 
Sherlock Homepage (Maarten Balliauw)
Sherlock Homepage (Maarten Balliauw)Sherlock Homepage (Maarten Balliauw)
Sherlock Homepage (Maarten Balliauw)Visug
 
Sherlock Homepage - A detective story about running large web services (VISUG...
Sherlock Homepage - A detective story about running large web services (VISUG...Sherlock Homepage - A detective story about running large web services (VISUG...
Sherlock Homepage - A detective story about running large web services (VISUG...Maarten Balliauw
 
Solving anything in VCL
Solving anything in VCLSolving anything in VCL
Solving anything in VCLFastly
 
Oracle Drivers configuration for High Availability
Oracle Drivers configuration for High AvailabilityOracle Drivers configuration for High Availability
Oracle Drivers configuration for High AvailabilityLudovico Caldara
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performanceEngine Yard
 
Maximizer 2018 API training
Maximizer 2018 API trainingMaximizer 2018 API training
Maximizer 2018 API trainingMurylo Batista
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesChris Bailey
 
Dropwizard Introduction
Dropwizard IntroductionDropwizard Introduction
Dropwizard IntroductionAnthony Chen
 
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드confluent
 
Monitoring und Metriken im Wunderland
Monitoring und Metriken im WunderlandMonitoring und Metriken im Wunderland
Monitoring und Metriken im WunderlandD
 
Real World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS ApplicationReal World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS ApplicationBen Hall
 

Semelhante a Monitoring and analytics with was liberty (20)

Otimizando seu projeto Rails
Otimizando seu projeto RailsOtimizando seu projeto Rails
Otimizando seu projeto Rails
 
Live Streaming & Server Sent Events
Live Streaming & Server Sent EventsLive Streaming & Server Sent Events
Live Streaming & Server Sent Events
 
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...
What is the State of my Kafka Streams Application? Unleashing Metrics. | Neil...
 
Dwr
DwrDwr
Dwr
 
High Availability by Design
High Availability by DesignHigh Availability by Design
High Availability by Design
 
RichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitRichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummit
 
Sherlock Homepage - A detective story about running large web services - NDC ...
Sherlock Homepage - A detective story about running large web services - NDC ...Sherlock Homepage - A detective story about running large web services - NDC ...
Sherlock Homepage - A detective story about running large web services - NDC ...
 
Node.js
Node.jsNode.js
Node.js
 
Sherlock Homepage (Maarten Balliauw)
Sherlock Homepage (Maarten Balliauw)Sherlock Homepage (Maarten Balliauw)
Sherlock Homepage (Maarten Balliauw)
 
Sherlock Homepage - A detective story about running large web services (VISUG...
Sherlock Homepage - A detective story about running large web services (VISUG...Sherlock Homepage - A detective story about running large web services (VISUG...
Sherlock Homepage - A detective story about running large web services (VISUG...
 
Solving anything in VCL
Solving anything in VCLSolving anything in VCL
Solving anything in VCL
 
Oracle Drivers configuration for High Availability
Oracle Drivers configuration for High AvailabilityOracle Drivers configuration for High Availability
Oracle Drivers configuration for High Availability
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performance
 
Maximizer 2018 API training
Maximizer 2018 API trainingMaximizer 2018 API training
Maximizer 2018 API training
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination Features
 
Dropwizard Introduction
Dropwizard IntroductionDropwizard Introduction
Dropwizard Introduction
 
PDC Highlights
PDC HighlightsPDC Highlights
PDC Highlights
 
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
 
Monitoring und Metriken im Wunderland
Monitoring und Metriken im WunderlandMonitoring und Metriken im Wunderland
Monitoring und Metriken im Wunderland
 
Real World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS ApplicationReal World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS Application
 

Mais de sflynn073

Iag api management architect presentation
Iag   api management architect presentationIag   api management architect presentation
Iag api management architect presentationsflynn073
 
API Management architect presentation
API Management architect presentationAPI Management architect presentation
API Management architect presentationsflynn073
 
Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.sflynn073
 
SAP guided workflow in IBM BPM
SAP guided workflow in IBM BPMSAP guided workflow in IBM BPM
SAP guided workflow in IBM BPMsflynn073
 
Sap guided workflow in ibm bpm
Sap guided workflow in ibm bpmSap guided workflow in ibm bpm
Sap guided workflow in ibm bpmsflynn073
 
Ibm odm fraud detection & management system
Ibm odm   fraud detection & management systemIbm odm   fraud detection & management system
Ibm odm fraud detection & management systemsflynn073
 
IBM BPM Case Manager for knowledge workers
IBM BPM Case Manager for knowledge workersIBM BPM Case Manager for knowledge workers
IBM BPM Case Manager for knowledge workerssflynn073
 
How Nationwide Insurance use IBM Decision Manager and BPM
How Nationwide Insurance use IBM Decision Manager and BPM How Nationwide Insurance use IBM Decision Manager and BPM
How Nationwide Insurance use IBM Decision Manager and BPM sflynn073
 
IBM BPM off prem options
IBM BPM off prem options IBM BPM off prem options
IBM BPM off prem options sflynn073
 
Api management update for optus
Api management update for optusApi management update for optus
Api management update for optussflynn073
 
Data power use cases
Data power use casesData power use cases
Data power use casessflynn073
 
Whats new in data power
Whats new in data powerWhats new in data power
Whats new in data powersflynn073
 
Whats new in was liberty security and cloud readiness
Whats new in was liberty   security and cloud readinessWhats new in was liberty   security and cloud readiness
Whats new in was liberty security and cloud readinesssflynn073
 
Was liberty in deployments
Was liberty in deploymentsWas liberty in deployments
Was liberty in deploymentssflynn073
 
Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352sflynn073
 
Dev ops tools and was liberty profile
Dev ops tools and was liberty profileDev ops tools and was liberty profile
Dev ops tools and was liberty profilesflynn073
 
Was liberty elastic clusters and centralised admin
Was liberty   elastic clusters and centralised adminWas liberty   elastic clusters and centralised admin
Was liberty elastic clusters and centralised adminsflynn073
 
Was liberty profile and docker
Was liberty profile and dockerWas liberty profile and docker
Was liberty profile and dockersflynn073
 
Was migration benefits, planning, best practices
Was migration benefits, planning, best practicesWas migration benefits, planning, best practices
Was migration benefits, planning, best practicessflynn073
 
Dev ops with liberty, maven and chef
Dev ops with liberty, maven and chefDev ops with liberty, maven and chef
Dev ops with liberty, maven and chefsflynn073
 

Mais de sflynn073 (20)

Iag api management architect presentation
Iag   api management architect presentationIag   api management architect presentation
Iag api management architect presentation
 
API Management architect presentation
API Management architect presentationAPI Management architect presentation
API Management architect presentation
 
Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.Common DataPower use cases, incl Caching with XC-10 appliance.
Common DataPower use cases, incl Caching with XC-10 appliance.
 
SAP guided workflow in IBM BPM
SAP guided workflow in IBM BPMSAP guided workflow in IBM BPM
SAP guided workflow in IBM BPM
 
Sap guided workflow in ibm bpm
Sap guided workflow in ibm bpmSap guided workflow in ibm bpm
Sap guided workflow in ibm bpm
 
Ibm odm fraud detection & management system
Ibm odm   fraud detection & management systemIbm odm   fraud detection & management system
Ibm odm fraud detection & management system
 
IBM BPM Case Manager for knowledge workers
IBM BPM Case Manager for knowledge workersIBM BPM Case Manager for knowledge workers
IBM BPM Case Manager for knowledge workers
 
How Nationwide Insurance use IBM Decision Manager and BPM
How Nationwide Insurance use IBM Decision Manager and BPM How Nationwide Insurance use IBM Decision Manager and BPM
How Nationwide Insurance use IBM Decision Manager and BPM
 
IBM BPM off prem options
IBM BPM off prem options IBM BPM off prem options
IBM BPM off prem options
 
Api management update for optus
Api management update for optusApi management update for optus
Api management update for optus
 
Data power use cases
Data power use casesData power use cases
Data power use cases
 
Whats new in data power
Whats new in data powerWhats new in data power
Whats new in data power
 
Whats new in was liberty security and cloud readiness
Whats new in was liberty   security and cloud readinessWhats new in was liberty   security and cloud readiness
Whats new in was liberty security and cloud readiness
 
Was liberty in deployments
Was liberty in deploymentsWas liberty in deployments
Was liberty in deployments
 
Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352Was l iberty for java batch and jsr352
Was l iberty for java batch and jsr352
 
Dev ops tools and was liberty profile
Dev ops tools and was liberty profileDev ops tools and was liberty profile
Dev ops tools and was liberty profile
 
Was liberty elastic clusters and centralised admin
Was liberty   elastic clusters and centralised adminWas liberty   elastic clusters and centralised admin
Was liberty elastic clusters and centralised admin
 
Was liberty profile and docker
Was liberty profile and dockerWas liberty profile and docker
Was liberty profile and docker
 
Was migration benefits, planning, best practices
Was migration benefits, planning, best practicesWas migration benefits, planning, best practices
Was migration benefits, planning, best practices
 
Dev ops with liberty, maven and chef
Dev ops with liberty, maven and chefDev ops with liberty, maven and chef
Dev ops with liberty, maven and chef
 

Monitoring and analytics with was liberty

  • 1. © 2015 IBM Corporation Monitoring and Analytics with the WebSphere Liberty Profile Don Bourne
  • 2. Agenda • Runtime Self-Checks − Slow / Hung Request Detection − Event Logs • Performance Monitoring – Monitor MXBeans – Viewing Data in Jconsole – Viewing Data in Admin Center • Embedded Analytics − Access Logs − Message Logs / Binary Logs / FFDC 2
  • 4. Request Timing  Which requests are slow?  Why are they slow? 4 NEW IN FEBRUARY 2015 LIBERTY BETA
  • 5. 5 Request Timing – Concepts  Built on a new request probe framework – Tracks REQUESTS made to the application server • Requests have a unique request ID • Requests have a tree of events – Builds a tree of EVENTS as each request runs • Events have a type that identifies what kind of event it is • Events have context info that describes an instance of the event • Events have a duration Servlet service EJB method JDBC query JDBC update EJB method A single request with a tree of events RequestID: AAC9KLwFFXT_AAAAAAAAAAN NEW IN FEBRUARY 2015 LIBERTY BETA
  • 6. 6 Request Timing – What does it do? Slow requests  Logs the request with the tree of events  Logs the current stack for the thread the request is using  Repeats 3 times Hanging requests  Logs the request with the tree of events  Captures a series of 3 javacores Noteworthy  Does not attempt to abort requests  Reports on work from a single thread  Production-friendly  Idle-friendly NEW IN FEBRUARY 2015 LIBERTY BETA
  • 7. 7 Request Timing – Configuration <featureManager> <feature>requestTiming-1.0</feature> </featureManager> <requestTiming slowRequestThreshold="10s" hungRequestThreshold="600s" includeContextInfo="true" sampleRate="1" <timing type="websphere.servlet.execute" slowRequestThreshold="20s" hungRequestThreshold="900s" /> /> NEW IN FEBRUARY 2015 LIBERTY BETA
  • 9. 9 Request Timing - Output Sample slow request detection output: TRAS0112W: Request websphere.servlet.service|DayTrader Web | TradeScenarioServlet(AAC9KLwFFXT_AAAAAAAAAAN) has been running on thread 0000006b for 1549.460ms. The following stack trace shows what this thread is currently doing. <stack trace> The following table shows the events that have run during this request. Duration Operation 1552.012ms + websphere.servlet.service | DayTrader Web | TradeScenarioServlet 0.014ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean 30.714ms websphere.servlet.service | DayTrader Web | TradeAppServlet 0.010ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean 30.456ms websphere.servlet.service | DayTrader Web | /quote.jsp 28.903ms websphere.servlet.service | DayTrader Web | /displayQuote.jsp 0.194ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.CHANGE1, t0.COMPANYNAME, t0.H 1520.695ms + websphere.servlet.service | DayTrader Web | TradeAppServlet 0.013ms websphere.session.getAttribute | R-ObCtcDfR8Zd9riQEMCh6R | uidBean 0.190ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.ADDRESS, t0.CREDITCARD, t0.EMAIL, t0 0.135ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.ACCOUNTID, t0.BALANCE, t0.CREATIONDAT 0.110ms websphere.datasource.psExecuteQuery | jdbc/TradeDataSource | SELECT t0.CHANGE1, t0.COMPANYNAME, t0.HIGH, t0 0.299ms websphere.datasource.psExecuteQuery | jdbc/NoTxTradeDataSource | SELECT KEYVAL FROM KEYGENEJB WHERE KEYNAME 0.571ms websphere.datasource.psExecuteUpdate | jdbc/NoTxTradeDataSource | UPDATE KEYGENEJB SET KEYVAL = ? WHERE KEYN 0.126ms websphere.datasource.psExecuteQuery | jdbc/NoTxTradeDataSource | SELECT KEYVAL FROM KEYGENEJB WHERE KEYNAME 0.286ms websphere.datasource.psExecuteUpdate | jdbc/NoTxTradeDataSource | UPDATE KEYGENEJB SET KEYVAL = ? WHERE KEYN 522.450ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | INSERT INTO orderejb (ORDERID, COMPLETIONDATE, 230.333ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | INSERT INTO holdingejb (HOLDINGID, PURCHASEDAT 0.936ms websphere.datasource.psExecuteUpdate | jdbc/TradeDataSource | UPDATE accountejb SET BALANCE = ? WHERE ACCOUN NEW IN FEBRUARY 2015 LIBERTY BETA
  • 10. 10 Request Timing - Output Sample hung request detection output: TRAS0114W: Request AAAg7irff7c_AAAAAAAAAAA has been running on thread 000000c9 for 600579.325ms. The following table shows the events that have run during this request. <event tree> CWWKE0067I: Java dump request received. JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155505.13168.0001.txt' through com.ibm.jvm.Dump.JavaDump JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155505.13168.0001.txt CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155505.13168.0001.txt <1 minute passes> CWWKE0067I: Java dump request received. JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155605.13168.0002.txt' through com.ibm.jvm.Dump.JavaDump JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155605.13168.0002.txt CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155605.13168.0002.txt <1 minute passes> CWWKE0067I: Java dump request received. JVMDUMP034I User requested Java dump using 'd:wlpusrserverss1javacore.20150220.155705.13168.0003.txt' through com.ibm.jvm.Dump.JavaDump JVMDUMP010I Java dump written to d:wlpusrserverss1javacore.20150220.155705.13168.0003.txt CWWKE0068I: Java dump created: d:wlpusrserverss1javacore.20150220.155705.13168.0003.txt TRAS0115W: Request AAAg7irff7c_AAAAAAAAAAA, which was previously detected to be hung, has completed after 821583.742ms. NEW IN FEBRUARY 2015 LIBERTY BETA
  • 11. Event Logging  Logs data at start and/or end of events − Event type / Event context info1 − Event duration1 − Request ID1  Can be configured to − Log at entry, exit, or both − Log only for specified list of event types − Log only for events longer than a certain duration (for logs written at event exit only)  Log events will use log record extensions (filterable using binaryLog command) for − Type − Context info − Request ID 11 1Request and event details are provided by underlying Liberty Request Probe framework NEW IN FEBRUARY 2015 LIBERTY BETA
  • 12. Event Logging – Log Record Context Key event logging fields are added to the LogRecordContext  requestID  type  contextInfo Fields from LogRecordContext are stored in log / trace records when binary logging is used The wlp/bin/binaryLog command can filter for records by extension: binaryLog view myServer –-includeExtension="type=websphere.datasource.executeUpdate" binaryLog view myServer –-includeExtension="type=websphere.datasource.executeUpdate" --format=advanced 12 NEW IN FEBRUARY 2015 LIBERTY BETA
  • 13. Event Logging – Configuration 13 <featureManager> <feature>eventLogging-1.0</feature> </featureManager> <eventLogging includeTypes="websphere.servlet.execute" minDuration="500ms" logMode="exit" sampleRate="1" includeContextInfo="true" /> NEW IN FEBRUARY 2015 LIBERTY BETA
  • 15. Event Logging Sample event logging output (basic format): Servlet: [6/18/14 16:21:35:761 IST] 0000002a EventLoggingProbeExtension.class I BEGIN requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.servlet.service # contextInfo=com.ibm.ws.request.timing.TestJDBC [6/18/14 16:22:04:643 IST] 0000002a EventLoggingProbeExtension.class I END requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.servlet.service # contextInfo=com.ibm.ws.request.timing.TestJDBC # duration=2.614ms JDBC: [6/18/14 16:21:43:727 IST] 0000002a EventLoggingProbeExtension.class I BEGIN requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table cities (name varchar(50) not null, population int, county varchar(30)) [6/18/14 16:21:44:200 IST] 0000002a EventLoggingProbeExtension.class I END requestID=AAADvUHkFwy-AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table cities (name varchar(50) not null, population int, county varchar(30)) # duration=0.231ms Session: [6/18/14 16:22:04:655 IST] 0000002a EventLoggingProbeExtension.class I BEGIN requestID=AAADvUHkFwy-AAAAAAAAAAE # type=websphere.session.sessionReleased # contextInfo=default_host/jdbcTestPrj_3 [6/18/14 16:22:04:656 IST] 0000002a EventLoggingProbeExtension.class I END requestID=AAADvUHkFwy-AAAAAAAAAAE # type=websphere.session.sessionReleased # contextInfo=default_host/jdbcTestPrj_3 # duration=0.012ms [note that the contextInfo for servlets includes servlet name, pathinfo and query string when that info is present in the request] 15 NEW IN FEBRUARY 2015 LIBERTY BETA
  • 16. Event Logging Zooming in...(JDBC example) requestID=AAADvUHkFwy-AAAAAAAAAAD type=websphere.datasource.executeUpdate contextInfo=jdbc/exampleDS | create table cities (name varchar(50) not null, population int, county varchar(30)) duration=0.231ms 16 [6/18/14 16:21:44:200 IST] 0000002a EventLoggingProbeExtension.class I END requestID=AAADvUHkFwy- AAAAAAAAAAD # type=websphere.datasource.executeUpdate # contextInfo=jdbc/exampleDS | create table cities (name varchar(50) not null, population int, county varchar(30)) # duration=0.231ms NEW IN FEBRUARY 2015 LIBERTY BETA
  • 18. Performance Monitoring Focus Areas  JVM Performance : Analysis on JVM Performance Data , GC data  Application Performance : Servlet Usage and response time, Sessions  WAS Containers : Usages of ThreadPools, ConnectionPools monitor-1.0 feature (introduced in WAS85 Liberty Profile)  Collects data from various Liberty components  Data reporting using MXBeans  MXBean data can be viewed with JConsole1 or any standard JDK client  Much of the data can also be viewed from Liberty admin center tools 18
  • 19. Performance Monitoring JConsole (part of JDK)  Graphical monitoring tool to monitor Java Virtual Machine (JVM) and java applications  Comes as part of Java Development Kit (java/bin/jconsole)  Connects to local or remote JVMs  Interacts with JMX MBeans and MXBeans to get data or execute operations  Provides a way to log counters into a CSV file 19
  • 20. monitor-1.0  The monitor-1.0 feature monitors the following components: − JVM JvmStats MXBean − Web applications ServletStats MXBean − Thread pool ThreadPoolStats MXBean − [8.5.5.0 or later] JAX-WS endpoints WebServiceStats MXBean − [8.5.5.0 or later] Session management SessionStats MXBean − [8.5.5.0 or later] ConnectionPool ConnectionPool MXBean  All MXBeans in a collective can be accessed by connecting to the collective controller using the JMX REST Connector and the RoutingContext MBean1 1see http://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/rwlp_jmx_routing.html 20
  • 21. monitor-1.0 JvmStats  Sample Object Name: WebSphere:type=JvmStats − Heap − FreeMemory − UsedMemory 21 − ProcessCPU − GcCount − GcTime − UpTime
  • 22. monitor-1.0 ServletStats (1 MXBean per servlet)  Sample Object Name: WebSphere:type=ServletStats,name=MyApp.MyServlet − AppName − ServletName − RequestCount − ResponseTime (nanoseconds) 22 − Description − RequestCountDetails − ResponseTimeDetails
  • 23. monitor-1.0 ThreadPoolStats  Sample Object Name: WebSphere:type=ThreadPoolStats,name=Default Executor − ActiveThreads − PoolSize − PoolName 23
  • 24. monitor-1.0 SessionStats (1 MXBean per web application)  Sample Object Name: WebSphere:type=SessionStats,name=default_host/trade_lite − CreateCount − LiveCount − ActiveCount 24 − InvalidatedCount − InvalidatedCountbyTimeout
  • 25. monitor-1.0 ConnectionPool (1 MXBean per connection pool)  Sample Object Name: WebSphere:type=ConnectionPool,name=jdbc/TradeDataSource − CreateCount − DestroyCount − ManagedConnectionCount 25 − WaitTime − ConnectionHandleCount − FreeConnectionCount
  • 26. Monitoring Views in the Admin Center Explore Tool 26
  • 27. monitor-1.0 Traditional PMI Support (for clients written to work with the full profile application server) − monitoring data is available in PMI format (CountStatistics, RangeStatistics, etc.) via “Perf” Mbean “WebSphere:*,type=perf” − Existing clients will be able to work (changes required in connectors)  Use JMX Rest Connectors to connect to Liberty  Retrieve all MBeans  Query for MBean type=Perf  Invoke standard methods exposed by “Perf” MBean 27
  • 28. monitor-1.0 - Configuration 28 <featureManager> <feature>monitor-1.0</feature> </featureManager> <monitor // Property to enable or disable Traditional PMI way of reporting. enableTraditionalPMI="false" // Allows user to enable/disable monitors based on group name such as // WebContainer,JVM,ThreadPool,Session,ConnectionPool,... filter="Session" />
  • 29. monitor-1.0 Performance  Overhead is about 4%, when all components are monitored  Overhead is lower when fewer components are monitored 29
  • 31. 31 Liberty Integrated Log Analytics  Data and analytics based on content from logs / trace / ffdc / access logs Liberty (user apps) AnalyticsCollector-1.0 AdminCenter AnalyticsEngine-1.0 messages.log trace.log access.log binary log ffdc files Index kibana.war* Admin Center Explore Tool Kibana (not included with Liberty) NEW IN FEBRUARY 2015 LIBERTY BETA
  • 32. 32 Integrated Log Analytics – Configuration <featureManager> <feature>analyticsCollector-1.0</feature> <feature>analyticsEngine-1.0</feature> </featureManager> <analyticsCollector logLevel="INFO" accessLogEnabled="true" ffdcEnabled="true" /> <httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9085" httpsPort="9448"> <accessLogging filepath="${server.output.dir}/logs/http_defaultEndpoint_access.log" logFormat="%h %u %t &quot;%r&quot; %s %b %D %{User-agent}i" /> </httpEndpoint> NEW IN FEBRUARY 2015 LIBERTY BETA
  • 34. 34 Integrated Log Analytics – Admin Center Views Admin Center Explore Tool contains analytic views and monitoring data NEW IN FEBRUARY 2015 LIBERTY BETA
  • 35. 35 Integrated Log Analytics – Sample Kibana Dashboard We've experimented with deploying Kibana in the same server as our analytics engine (Kibana is not included with Liberty) NEW IN FEBRUARY 2015 LIBERTY BETA
  • 36. Useful Links – Full Profile 36 Using High Performance Extensible Logging to troubleshoot applications http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.nd.multiplatform.doc%2Fae%2Fttrb_usinghpel.html High Performance Extensible Logging (HPEL) http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v8/was/8.0/ProblemDetermination/WASv8_HPEL/player.html System administration in WebSphere Application Server V8.5, Part 3 High Performance Extensible Logging (HPEL): http://www.ibm.com/developerworks/websphere/techjournal/1208_bourne/1208_bourne.html WebSphere Application Server v8.5 Cross Component Trace http://webspherecommunity.blogspot.ca/2012/07/websphere-application-server-v85-cross.html Use Cross Component Trace (XCT) request Ids to see which log entries were generated by each request http://www.youtube.com/watch?v=oXsfDoiNb5c Use the IBM WebSphere Cross Component Trace Logviewer to view WebSphere Application Server log files http://www.youtube.com/watch?v=qorwRZh4DgQ High Performance Extensible Logging and Cross Component Trace Tech Video https://www.youtube.com/watch?v=FKKfUdNux70 Configuring the memory leak policy http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/ttrb_configmemleak.html Memory leaks in Java Platform, Enterprise Edition applications http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Fae%2Fctrb_memleakdetection.html Configuring the hang detection policy (full profile) http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.iseries.doc/ae/ttrb_confighangdet.html Using sensitive log and trace guard http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.express.doc/ae/ctrb_sensitivelogtrace.html
  • 37. Useful Links – Liberty Profile 37 Liberty Profile: Binary Logging http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.wlp.express.doc/ae/cwlp_HPELOverview.html Binary logging for Liberty profile http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASV855_Binary_Logging/player.html?dmuid=2013 0807101913462846 Timed operations for Liberty http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASV855_Serviceability_TimedOperations/player.h tml?dmuid=20130815082326115285 Lab: Liberty profile timed operations for JDBC http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASv855_Liberty_Timed_Operations_Lab.pdf?dmui d=20130807102148029081 http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.was_v8/was/8.5.5.0/content/WASv855Labs_libtops.zip?dmuid=20130807102201 566285 Liberty Profile: Slow and hung request detection http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_requesttiming.html Liberty profile: Event Logging http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_eventlogging.html Liberty profile: Analytics http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_analytics.html Liberty monitoring feature http://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.nd.doc/ae/twlp_mon.html Creating remote JMX connections in Liberty https://developer.ibm.com/wasdev/docs/article_howto_remotejmx/ Configuring secure JMX connection to the Liberty profile http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.wlp.nd.doc%2Fae%2Ftwlp_admin_restconnector.html
  • 38. Useful Links – Other 38 JVM Writing Verbose GC to a Specified Log -Xverbosegclog in AIX, Linux and Windows http://www-01.ibm.com/support/docview.wss?uid=swg21384096 PROBLEM DETERMINATION TOOLS IBM Support Assistant http://www.ibm.com/software/support/isa/ IBM Whole-system Analysis of Idle Time (WAIT) http://wait.ibm.com Memory Analyzer (MAT) https://eclipse.org/mat/ EDUCATION AND TRAINING IBM WebSphere Application Server V8.5.5 Problem Determination http://www-304.ibm.com/jct03001c/services/learning/ites.wss/ca/en?pageType=course_description&courseCode=WA591CE Support Technical Exchanges http://www.ibm.com/support/entry/portal/Scheduled_tech_exchanges/Software/WebSphere/WebSphere_brand_support_(general)
  • 39. Notices and Disclaimers Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM. Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS document is distributed "AS IS" without any warranty, either express or implied. In no event shall IBM be liable for any damage arising from the use of this information, including but not limited to, loss of data, business interruption, loss of profit or loss of opportunity. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided. Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice. Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary. References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation. It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law.
  • 40. Notices and Disclaimers (con’t) 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 in connection with this publication 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. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM expressly disclaims all warranties, expressed or implied, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right. • IBM, the IBM logo, ibm.com, Bluemix, Blueworks Live, CICS, Clearcase, DOORS®, Enterprise Document Management System™, Global Business Services ®, Global Technology Services ®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, SoDA, SPSS, StoredIQ, Tivoli®, Trusteer®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
  • 41. Thank You Your Feedback is Important! Access the InterConnect 2015 Conference CONNECT Attendee Portal to complete your session surveys from your smartphone, laptop or conference kiosk.