| By Matt Maccaux | Article Rating: |
|
| February 18, 2006 01:45 PM EST | Reads: |
24,280 |
Now comes the part where you actually run your capacity-planning test. The next question is, "How do I load the users to simulate the load?" The best way to do this is to try to emulate how users hit the server during peak hours. Does that user load happen gradually over a period of time? If so, a ramp-up-style load should be used, where x number of users are added ever y seconds. Or, do all of the users hit the system in a very short period of time all at once? If that is the case, a flat run should be used, where all of the users are simultaneously loaded onto the server. These different styles will produce different results that are not comparable. For instance, if a ramp-up run (Figure 5) is done and you find out that the system can support 5,000 users with a response time of 4 seconds or less, and then you follow that test with a flat run with 5,000 users, you'll probably find that the average response time of the system with 5,000 users is higher than 4 seconds. This is an inherent inaccuracy in ramp-up runs that prevents them from pinpointing the exact number of concurrent users that a system can support. For a portal application, for example, this inaccuracy is amplified as the size of the portal grows and as the size of the cluster is increased.
This is not to say that ramp-up tests should not be used. Ramp-up runs are great if the load on the system is slowly increased over a long period of time. This is because the system will be able to continually adjust over time. If a fast ramp-up is used, the system will lag and artificially report a lower response time than what would be seen if a similar number of users were being loaded during a flat run. So, what is the best way to determine capacity? Taking the best of both load types and running a series of tests will yield the best results. For example, using a ramp-up run to determine the range of users that the system can support should be used first. Then, once that range has been determined, doing a series of flat runs at various concurrent user loads within that range can be used to more accurately determine the capacity of the system (Figure 6).
Soak Tests
A soak test is a straightforward type of performance test. Soak tests are long-duration tests with a static number of concurrent users that test the overall robustness of the system. These tests will show any performance degradations over time via memory leaks, increased garbage collection (GC), or other problems in the system. The longer the test, the more confidence in the system you will have. It is a good idea to run this test twice - once with a fairly moderate user load (but below capacity so that there is no execute queue - Figure 7), and once with a high user load (so that there is a positive execute queue - Figure 8).
These tests should be run for several days to really get a good idea of the long-term health of the application. Make sure that the application being tested is as close to real world as possible with a realistic user scenario (how the virtual users navigate through the application), testing all of the features of the application. Ensure that all the necessary monitoring tools are running so that problems will be accurately detected and tracked down later (Figure 9).
Peak-Rest Tests
Peak-rest tests are a hybrid of the capacity-planning ramp-up-style tests and soak tests. The goal here is to determine how well the system recovers from a high load (such as one during peak hours of the system), goes back to near idle, and then goes back up to peak load and back down again.
The best way to implement this test is to do a series of quick ramp-up tests followed by a plateau (determined by the business requirements), and then a dropping off of the load. A pause in the system should then be used, followed by another quick ramp-up - then you repeat the process. A couple of things can be determined from this: Does the system recover on the second "peak" and each subsequent peak to the same level (or greater) than the first peak? And does the system show any signs of memory or GC degradation over the course of the test? The longer this test is run (repeating the peak/idle cycle over and over), the better idea you'll have of what the long-term health of the system looks like.
Summary
This article has described several approaches to performance testing. Depending on the business requirements, development cycle, and life cycle of the application, some tests will be better suited than others for a given organization. In all cases though, you should ask some fundamental questions before going down one path or another. The answers to these questions will then determine how to best test the application. These questions are:
- How repeatable do the results need to be?
- How many times do you want to run and rerun these tests?
- What stage of the development cycle are you in?
- What are your business requirements?
- What are your user requirements?
- How long do you expect the live production system to stay up between maintenance downtimes?
- What is the expected user load during an average business day?
Published February 18, 2006 Reads 24,280
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Matt Maccaux
Matt Maccaux is a performance engineer on WebLogic Portal at BEA.
![]() |
Deepak Batra 04/26/06 09:08:56 PM EDT | |||
Great article by Matt. It definitely explains the process of WebLogic Performance Tuning & Testing well. Arcturus (www.arcturustech.com) can help make the process of WebLogic Performance Tuning easy. AutoPilot WL, our flagship product completely automates WebLogic tuning process. AutoPilot uses a wizard based approach, it takes a load script, generates load and monitors j2ee application & WebLogic's behavior (including transactions, WebLogic threads, ejbs, jms, jdbc, various pools and a lot more..). In the process, AutoPilot analyzes WebLogic & application's cumulative behavior after each run and makes appropriate adjustments to get the optimum performance. AutoPilot also automatically bounces WebLogic server as and when needed in the process. AutoPilot continues this process unless desired goals are achieved or certain user defined thresholds are reached. WebLogic tuning is in a way a misnomer, it is actually aligning WebLogic as per your application and environment's requirements. You can download an evaluation version of AutoPilot at the following url and try it for yourself. http://support.arcturustech.com/downloadpage.do You can get more details on WebLogic Performance Tuning Process using AutoPilot at the following URL. http://support.arcturustech.com/AutoPilot_WL_Help/Tuning_Your_WebLogic_S... It is recommended by Arcturus to use AutoPilot Advisor before tuning. Advisor analyzes complete application environment for any configuration related issues using its in built knowledge and gives recommendations. It is like attaching your WebLogic environment to a computer that runs a 1000 point inspection on it and either fixes issues or advises how to fix them. Advisor is a great way to find out where there is room for improvement even before you get into Performance Testing & Tuning. It even guides with the relevant BEA CRs that can save an outage situation. We recommend CRs based on their applicability (not blindly). We also understand no matter how much effort one puts into an application, we are bound to find apllication/weblogic issues that cause WebLogic server to hang. AutoPilot Detector and Blackbox handle those situations and provide you with an instant root cause report. Feel free to drop me an email (deepak@arcturustech.com) if you any questions at all. |
||||
![]() |
Deepak Batra 04/26/06 09:08:21 PM EDT | |||
Great article by Matt. It definitely explains the process of WebLogic Performance Tuning & Testing well. Arcturus (www.arcturustech.com) can help make the process of WebLogic Performance Tuning easy. AutoPilot WL, our flagship product completely automates WebLogic tuning process. AutoPilot uses a wizard based approach, it takes a load script, generates load and monitors j2ee application & WebLogic's behavior (including transactions, WebLogic threads, ejbs, jms, jdbc, various pools and a lot more..). In the process, AutoPilot analyzes WebLogic & application's cumulative behavior after each run and makes appropriate adjustments to get the optimum performance. AutoPilot also automatically bounces WebLogic server as and when needed in the process. AutoPilot continues this process unless desired goals are achieved or certain user defined thresholds are reached. WebLogic tuning is in a way a misnomer, it is actually aligning WebLogic as per your application and environment's requirements. You can download an evaluation version of AutoPilot at the following url and try it for yourself. http://support.arcturustech.com/downloadpage.do You can get more details on WebLogic Performance Tuning Process using AutoPilot at the following URL. http://support.arcturustech.com/AutoPilot_WL_Help/Tuning_Your_WebLogic_S... It is recommended by Arcturus to use AutoPilot Advisor before tuning. Advisor analyzes complete application environment for any configuration related issues using its in built knowledge and gives recommendations. It is like attaching your WebLogic environment to a computer that runs a 1000 point inspection on it and either fixes issues or advises how to fix them. Advisor is a great way to find out where there is room for improvement even before you get into Performance Testing & Tuning. It even guides with the relevant BEA CRs that can save an outage situation. We recommend CRs based on their applicability (not blindly). We also understand no matter how much effort one puts into an application, we are bound to find apllication/weblogic issues that cause WebLogic server to hang. AutoPilot Detector and Blackbox handle those situations and provide you with an instant root cause report. Feel free to drop me an email (deepak@arcturustech.com) if you any questions at all. |
||||
![]() |
news desk 02/18/06 03:08:31 PM EST | |||
Performance testing a J2EE application can be a daunting and seemingly confusing task if you don't approach it with the proper plan in place. As with any software development process, you must gather requirements, understand the business needs, and lay out a formal schedule well in advance of the actual testing. |
||||
- CleverTouch achieves compound growth of over 120% p.a., opens in Europe, and appoints new MDs and advisory board
- Hot Tech Firms at the 2012 DoDIIS Conference
- Oracle Bounces Back from Q2 ‘Aberration’
- Cloud Office and Collaboration Productivity Applications Market Shares, Strategies, and Forecasts, Worldwide, 2012 to 2018
- Oracle’s Great Suit Against Google to Go to Trial
- Oracle and Google Ordered Back into Android Settlement Talks
- Doug Morse Joins Cubic Transportation Systems in New Post of Vice President, Customer Experience
- Rapid Protect, a Leading Developer of Mobile Safety, Security and Collaboration Software, Announces Major Update of Its Mobile Applications and Web Service Platform
- SaaS Branding | 6 Challenges of Killer Cloud Brands
- Mobile Commerce News Weekly – Week of March 19, 2012
- CCC Information Services Inc. Leverages Oracle Fusion Middleware
- Emulex Partners with Myricom to Enter High Performance Networking Market for Low Latency Applications
- CleverTouch achieves compound growth of over 120% p.a., opens in Europe, and appoints new MDs and advisory board
- Hot Tech Firms at the 2012 DoDIIS Conference
- Oracle Bounces Back from Q2 ‘Aberration’
- Cloud Office and Collaboration Productivity Applications Market Shares, Strategies, and Forecasts, Worldwide, 2012 to 2018
- Oracle’s Great Suit Against Google to Go to Trial
- Oracle and Google Ordered Back into Android Settlement Talks
- Doug Morse Joins Cubic Transportation Systems in New Post of Vice President, Customer Experience
- Intel distributes open source LibreOffice
- Global Networking Hardware and Software (IT) Industry
- Rapid Protect, a Leading Developer of Mobile Safety, Security and Collaboration Software, Announces Major Update of Its Mobile Applications and Web Service Platform
- SaaS Branding | 6 Challenges of Killer Cloud Brands
- IEEE ICC 2012 to Feature “Paperless+” Wireless Networking Event from June 10 – 15 in Ottawa, Canada
- Java vs C++ "Shootout" Revisited
- Where Are RIA Technologies Headed in 2008?
- Configuring Eclipse for Remote Debugging a WebLogic Java Application
- XA Transactions
- Migrating a JBoss EJB Application to WebLogic
- An Introduction to Abbot
- The Top 250 Players in the Cloud Computing Ecosystem
- 'HTTP Session Replication Failure' Issues
- WebLogic Tutorial: "Integrating Apache Poi in WebLogic Server"
- Eclipse "Pollinate" Project to Integrate with Apache Beehive
- Failover and Recovery of Enterprise Applications - Part 1
- Monitoring and Controlling WebLogic Servers with WLST

















