Copyright 2007, Information Builders. Slide 1 Performance and Tuning Tips Mark Nesson/Vashti Ragoonath October 2008.

Slides:



Advertisements
Similar presentations
XIr2 Recommended Performance Tuning Andy Erthal BI Practice Manager.
Advertisements

Unix Systems Performance Tuning Project of COSC 513 Name: Qinghui Mu Instructor: Prof. Anvari.
Copyright 2007, Information Builders. Slide 1 Performance and Tuning Mark Nesson, Vashti Ragoonath June 2008.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
TUNING WEBLOGIC SERVER. Core Server JDBC Tuning JVM Tuning OS Tuning TOPICS.
Refeng Wu CQ5 WCM System Administrator
Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Copyright 2007, Information Builders. Slide 1 Workload Distribution for the Enterprise Mark Nesson, Vashti Ragoonath June, 2008.
Extensible Scalable Monitoring for Clusters of Computers Eric Anderson U.C. Berkeley Summer 1997 NOW Retreat.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
Windows Server 2008 Chapter 11 Last Update
16.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 16: Examining Software Update.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Hands-On Microsoft Windows Server 2008
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
MCTS Guide to Microsoft Windows 7
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Introduction to the Adapter Server Rob Mace June, 2008.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Agilent Technologies Copyright 1999 H7211A+221 v Capture Filters, Logging, and Subnets: Module Objectives Create capture filters that control whether.
Copyright 2007, Information Builders. Slide 1 Scaling Large HTML Reports With Active Cache Mark Nesson,Vashti Ragoonath June 2008.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Copyright 2007, Information Builders. Slide 1 Machine Sizing and Scalability Mark Nesson, Vashti Ragoonath June 2008.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
1 Chapter 9 Tuning Table Access. 2 Overview Improve performance of access to single table Explain access methods – Full Table Scan – Index – Partition-level.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Oracle Database Architectural Components
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
SQL Database Management
Understanding and Improving Server Performance
Troubleshooting Tools
Hands-On Microsoft Windows Server 2008
MCTS Guide to Microsoft Windows 7
SQL Server Monitoring Overview
Software Architecture in Practice
Database Performance Tuning and Query Optimization
Migration Strategies – Business Desktop Deployment (BDD) Overview
Chapter 11 Database Performance Tuning and Query Optimization
Presentation transcript:

Copyright 2007, Information Builders. Slide 1 Performance and Tuning Tips Mark Nesson/Vashti Ragoonath October 2008

Copyright 2007, Information Builders. Slide 3 Performance and Tuning Tips Overview Performance Testing  Used to eliminate bottlenecks and establish a baseline  Should be conducted in a controlled environment  Must have a clear set of expectations  Number of concurrent users  Response times for queries  Meet users expectations and Service Level Response times Tuning Repetitive process of:  Running tests to identify bottlenecks  Tuning one component at a time and redoing tests  Increasing load to identify all bottlenecks..until objectives are met

Copyright 2007, Information Builders. Slide 4 Performance and Tuning Tips Overview Bottlenecks can exist at different levels:  Application Level  Developers can look for inefficiencies in their code  Database Level  Use query optimizers and database profilers to check for bottlenecks  Operating System Level  Administrators can use utilities tools like PerfMon on Windows and on UNIX top, vmstat, iostat to track CPU, RAM, Disk Space utilization  Network Level  Network Administrators can use utilities like netstat, packet sniffers like tcpdump and others like ethereal

Copyright 2007, Information Builders. Slide 5 Performance and Tuning Tips Tuning Components External Tuning Components  Operating System  Database Server  Application Server  Java Virtual Machine  Network WebFOCUS Tuning Components  Application  Data Adapters Dialect Specific or Generic  Reporting Server Workspace Manager  Reporting Server Java Services  ReportCaster Distribution Server

Copyright 2007, Information Builders. Slide 6 Performance and Tuning Tips External Tuning Components - OS  Operating System  Work with the OS Administrators to identify bottlenecks. If the system is maxed out on CPU and RAM use the system utilities to identify which processes are taking up all the resources. Maybe some jobs can be run at off-peak hours or deferred and a lower CPU priority.  Check all configuration files to ensure they are in sync with the current releases of installed software. Upgrades may require updates to old configuration files that could improve performance overall on the system.  Track usage patterns on the machines to identify problems and failures which can be fixed easily.

Copyright 2007, Information Builders. Slide 7 Performance and Tuning Tips External Tuning Components – Database Database Server  Verify that the database optimizer runs as recommended to generate good data statistics. Example: Oracle ANALYZE command creates optimizer statistics to choose methods of fast access to the data. If the statistics were not generated properly, performance will be affected.  Fix Indexes. Use EXPLAIN to see what the optimizer does with SQL statements. Does it do a full table scan? Does the table have appropriate indexes for the queries? You may have to rebuild indexes.  Spread the Database Over Disks and I/O Channels. e.g: Partition tables and indexes over multiple disks

Copyright 2007, Information Builders. Slide 8 Performance and Tuning Tips External Tuning Components – App Server  Use Pre-compiled JavaServer Pages  Disable Dynamic Application Reloading  Tune Thread Pool  Initial Thread Pool size  Minimum number of threads in pool  Maximum Thread Pool size  Maximum number of concurrent threads in pool  Thread inactivity timeout  Time spent waiting for client response before being returned to pool  Growable thread pool  Number of threads the pool should increase by when it’s maxed out

Copyright 2007, Information Builders. Slide 9 Performance and Tuning Tips External Tuning Components – JVM Java Virtual Machine (JVM)  Tune Heap Size so garbage collection time is minimized and clients can still be processed.  Initial Heap Size  Maximum Heap Size  Garbage Collection  Use the -verbosegc option to track frequency and times of garbage collection

Copyright 2007, Information Builders. Slide 10 Performance and Tuning Tips External Tuning Components – Network Network  Network administrators will be able to identify and tune bottlenecks are with the use of:  packet sniffers such as tcpdump  network protocol analyzers such as ethereal  utilities such as netstat, ping, traceroute and others

Copyright 2007, Information Builders. Slide 11 Performance and Tuning Tips Demo: JVM Tuning  Let’s see a live demo of tuning the Tomcat thread pool  Test Case 1 – Low thread pool  Tomcat parameters: Low thread pool(15), 256MB Heap size, 25 concurrent users, request sleeps for 15 secs, 100 available tscom agents  Capture baseline performance statistics  Tune the Tomcat JVM: Large thread pool(75), 256MB Heap size, 25 concurrent users, request sleeps for 15 secs, 100 available tscom agents  Capture performance statistics  Response times improved by a little less than 25%

Copyright 2007, Information Builders. Slide 12 Performance and Tuning Tips Demo: JVM Tuning INFO: Find registry server-registry.xml at classpath resource Oct 28, :41:25 PM org.apache.catalina.startup.Catalina start INFO: Server startup in ms Oct 28, :42:31 PM com.amberpoint.util.soa.servlet.ServiceDeploymentServle t$ServiceInitializer run url, then contact that service at that URL to get it started. Oct 28, :43:24 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (15) are currently busy, waiting. Increase maxThreads (15) o r check the servlet status

Copyright 2007, Information Builders. Slide 13 Performance and Tuning Tips Demo: JVM Tuning

Copyright 2007, Information Builders. Slide 14 Performance and Tuning Tips Demo: JVM Tuning

Copyright 2007, Information Builders. Slide 15 Performance and Tuning Tips WebFOCUS Tuning Components – Application Application  Verify that requests are generating optimized SQL  Enforcing all RDBMS efficiencies Data Adapters  Enable OPTIMIZATION flags ( SET OPTIMIZATION)  Fetch data in larger blocks (SET FETCHSIZE)  Test for optimum performance  Has show to increase performance by 5%  Set ISOLATION Level RU (Read Uncommitted)

Copyright 2007, Information Builders. Slide 16 Performance and Tuning Tuning Components –Reporting Server Workspace Manager -Data Services  maximum  number_ready  deployment * private connection_pooling  Queuing  idle_session_limit  idle_agent_limit  cpu_limit  memory_limit  connection_limit  max_connections_per_user *  agent_refresh  sched_priority

Copyright 2007, Information Builders. Slide 17 Performance and Tuning Tuning Components –Java Services Workspace Manager –Configuration  Java Services  Most commonly used to:  Rendering output format of flex on the Reporting Server  With the JSCOM3  Tuning Parameters  Initial Java Heap Size  Maximum Java Heap Size  Java Thread Stack Size  JVM_OPTIONS  Specify other performance type options

Copyright 2007, Information Builders. Slide 18 Performance and Tuning Demo: Graph Processing  Let’s see a live demo of how Java Services is used for processing graphs.  JSCOM Listener under Java Services  Can have a cluster of JSCOM Listeners  Can be configurable  Graph request generates 5 flex reports. Using the default JSCOM3 Listener we will run 1, 3, 5 concurrent users and look at the response time.  We then add a second JSCOM Listener and rerun our test.  Is there an improvement in the response times?  Yes there is…

Copyright 2007, Information Builders. Slide 19 Demo: JSCOM/FLEX Processing (broflex) #JSCOM3 HEAPSIZE #THREADS RESP 1 default default default default

Copyright 2007, Information Builders. Slide 20 Performance and Tuning Tuning Components –ReportCaster ReportCaster Configuration  General Tab  Maximum Threads  Data Server (NODE)  Maximum Connections  Data Server (CLUSTER) Weight Maximum Connection Algorithm to determine which server to send request to:  Weight * maximum connection = priority  Request will be routed to server with highest priority

Copyright 2007, Information Builders. Slide 21 Performance and Tuning Demo: ReportCaster Compression  Let’s see a live demo of how we can have a scalable distribution server by using ReportCaster compression.  Run request with embedded graphical images and distribute in uncompressed PDF format to Report Library.  Check to see what the original file size is in the BOTLIB table and make sure it was not flagged as compressed in the BOTSCHED table.  Column AUDITOR in table BOTSCHED has a flag to indicate if data is compressed.  Column REPORTSIZE in table BOTLIB has file size before compression.  Column LIBFIELD1 in table BOTLIB has compressed file size.  Clone and schedule the same request and distribute in compressed PDF format to Report Library.  Check the file sizes.  View both reports from Report Library

Copyright 2007, Information Builders. Slide 22 Performance and Tuning Demo: ReportCaster Compression  You can distribute the same report via and use the ZIP option to minimize space allocation.  You can also ZIP and distribute Active Reports for your users and they can slice and dice that data without being connected.  We now have Active Reports in Connected mode but more details in another presentation that we will be doing.

Copyright 2007, Information Builders. Slide 23 Performance and Tuning Conclusion  Questions and Comments.