|License Type||SaaS & On-Premise|
|Main Product Category||Java Agent|
After configuring your application to use the Contrast agent in Assess mode, what is the anticipated performance impact on the application?
It's probably more important to think about how Contrast affects the round-trip time. In typical applications, Contrast adds most time to a request that contains a lot of business logic. Round trip times for static resources typically don't get measurably worse. In requests where the total round-trip time is dominated by database or Web Service calls, Contrast's effect will be less noticeable.
The following steps can be taken to tune the agent's performance in Assess mode:
- Ensure that the server meets the recommended system requirements and the server has enough free memory before the Java agent is installed.
- Run Contrast in Sampling mode, and change sampling frequency to be less frequent.
- Run Contrast during nightly integration tests.
- Run Contrast in an alternate environment (QA system or DEV environment).
- Run Contrast on a single node in a load balanced environment.
While the options above should provide the biggest boost to performance, you can try the following steps to tune performance further.
- Check that the agent's logging level is set to "Warn" or "Error".
- Turn off response scanning by setting:
-Dcontrast.assess.enable_scan_response=false(please note that this will lead to certain findings, such as those around misconfigured headers for the application, to no longer be reported).
If performance is still outside of the expected degradation after following the steps above, we can investigate further by recording a full profile of your app running with Contrast following these steps: How to generate a YourKit session
Please submit a ticket and attach the results of this profiling.