monitoringperformancetuningoraclee-businessselfservicetransactions032404

download monitoringperformancetuningoraclee-businessselfservicetransactions032404

of 34

Transcript of monitoringperformancetuningoraclee-businessselfservicetransactions032404

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    1/34

    Monitoring andPerformance Tuning

    Oracle E-Business SelfService Transactions

    John Spirko

    Product Manager,Oracle E-Business Solutions

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    2/34

    Agenda Introduction

    Oracle E-Business Transaction Overview 9iAS Architecture Overview

    Apache Web Server

    9iAS Business Logic Services 9iAS Presentation Services

    Web and Database Caching

    Common issues How Quest helps

    Next Steps and Conclusion

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    3/34

    Introduction Audience

    No need to be an expert, just understand basicApplication Server and database concepts

    Motivation Maximizing the Performance of theOracle E-Business Suite Ahmed Alomari

    Multiple customer visits

    Purpose Deliver a high level overview of the Oracle

    Application Server architecture Set the stage for a more in depth follow-on paper onconfiguration and common pains with the OracleApplication server

    Introduce the Quest APM Suite for Oracle E-Business

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    4/34

    Oracle E-Business Transactions Forms also called Fat Client

    Runs in an applet on the desktop Supported by 9i Application Server

    Concurrent Manager Back-end transaction runs in batch

    Scheduled or on demand

    Direct Access Noetix, Oracle Discover, Excel

    Self-Service or Thin Client Runs in the clients web browser

    No client side software required

    Uses mostly Java and XML technology

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    5/34

    9iAS REL 1 Architecture

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    6/34

    Apache Architecture

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    7/34

    Apache Process Control Process

    Creates and destroys worker processes based on load demandfrom requesting clients and Apache configuration parameters

    Worker Processes Processes that render HTML results back to the requesting

    clients Apache API layer

    Gives Apache worker processes the ability to performfunctions outside of normal html processing

    Apache Mods Works in phases like authentication, logging, content, etc

    Phases can be passed to a mod through the API layer

    Mod handles the request and passes results back to the

    worker

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    8/34

    Apache Web Server Latest version certified with 11.5.9 is

    1.3.19

    First process pool in a series of pools thatneed attention within 9iAS

    Important files httpd.conf (default)

    error_log

    Access_log

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    9/34

    Business Logic Services Framework for development

    Standardizes security and presentation

    OA Framework 5.7 latest with 11.5.9

    Mostly XML and Servlets The future of Oracle E-Business Suite

    Heading towards J2EE with 9i REL 2

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    10/34

    Business Logic Services Oracle BC4J

    Business components for Java

    Framework for Oracle E-Business Businessintelligence

    Eventually should be replaced by OC4J in 9iAS REL 2 Oracle 8i JVM

    Java Beans

    PLSQL Corba

    100% pure Java

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    11/34

    Business Logic Services Oracle 8i PLSQL

    Framework for running PLSQL against an Oracledatabase

    Oracle Forms

    Driving technology for the Full-Service transactiondescribed earlier

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    12/34

    Presentation Services Technology that runs the Business Logic

    services Each of the Presentation Services relates

    to a Business Logic Service Code base in Business Logic

    Enabling technology in Presentation Services

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    13/34

    Presentation Services Apache Jserv

    Sun designed servlet processing engine runs servletcode from BC4J and 8i JVM

    Oracle JSP

    Engine that processes and runs Java Server pages Interprets Java embedded in XML

    Extends traditional JSP developed by Sun

    Better GC and platform portability

    OraclePSP

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    14/34

    Presentation Services Oracle PSP

    Similar to Oracle JSP except the interpreterprocesses PLSQL instead of Java

    Perl Interpreter

    Processes Perl code for calling mod

    OraclePSP

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    15/34

    Oracle Web and DB Cache Web Cache

    Used for application with a lot of static pages thatoccur in transactions

    Common for iStore

    Not used across the board

    DB Cache Used to store data on mid-tier to minimize database

    call

    Cached table data instead of web pages This feature has been discontinued as per Oracle

    Metalink note: 171517.1

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    16/34

    Top Pains Many areas to cover

    Multiple processes

    Multiple log files

    Multiple configuration files

    Two pains for this paper Isolating response time issues

    Managing the DB connection pool

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    17/34

    Isolating Response Time Issues

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    18/34

    Response Times using Oracle SQL Tracing

    Custom Profile

    FND Diagnostics

    Response times on Application Server

    Oracle DMS

    Gives Servlet response times

    Gives Mod response times

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    19/34

    SQL Tracing Custom Profile Alter the initialization SQL Statement Custom profile

    option for the user you want to trace

    Begin fnd_ctl.fnd_sess_ctl('','','TRUE','TRUE','LOG','ALTERSESSION SET EVENTS='||''''||'10046 TRACE NAMECONTEXT FOREVER, LEVEL 12'||''''); end;

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    20/34

    FND Diagnostics

    Adds additional button

    Must set in profile

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    21/34

    Getting Results $ORACLE_HOME/admin/[DB SID]/udump

    $ ls -ltr to see latest log files FND_DIAGNOSTICS will show PIDs

    $ ls -ltr | grep 18667

    -rw-r--r-- 1 oracle dba 3981026 Mar 9 17:08

    vis_ora_18667.trc

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    22/34

    Oracle DMS Dynamic Monitoring Service

    Keeps cumulative response times [Home Page]:[Port]/dms0/Spy

    [Home Page]:[Port]/servlet/Spy

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    23/34

    Database Connection Pool Database pool managed by OA_Framework

    [Home_Page]:[Port]/OA_HTML/jsp/fnd/AoljDbcPoolStatus

    Must write script to baseline high-watermark for active JDBC Connections

    Pool has been know to run away for many

    different reasons Sometimes know to hit max_sessions limit

    in Oracle database

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    24/34

    Servlet in later 11i releases

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    25/34

    Does this look familiar?

    Triage

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    26/34

    Streamline Communication with Quest

    Detect

    Diagnose

    Resolve

    Triage

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    27/34

    Quest APM Products

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    28/34

    Service Model Example

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    29/34

    Spotlight Example

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    30/34

    Oracle Apps Domain Workbench

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    31/34

    Baseline Process Pools

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    32/34

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    33/34

    QUESTIONSAND ANSWERS

  • 8/2/2019 monitoringperformancetuningoraclee-businessselfservicetransactions032404

    34/34

    THANK YOUFOR LISTENING