Blog

  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When trying to instrument a locally via the Atlassian SDK started Confluence with the Java VisualVM for Profiling a Confluence server, which has been locally started via the Atlassian SDK, should be straight forward. Start the server, attach the Java VisualVM and you are done. Unfortunately, when trying to instrument the classes deployed to the server for CPU profiling, the following exception is thrown on the console:

Code Block
languagetext
themeRDark
titleFound in Confluence Log / Console
Caused by: java.lang.NoClassDefFoundError: 
  org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr

...

Code Block
languagetext
themeRDark
titleStart Confluence locally in debug mode with profiling on
atlas-debug -Pprofiling

Then add a configuration via the Java VisualVM's UI to limit instrumentation to classes you want to take execution performance measurements and :

Image Added

Finally start the instrumentation

...

!

Finding the system property names took me some time, so hopefully this blog article shortens the time of searching for others.