Www.cfunited.com Performance Tuning ColdFusion Before the JVM Chris Peterson.

Slides:



Advertisements
Similar presentations
NAGIOS AND CACTI NETWORK MANAGEMENT AND MONITORING SYSTEMS.
Advertisements

Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advanced Tuning: Unconventional Solutions to Everyday Problems Robert L Davis.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Troubleshooting Working at a Small-to-Medium Business or ISP – Chapter 9.
Memory Leak WEBLOGIC SERVER.  Overview of Java Heap  What is a Memory Leak  Symptoms of Memory Leaks  How to troubleshoot  Tools  Best Practices.
Memory issues in production systems. Production system Restricted access Application, DB, Application server, log files Debugging, monitoring Investigation.
Capacity Planning and Predicting Growth for Vista Amy Edwards, Ezra Freeloe and George Hernandez University System of Georgia 2007.
Troubleshooting.
Server-Side vs. Client-Side Scripting Languages
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.
Capacity Planning in SharePoint Capacity Planning Process of evaluating a technology … Deciding … Hardware … Variety of Ways Different Services.
© 2007 ADP 1 Java Capacity Planning & Performance Measurements Dr. Carl J. De Pasquale Electronic Numerical Integrator and Computer.
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
Memory Leak Overview and Tools. AGENDA  Overview of Java Heap  What is a Memory Leak  Symptoms of Memory Leaks  How to troubleshoot  Tools  Best.
Monitoring and Troubleshooting Chapter 17. Review What role is required to share folders on Windows Server 2008 R2? What is the default permission listed.
WordPress Web. WordPress Blogging system with full content management Personal publishing system Built on PHP scripting language and MySQL relational.
DNN Performance & Scalability Planning, Evaluating & Improving : Part 2.
Connect Learn Share Performance Optimization for Microsoft Dynamics CRM Presented by: Walter Grow Austin Jones.
MCTS Guide to Microsoft Windows 7
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 6 Switch Configuration.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 6 Switch Configuration Cisco Networking Academy.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 6 Switch Configuration.
Mastering Windows Network Forensics and Investigation Chapter 11: Text-Based Logs.
Bill Au CBS Interactive Troubleshooting Slow or Hung Java Applications.
Bill Au CBS Interactive Troubleshooting Slow or Hung Java Applications.
Ideas to Improve SharePoint Usage 4. What are these 4 Ideas? 1. 7 Steps to check SharePoint Health 2. Avoid common Deployment Mistakes 3. Analyze SharePoint.
Introduction to Wireshark Making Sense of the Matrix
Performance Guard 4.1 Presentation Toll Free Dial In Number:(877) Int'l Access/Caller Dial In Number:(601) PARTICIPANT CODE: Doug.
Linux Networking and Security
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
“Load Testing Early and Often” By Donald Doane Presentation to the Rockville MDCFUG.
Software Architecture in Practice Practical Exercise in Performance Engineering.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
Monitoring Troubleshooting TCP/IP Chapter 3. Objectives for this Chapter Troubleshoot TCP/IP addressing Diagnose and resolve issues related to incorrect.
© 2006, National Research Council Canada © 2006, IBM Corporation Solving performance issues in OTS-based systems Erik Putrycz Software Engineering Group.
VMWare Troubleshooting Basics Lewis Talley. Memory ESXi incorporates a number of memory management techniques such as (transparent page sharing, Ballooning,
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 6 Switch Configuration.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
Accelerating PHP Applications Ilia Alshanetsky O’Reilly Open Source Convention August 3rd, 2005.
COMP2322 Lab 1 Introduction to Wireshark Weichao Li Jan. 22, 2016.
FINDING THE “MAKE IT FASTER!” BUTTON AND HITTING IT! Ewan MacKellar Senior Premier Field Engineer Microsoft SESSION CODE: SVR306 (c) 2011 Microsoft. All.
Role Of Network IDS in Network Perimeter Defense.
 cfObjective(ANZ)– November 17-18, 2011  Mike Brunt – CFWhisperer.
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
Diagnosing Problems DAD5 © Copyright 2011 Mitchel Sellers – May Not Be Reused without Permission.
Monitoring Alfresco with Nagios/Icinga Toni de la Fuente Alfresco Senior Solutions Engineer Blog: blyx.com
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Beyond Application Profiling to System Aware Analysis Elena Laskavaia, QNX Bill Graham, QNX.
Introduction to Performance Tuning Chia-heng Tu PAS Lab Summer Workshop 2009 June 30,
Enhance Your Page Load Speed And Improve Traffic.
SQL Database Management
性能测试那些事儿 刘博 ..
Software Architecture in Practice
MCTS Guide to Microsoft Windows 7
SQL Server Monitoring Overview
CCNA 3 v3.1 Module 6 Switch Configuration
Software Architecture in Practice
Free Microsoft Accurate Study Material & Valid Questions
Migration Strategies – Business Desktop Deployment (BDD) Overview
Hints and tips for faster web apps
PerfView Measure and Improve Your App’s Performance for Free
ColdFusion Performance Troubleshooting and Tuning
Nate Nelson I*LEVEL, Inc.
Yale Digital Conference 2019
Presentation transcript:

Performance Tuning ColdFusion Before the JVM Chris Peterson

2www.cfunited.com Chris Peterson A.Started ColdFusion development with version 4.5 express B.Background in SQL and network administration C.Started working full time for Alagad in January 2009

3www.cfunited.com ObjectiveObjective Discuss a holistic approach to identifying performance issues with ColdFusion applications, using a variety of tools and server observation.

4www.cfunited.com Don’t waste time JVM tuning a lemon

5www.cfunited.com Identify the dominant consumer A.Listen to what your server is trying to tell you. B.Enable slow page logging. C.Obtain and Analyze a heap dump. D.Review memory utilization with VisualVM and the VisualGC plug-in. E.Investigate method calls with HPJmeter F.Capture a SQL trace during peak production site load.

6www.cfunited.com Listen to what your server is trying to tell you

7www.cfunited.com Reading the CPU graph A.Green line = Total CPU utilization B.Red line = Kernel / System usage C.Green – Red = Application CPU usage D.High kernel usage is often indicative of an I/O issue. E.Waiting on I/O means your application code is not executing.

8www.cfunited.com Enable slow page logging A.Enable slow page logging B.Process the server.log file with findslow.cfm (at to get a report on the most-often used slow templates.

9www.cfunited.com Obtain and analyze a heap dump A.Obtain a heap dump  –XX:+HeapDumpOnOutOfMemoryError  VisualVM (Applications -> Heap Dump) B.Review the heap dump in Netbeans or VisualVM

10www.cfunited.com VisualVM heap dump

11www.cfunited.com VisualVM Heap Dump (continued)

12www.cfunited.com VisualVM and VisualGC A.Increase in ‘heap size after full GC’ each time is indicative of a memory leak.

13www.cfunited.com VisualGC output

14www.cfunited.com Review methods with HPJmeter A.Capture method invocation data  -Xrunhprof:cpu=times,cutoff=0  View metrics -> Method Call Count  View metrics -> Call Graph Tree (CPU) B.Identify lingering objects (memory leaks)  -Xrunhprof:heap=all,cutoff=0  View metrics -> Residual Objects (Count)

15www.cfunited.com Example of HPJmeter method count list

16www.cfunited.com HPJmeter Residual Objects (count)

17www.cfunited.com Example of HPJmeter Call Graph Tree

18www.cfunited.com Its not always about the code A.Network latency B.Overloaded disk resources C.Poorly configured database D.Web server configuration

19www.cfunited.com Identify Network Issues A.Identify overloaded nic with task manager. B.Identify host issues with ping or pathping. C.Identify network connections with netstat –a, or using Free Extended Task Manager. D.More detailed investigation can be done with managed routers, or tools like WireShark (formerly Ethereal) to capture and analyze all network traffic.

20www.cfunited.com Wireshark – packet listing

21www.cfunited.com Wireshark – packet detail

22www.cfunited.com Ports Open – Free Extended Task Manager

23www.cfunited.com Identify Overloaded Disk Resources

24www.cfunited.com Identify a poorly configured database A.Capture a.trc file using SQL profiler with the ‘tuning’ profile selected B.Run your.trc file through the database tuning advisor (available on SQL Standard or higher) and quickly locate database slow- downs, and even implement recommended fixes.

25www.cfunited.com Configure your SQL capture

26www.cfunited.com SQL trace in progress

27www.cfunited.com Starting the tuning advisor

28www.cfunited.com Tuning advisor in progress

29www.cfunited.com Database Tuning Advisor results

30www.cfunited.com In the end, it’s really all about user perception A.Enable gzip compression of static site assets. B.Combine CSS and JS files for faster loading. C.Enable expiration tags for images, CSS, and javascript files for a future date. D.Use a tool like ySlow to identify user-side issues. E.Testing with tools like Jmeter can help you get a better user perspective on site performance.

31www.cfunited.com ReviewReview A.Your Coldfusion server does not work in a vacuum. B.Identify your dominant consumer first, and address each until acceptable performance is achieved. C.Its not always about the code. D.User perception is the final word in web site performance measurement.

32www.cfunited.com LinksLinks A.VisualVM - (visualGC available in the plugin center) B.Netbeans - ml ml C.HPJmeter – D.Free Extended Task Manager -

33www.cfunited.com Questions?Questions? A.Chris Peterson, Server Engineer B.Alagad, Inc. C. E.(888) Alagad4 ext 369 F.Override11 (twitter)