44
HANDSON WITH ORACLE MANAGEMENT CLOUD: PM & LOG ANALYTICS Frank Houweling & Lucas Jellema 26 January 2017, Nieuwegein A

Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

Embed Size (px)

Citation preview

Page 1: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

HANDSON WITH ORACLE MANAGEMENT CLOUD:PM & LOG ANALYTICS

Frank Houweling & Lucas Jellema26 January 2017, Nieuwegein

A

Page 2: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

AGENDA

OVERVIEW OF WORKSHOP DEMO OF APPLICATIONTHE WORLD VIEW

INTRODUCTION OF THE APPLICATION AND PLATFORM ARCHITECTURE & THE OMC AGENT CONFIGURATION

WALK THROUGH OF THE HANDSON EXCERSISES

DEMO OF THE HR APPLICATION FROM HELL AND HOW APM DISSECTS IT

DO IT YOURSELF- APM SESSION AND CALL CHAIN ANALYSIS- LOG ANALYTICS EXPLORATION AND

DETECTIVE WORK

BONUS:- INSTALL THE APM AGENT ON YOUR LOCAL (VM) ENVIRONMENT- INSTALL THE LOG ANALYTICS AGENT ON YOUR LOCAL (VM) ENVIRONMENT

Page 3: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

THE WORLD VIEW APPLICATION

faces/main.jsf

faces/WorldNews.jsf

faces/CountriesCatalog.jsfindex.html

worldlytalk

moreworldlytalk

/TheWorldAtRestService/resources/world-rss/feed/nos

faces/WorldOfErrors.jsf

Page 4: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

APPLICATION ARCHITECTURE

DBaaS

Linux Compute VMamispaas-db-java-stack-DBAAS.compute-amispaas.oraclecloud.internal

Oracle Database 12.1.0.2PDB1.amispaas.oraclecloud.internal

TBLPL/SQLVW

JCS

Linux Compute VMamispaas-db-java-stack-jaas-wls-1.compute-amispaas.oraclecloud.internal

Oracle WebLogic 12.2.1amispaas_domain

amispaas_adminserver

amispaas_server_1TheWorld

Enterprise App

Browser

Page 5: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

RUNTIME INFRASTRUCTURE

DBaaS

Linux Compute VMamispaas-db-java-stack-DBAAS.compute-amispaas.oraclecloud.internal

Oracle Database 12.1.0.2PDB1.amispaas.oraclecloud.internal

TBLPL/SQLVW

JCS

Linux Compute VMamispaas-db-java-stack-jaas-wls-1.compute-amispaas.oraclecloud.internal

Oracle WebLogic 12.2.1amispaas_domain

amispaas_adminserver

amispaas_server_1TheWorld

Enterprise App

Browser

Page 6: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

APM

APM

CONFIGURATION OF APM AND LOG ANALYTICS AGENT

DBaaS

Linux Compute VMamispaas-db-java-stack-DBAAS.compute-amispaas.oraclecloud.internal

Oracle Database 12.1.0.2PDB1.amispaas.oraclecloud.internal

TBLPL/SQLVW

JCS

Linux Compute VMamispaas-db-java-stack-jaas-wls-1.compute-amispaas.oraclecloud.internal

Oracle WebLogic 12.2.1amispaas_domain

amispaas_adminserver

amispaas_server_1TheWorld

Enterprise App

Browser

LogAnalytics

LogAnalytics

Page 7: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

CONFIGURATION OF APM AND LOG ANALYTICS AGENT

Page 8: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

CONFIGURATION OF LOG ANALYTICS

• Configure entities to harvest log sources for

Page 9: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

INTRODUCTION TO THE HANDSON

Page 10: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

SLOW PAGES

Page 11: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DETAILS FOR PAGE WORLDNEWS.JSF

Page 12: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

INSTANCES OF THE PAGE == USER SESSIONS – DRILL DOWN ON PROBLEMATIC SESSION

Page 13: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DETAILS FOR SESSION WITH A SLOW PAGE EXPERIENCE

Page 14: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

RETURN TO PAGE AND INSPECT SERVER REQUESTS

Page 15: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

SERVER REQUEST DETAILS

Page 16: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

SHOW METRICS FOR SERVER REQUEST

Page 17: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

INSTANCES [OF THE SERVER REQUEST]

Page 18: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

INSTANCE DETAILS JAVA CALL TREE & SNAPSHOTS

Page 19: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

INSTANCE DETAILS JAVA CALL TREE & SNAPSHOTS

Page 20: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

COMPOSITION OF RESPONSE TIME

Page 21: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DRILL DOWN TO ASSOCIATED LOGS FOR SERVER REQUEST INSTANCE – COPY ECID

Page 22: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

LOG ANALYTICS FOR ENTITIES & TIME RANGE – ECID IS NOT ADDED TO FILTER

Page 23: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

FILTER ON ECID

Page 24: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

FILTER ON SEVERITY IS WARNING

Page 25: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

CLUSTER LOG ENTRIES

Page 26: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

AFTER CLUSTERING, THREE GROUPS OF MESSAGES REMAIN. ONE IS VERY TELLING

Page 27: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DRILL DOWN TO FIND THE CODE LOCATION

Page 28: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

TOPOLOGY

Page 29: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

TREEMAP – MAXIMUM THREE GROUPING ATTRIBUTES

Page 30: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

USE OUT OF THE BOX WIDGET TO FIND MISSING RESOURCES/FAILED HTTP REQUESTS

Page 31: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

IDENTIFY MOST FREQUENTLY MISSED RESOURCES

Page 32: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

USE CLUSTERING FOR A MORE DETAILED INSIGHT – AND SEARCH FOR A REASON

Page 33: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

CREATE ALERT RULES TO SEND NOTIFICATIONS FOR ‘NOTEWORTHY EVENTS’

• Alerts can be created on APM metrics and Log Analytics findings• Against any “saved search” in Log Analytics

• Alerts can send notifications – currently only email• WebHook among others options were announced

Page 34: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

CREATE LOG ANALYTICS BASED ALERT RULE FOR SAVED SEARCH

Page 35: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DEMO OF THE HR APPLICATION FROM HELL

Page 36: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

HANDSON INSTRUCTIONS

• URL for OMC environment:• http://bit.ly/2jwIHFm• Identity Domain = nlamistrial73269

• Username and Password for Oracle Management Cloud:• guest/OMCamis1

Page 37: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

HANDSON INSTRUCTIONS

• Demo Application The World View is at:• http://bit.ly/2jRfs0O

• The application’s resources are in GitHub:• https://github.com/lucasjellema/APM-Demo-App-WorldView• http://bit.ly/2k31cEY

Page 38: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

THE HUNT IS ON…

• The application source code has several malfunctions• Database delays for specific records• Failure to search countries for a specific filter value• Periodic, semi-random delays in servlet worldlytalk• Lacking resources – servlets & images• Exceptions thrown in processing requests

• managed beans, servlets, ADF BC etc.• Calls to dead code – deprecated stuff that should not be invoked anymore

Page 39: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

BONUS LAB: DEPLOY APM AGENT ON YOUR LOCAL ENVIRONMENT

• APM Agent can be configured on WebLogic and other Java EE servers, Node.js, and .Net• For example on Integrated WebLogic Server in JDeveloper• Agent can be configured in VMs and Docker Container• Agent is configured with Registration Key for the OMC instance it should

publish metrics to

• This blog article describes the steps you should go through:• https://technology.amis.nl/2016/12/14/

oracle-management-cloud-application-performance-monitoring-for-java-ee-adf-soa-suite-applications/

ADF UI running in browser

Your Laptop

APMJava agent

ADF12c application

Node.jsAPM Node Agent

Page 40: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

BONUS LAB: DEPLOY APM AGENT ON YOUR LOCAL ENVIRONMENT

• In OMC instance on Agents Tab• Download AgentInstaller• Get hold of Registration key

• Install APM agent on target machine• Configure APM agent in WebLogic startup script• (re)start WebLogic Servers• Note: even more interesting APM metrics if the WebLogic Domain

runs SOA Suite

Page 41: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

BONUS LAB: DEPLOY APM AGENT ON YOUR LOCAL ENVIRONMENT

Page 42: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

RUN APM AGENT AGAINST WEBLOGIC DOMAIN WITH SOA SUITE RUNNING SCA SERVICE COMPONENTS

Page 43: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

DRILL DOWN TO THE JDBC CALL FROM THE DATABASE ADAPTER

Page 44: Handson Oracle Management Cloud with Application Performance Monitoring and Log Analytics (AMIS OMC event, 26th January 2017)

• Blog: technology.amis.nlOn Oracle, Cloud, SQL, PL/SQL, Java, JavaScript, Continuous

Delivery, SOA, BPM & more• Email: [email protected]

• : lucasjellema

• : lucas-jellema

• : www.amis.nl, [email protected]+31 306016000

Edisonbaan 15, Nieuwegein