View Yourkit Java Profiler Example UK. Attaching application to profiler and measuring cpu and memory usage. March 16, 2021 yourkit java profiler 2021.3 released.
Java agent profilers use the java instrumentation api to inject code into your application. To configure confluence's jvm to use the yourkit agent, you need to add a parameter to catalina_opts in the bin/setenv.bat file in your confluence application directory. I am using yourkit java profiler 11.0 and it very good in order to memory optimization and monitoring cpu time.
For an example, see spring aop method profiling.
But, your kit provides both the features at the same time. In cq 4.2, the serverctl script has become more advanced, allowing for providing various options on startup. For example, you might add c:\program files\yourkit java profiler 6.0.12\bin\win32 to your path, via control panel, system, advanced, environment variables. March 16, 2021 yourkit java profiler 2021.3 released.