VisualVM
VisualVM is a tool that can connect to a running Java Virtual Machine (JVM) and provide real-time analysis capabilities into how stack and heap is being used within the environment. This is useful for troubleshooting memory leaks and class interaction at the JVM level.
Preparing to use VisualVM
-
Download VisualVM from the website
-
Unzip it the WPILib installation folder
- Windows (Powershell)
- Linux
- Follow the instructions on the Profiling with VisualVM page to modify the
build.gradlefile.
Running VisualVM
- Launch the VisualVM environment
- Windows (Powershell)
- Linux