Arcturus AutoPilot Online Help Index > Tuning Your WebLogic Server

Tuning Your WebLogic Server with AutoPilot

   Previous Next vertical dots separating 

previous/next from index Index
 

AutoPilot Auto Tuning Process

 

AutoPilot automates the proven but laborious tuning process of "test, analyze and tune" for WebLogic Server. With AutoPilot Auto Tuning you can start the process of WebLogic tuning and AutoPilot takes it from there. You need not be watching the process or WebLogic Console. You can get the final reports when the process is completed (You can run it overnight, after each update to your application.). AutoPilot would inform the administrator using email in case there is an issue during the process.

 

Process of AutoPilot Auto Tuning consists of following steps

 

  1. Accepts an application load script for load generation on your application

  2. Generates load for a user specified period

  3. Keeps track of your application and WebLogic performance

  4. Analyzes performance with in built knowledge and it makes intelligent decisions based on each run of the test.

  5. Tunes, restarts WebLogic and follows the steps from 2 to 5 again unless user specified desired conditions are achieved.

Before you start Auto Tuning WebLogic using AutoPilot

 
  1. To test and learn how AutoPilot auto tunes your WebLogic server, Avitek Medical Records (medrec) domain can be used. Medrec application comes as an example J2EE application from BEA and can be quickly created and setup for testing purposes. To emulate production like environment, this domain should have separate admin and managed server. Managed Server should be configured for remote start and stop from the console using node manager.

  2. Test remote start/stop of managed server using the console (node manager should be configured and running).

  3. Your/Medrec application should be deployed on managed server.

  4. Make sure your/medrec application is working properly before starting tuning using AutoPilot 2005 Tune Wizard. If medrec is used for learning AutoPilot 2005 then you can test it by going to http://{your_managed_server_ip}: {you r_managed_server_port}/index.jsp.

  5. Make sure you have defined the right WebLogic Thread queue (in case custom WebLogic Thread queue is to be tuned) and database connection pool for tuning in AutoPilot Configuration
  6. An Important Note on Tuning WebLogic on Large Computers. As a rule of thumb, we have seen that JVMs perform best if the ratio of # of CPUs per JVM is approximately 2. AutoPilot is created to handle auto tuning on large multiway boxes. Although these machines can't be saturated with one JVM, you can define the max cpu utilization in AutoPilot configuration to emulate the amount of CPU that will be available to a JVM in production environment.

For example

If you are working with a 10 CPU machine and you plan to run 5 JVMs on it in production environment, you should set the max cpu utilization for AutoPilot to 20 % (or a little bit less than that). This way AutoPilot would tune WebLogic and account for that 100 % of the CPU is not going to be available to a single JVM in production environments.

 

This value should also be used for considering that in production enviroment you wouldn't want all the CPU to be utilized 100%. You need to account for bursts or system activities at times. This # shoule be derived from the example above.

 

Keep in mind this property MaxCPUUtilization only comes in picture when AutoPilot is tuning WebLogic Servers and NOT in production monitoring or at any other time.

Auto Tuning WebLogic using AutoPilot

 
  1. Start the Tuning Wizard using the method for your platform:

Windows: To start the AutoPilot Tuning Wizard in Windows, select Start > Programs > Arcturus AutoPilot 2005 > AutoPilot Tune Wizard.

 

Unix: To start the AutoPilot Tuning Wizard in Unix, you can go to AutoPilot Install directory and execute ./AutoPilot_TuneWizard&  AutoPilot Tune Wizard only runs in a graphical display mode. At the current time console mode is not supported.

 

When you initiate the AutoPilot Tuning Wizard on your selected platform, the Welcome screen illustrated below will be displayed. This screen introduces you to the AutoPilot Tuning Wizard by briefly describing the tuning process. While using the Tuning Wizard, you will be asked a few questions about your application environment and will be presented with a few settings related to your applications usage. This information allows Tune Wizard to appropriately tune the WebLogic Server.

 

 

  1. Click Next to continue. The next screen that appears asks you to enter your WebLogic server details.

 

 

  1. Enter your server's details in the text boxes displayed.

Note about Managed Servers: AutoPilot only tunes one managed server at a time. When tuning is complete on the first server, you can replicate the configuration on other servers. AutoPilot also supports server clustering, and all of the servers can be running when one is being tuned. Once optimum configuration is achieved using  AutoPilot Tune Wizard, that configuration will need to be copied to other members of the cluster manually.

 

  1. When you have finished entering the required information, click Next for the Set Your Conditions screen, which is illustrated below. This acreen allows you to configure the load that the server will experience. It is recommended that you start with lower numbers to get a feel for how much load an application can handle. Also, this screen allows you to turn Capacity Determination on or off. Capacity Determination will be described in Step Six.

 

Currently AutoPilot support use of JMeter for Load Generation. Shortly Load Runner will be supported for load generation too. Please contact Arcturus if you have requirement for integration of AutoPilot to any other load generation tool.

 

 

 

  1. Select how much load to start with by moving the first slider. As mentioned above, it is recommended that you start with a lower number to get a feel for how AutoPilot works with your application.

 

  1. Optional: Click the checkbox next to Click Here to turn on Capacity Determination.

When Capacity Determiniation is Off, the tuner will tune the server for the load indicated by the first slider only. When the tuning has completed the process for that many emulated users, the process will be done, and the server will be tuned for the selected amount of users, without testing to see if more load can be handled by the server.

 

When Capacity Determination is On, the tuning process will run starting with the number load selected with the first slider, and will keep adding emulated users in increments of 5 until it reaches the number selected with the second slider. This prevents the tuner from adding load amounts that will never actually be experienced in a production environment. The number selected with the second slider should be the maximum number of users you expect to be accessing your server at one time.

 

If the server hangs during tuning, the AutoPilot Detector and AutoPilot Blackbox will be executed, and you will be able to determine the issue that caused the server to hang.

 

  1. Click Next to continue setting your conditions. the following screen will appear:

 

 

  1. Move the No. of Samplings Per Session slider to a position higher than the number of samplings of data you want to take per session. For example, if you want to AutoPilot to make decision based on 10 samplings, move the slider to 15. This will allow sufficient time to complete the samplings, and to complete a "cooling down" period, where all transactions are allowed to finish. Only samplings taken during the execution of test are used for decison making.

More samplings may mean the tuning may be more accurate. However, the higher the amount of samplings per session, the more time it will take to complete tuning.

 

  1. Move the Duration Between Samplings slider to the time in seconds of the time duration between samplings.

    The third slider on this screen is automatically set based on your selections for the other two sliders. It indicates the duration of time in seconds of each test.

     

 

  1. Click Next to start tuning. You will get the set time to start tuning panel. The following screen will appear:

 

 

 

You can start tuning right away or schedule tuning to automatically start at a later time. Scheduling comes handy when you want to start tuning in off hours.

 

 

 

If you schedule tuning to start at a later time waiting to start tuning screen shows until the time for tuning to start.

 

 

        On start of the tuning WebLogic Tuning Status screen appears.

 

This screen is an example of what you will see at the beginning of the tuning process. A description of the parts of this screen follow.

 

Status Message Box: The top textbox contains messages that describe the progress of the tuning session.

 

Thread Box: This chart shows the number of samplings that have been taken so far.

 

Clock: This indicates the time that has elapsed since tuning began.

 

Test Progress: Indicates the percentage of tuning that has been completed.

 

Note: Do not press the Cancel button during tuning, because it will stop the process.

 

Image below is showing Tuning/Load Test in progress.

 

 

 

 

Image below is showing Tuning Completed for the desired load. It also shows when Capacity Determination is On AutoPilot Tune Wizard would bump up the load and re-tune unless desired max load is reached. AutoPilot also accounts for CPU utilization and can be configured to stop when a certain CPU utilization level is reached.