Load Testing with DevTest Agents

Document ID:  TEC1547352
Last Modified Date:  07/13/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Continuous Application Insight
  • CA Service Virtualization

Releases

  • CA Continuous Application Insight:Release:10.0
  • CA Continuous Application Insight:Release:7.1
  • CA Continuous Application Insight:Release:7.5.0
  • CA Continuous Application Insight:Release:7.5.1
  • CA Continuous Application Insight:Release:8.0.0
  • CA Continuous Application Insight:Release:7.5.2
  • CA Continuous Application Insight:Release:8.0.1
  • CA Continuous Application Insight:Release:8.0.2
  • CA Continuous Application Insight:Release:8.1
  • CA Continuous Application Insight:Release:8.2
  • CA Continuous Application Insight:Release:8.3
  • CA Continuous Application Insight:Release:8.4
  • CA Continuous Application Insight:Release:8.5
  • CA Continuous Application Insight:Release:9.0
  • CA Continuous Application Insight:Release:9.1
  • CA Continuous Application Insight:Release:9.5.1
  • CA Continuous Application Insight:Release:9.5
  • CA Service Virtualization:Release:10.0
  • CA Service Virtualization:Release:10.1.0
  • CA Service Virtualization:Release:7.1
  • CA Service Virtualization:Release:7.5.0
  • CA Service Virtualization:Release:7.5.1
  • CA Service Virtualization:Release:7.5.2
  • CA Service Virtualization:Release:8.0.0
  • CA Service Virtualization:Release:8.0.1
  • CA Service Virtualization:Release:8.0.2
  • CA Service Virtualization:Release:8.1
  • CA Service Virtualization:Release:8.2
  • CA Service Virtualization:Release:8.3
  • CA Service Virtualization:Release:8.4
  • CA Service Virtualization:Release:8.5
  • CA Service Virtualization:Release:9.0
  • CA Service Virtualization:Release:9.1
  • CA Service Virtualization:Release:9.5.1
  • CA Service Virtualization:Release:9.5

Components

  • CA ITKO LISA PATHFINDER:ITKOPF
  • CA ITKO LISA Virtual Services Environment (VSE):ITKOVS
Introduction:

Java Virtualization with a DevTest agent can be very powerful. However, unique problems may arise when load testing with a DevTest agent.

Background:

Prerequisite: The DevTest agent must be installed, transactions captured and a working Virtual Service deployed.
This document assumes the VSE is configured for load testing and operating correctly.

If you need assistance with any of these tasks, please open a support ticket.

Environment:
All supported DevTest platforms.
Instructions:

Under normal conditions, a DevTest agent has negligible effects on an environment.
However, the DevTest agent was not designed for load testing.
The DevTest agent is a design testing tool, not a performance testing tool.

The JVM where the agent is installed has many ways of dealing with an increased load like using threads. Any java agent, including the DevTest agent, does not have this luxury.
Therefore, expectations and testing procedures will need to be adjusted.

Indications of load test issues:

  • VSE errors.
  • Errors on the application side due to dropped transactions or connections.
  • Errors or Warnings in the agent log including:
    • Message Flooding – Too many transactions are being processed.
      Default value: 50 transactions per second.
      CPU Thrashing – The CPU is too high for a period of time.
      Default values: > 80% for 5 seconds.
    • GC Thrashing – The java garbage collector is having trouble freeing up enough memory to continue processing.
      Default values:
      Memory:  > 95% of heap or > 90% of permgen for 3 seconds.
      Agent maintenance operations: CPU < 0.05

How to reduce an agent bottleneck:

  • Understand the test:
    Exactly what are you trying to accomplish?
    Will this load test accomplish it?
  • Reduce the load:
    Will a less stressful load test accomplish the same thing?
  • Transaction capture levels should be set to count:
    Transactions should never be captured from a Virtual Service because it doubles the agent overhead and this transaction has already been captured.
    Best Practice: Leave capture levels at “Count” unless you specifically need to capture transactions.
  • Increase the memory for the application’s JVM during the load test:
    This will trigger GC collection less often – however, too much memory will cause additional issues.
  • Adjust properties using ATK or rules.xml.
    Note: Adjustments in ATK take effect immediately while changes in rules.xml require an agent restart.
    Message Flooding
    These property values should be adjusted based on the hardware to handle the load. Message Flooding messages are meant for information only and do not indicate an overload situation.

    Properties to adjust:lisa.agent.stats.alarm.threshold.messages.per.interval, lisa.agent.stats.alarm.threshold.transactions.per.interval
    CPU Thrashing
    and GC Thrashing
    These messages indicate the hardware and/or JVM configuration is at or approaching the physical limits.
    An overloaded VSE, even on a different physical box, can also cause these messages.

    CPU property values to adjust (not recommended): lisa.agent.stats.alarm.threshold.cpu.num.intervals, lisa.agent.stats.alarm.threshold.cpu
    GC property values to adjust (not recommended): lisa.agent.stats.alarm.threshold.gc.num.intervals, lisa.agent.stats.alarm.threshold.heap, lisa.agent.stats.alarm.threshold.permgen
  • Run the load test on a faster box,
    However, doing so may invalidate the load test.
  • Eliminate transactions that produce large payloads.
    The larger the payload the more resources required for the agent to process.
  • Reduce agent logging:
    See DevTest_Home/rules.xml.sample for example.
    Note: The default agent logging level is “Warning”, setting the level higher will have only a small effect.
  • Reduce the non-load transactions:
    Do not run transactions that are not part of the load test.
  • Virtual Service Environment (VSE):
    Make sure the VSE has been optimized for load testing.
    An non-optimized or overloaded VSE will cause the agent to wait on the replies, resulting in CPU and GC thrashing for the agent JVM.
    The VSE and all deployed Virtual Services (VS) run under one JVM, therefore reduce the number of VSs running.
    Eliminate all Exceptions and Errors in all VSs, even the one not used in the load testing.

Every environment and load test is different. In the end, it may not be possible to eliminate enough load from the agent and still perform the required test.

Since the DevTest agent was not designed for load testing, this type of testing is inherently unsupportable.

However, support will offer a best effort and can offer general guidelines for your unique environment.

Additional Information:

Not applicable

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >