|License Type||SaaS & On-Premise|
|Agent Mode||Assess & Protect|
|Main Product Category||Java Agent|
After configuring your application to use the Contrast agent, your app's startup time is much slower.
The time for an application to start up, referred to as startup performance, can be affected when Contrast is configured for assessment purposes. The startup is a crucial time for the agent, as the main operation involves analyzing libraries for reporting purposes. Many applications are affected by 20% to 30% as part of the startup cost for security analysis. Some applications can be affected by 2x to 3x depending on the number of libraries loaded and, in Java versions prior to JDK 8, the configuration of the Permanent Generation space.
If the expected range of performance degradation is too much for your environment, or you're experiencing worse conditions, we have a few options which may help. These are detailed here: Improving Startup Performance
If startup is still unmanageable after using these options, let's do a couple things that will help us isolate the problem:
- Get Contrast startup profile information. The agent can be configured to dump startup profile information to stdout. To enable this, pass the following JVM option alongside your -javaagent flag:
- Record a full profile of the application startup with Contrast following these steps: How to generate a YourKit session
Please submit a ticket and attach the results of this profiling.