Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Diagnosing Tough Performance Problems

Diagnosing Tough Performance Problems

Although many of the symptoms of performance problems (e.g., poor response time) are similar throughout the application life cycle, the underlying causes and the techniques used to diagnose them become more complex in later stages as the load increases and the configuration becomes more complex. In this article, we discuss the tools and techniques that are useful in diagnosing tough performance problems that occur under realistic high loads. We also illustrate why tools used in development or under limited load conditions are not suitable for finding such tough performance problems.

Reproducing Performance Problems Under Load
There are two principal kinds of performance problems:
persistent problems that affect the performance at all times, and transient problems that occur intermittently and for a limited amount of time. The former are typically easy to reproduce as they can be triggered by high enough workload. The latter are harder to reproduce because the right configuration, state, and workload are required to reproduce them. To diagnose tough performance problems under high load, we need a reliable way of reproducing the problem and the ability to examine the internals of the application under load.

Persistent performance problems (e.g., the Empty-Cart transaction always has poor response time) are often reproduced using load-testing tools. In contrast, current techniques for reproducing transient problems (e.g., response time of the entire system quadrupled for 15 minutes at 2:00 p.m. yesterday) involve guesswork and ad hoc testing in order to approximate the original configuration and load in the production environment. Using current approaches, it may take anywhere from weeks to months to reproduce and diagnose transient problems. An alternative is to use real workload technology, which records the production workload (including all transaction requests and responses) when the transient problem occurs, and plays it back in the test environment in order to reproduce the problem. This reduces the time to reproduce and ultimately solve these problems from weeks and months to hours and days.

Diagnosing the Root Cause
Once the performance problem is reproduced, diagnosing the root cause requires drill-down analysis that correlates external symptoms with potential root causes. This involves:

  • Finding the bottleneck or the transactions, beans, servlets, and methods that consume the most time
  • Breaking down the aggregate time spent in a type of transaction across the servlets, beans, and methods it uses
  • Correlating individual transactions from an HTTP request, through servlet and bean calls, and down to JDBC calls and SQL statements to find the chains of invocations that produce slow response time
  • Examining individual thread execution profiles to see which threads were the bottleneck and where the time was spent

    Profiling tools used by developers often provide aggregate information (e.g., statistical summaries of calls to methods) that helps in such analysis. However, they don't isolate individual calls or objects, nor do they gather information about arguments and results. Additionally, profiling tools that are based on the JVM profiling interface (JVMPI) suffer from a significant overhead (between 200 and 1,000%). This performance impact makes loading the application nearly impossible and significantly skews results. Profiling tools based on JVM sampling have lower overhead (around 100 to 200%) but provide even less information. Such tools can be used under higher load but are less helpful in diagnosing tough problems. Byte code instrumentation technology can provide an arbitrary level of detail, and its overhead can be managed by limiting the scope of instrumentation without sacrificing the level of detail. When properly implemented, gathering data using byte code instrumentation can have overhead as low as 5 to 50%.

    Production monitoring tools instrument a small subset of Java methods and report summary information on beans and methods that take the most time.

    These tools discard much of the detailed information required for root-cause diagnosis because they sample method calls and aggregate results in order to reduce overhead. While such monitoring highlights application bottlenecks in production, it does not go the proverbial "last mile." Developers still invest significant time and effort to reproduce the bottleneck in the test lab to diagnose and fix the underlying problem.

    Detailed diagnostic tools are used in test environments to capture the details of each significant method call. Such tools fall into two categories: tools that aggregate and summarize the captured information online for presentation, and tools that save detailed information to disk for offline analysis. While both types of tools help find bottlenecks and provide a breakdown of aggregate transaction time, the second category also supports correlation of individual transactions through different software layers and examination of the execution profiles of individual threads. This analysis of individual transactions and threads is critical to diagnosing complex performance problems.

    In summary, diagnosing tough performance problems in J2EE applications requires a reliable way of reproducing the problem and a low-overhead technique to examine the internal details of the application under load. The capture and playback of real workload from production provides the best option for reproducing difficult performance problems. Performance diagnostic tools based on byte code instrumentation can capture and correlate individual method calls and thread invocations with low overhead and provide the best option for drill-down analysis.

  • More Stories By Ashutosh Tiwary

    Ashutosh Tiwary has 12 years of software development and performance consulting experience at Boeing, Hewlett-Packard, and Teknekron Communications Systems. He is a PhD
    candidate in computer science at the University of Washington, where his dissertation work forms the basis for Performant's technology.

    More Stories By Przemyslaw Pardyak

    Przemyslaw Pardyak codeveloped Performant's core technology and has eight years of research and development experience including performance management. He is a PhD
    candidate in computer science at the University of Washington.
    pp

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    @ThingsExpo Stories
    High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
    In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
    SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
    SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
    SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
    SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
    As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
    SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
    SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
    Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
    SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
    As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
    SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
    In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
    As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
    SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
    SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
    SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
    Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
    SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...