Page 1 of 1
Setting up VisualVM
Posted: Sun Dec 15, 2024 6:40 pm
by UrbanCyborg
Does anyone here have any experience with setting up VisualVM? All the docs and the interface look like they were intended for Linux hackies, which I are not. When I run VDM, it and its debugger process only show up as pids, and much of the profiling functionality is disabled. It suggests attaching to the process, but I'm out of my depth with that.
Reid
Re: Setting up VisualVM
Posted: Sun Dec 29, 2024 11:28 pm
by ChR_is
There's no magic to it really. You just start VisualVM and then you run your VMD project with external profiler support. A new "Local Application" will pop up in VisualVM that you can then inspect/profile.
VMD:

- VMD_ExternalProfiler
- VMD_RunWIthExternalProfilerSupport.png (17.38 KiB) Viewed 5392 times
VisualVM:

- VisualVM
- VisualVM_ProfileVMDApp.png (25.18 KiB) Viewed 5392 times
if you want to profile your cpu usage for example you need to invoke the cpu profiler and add the classes to monitor or the whole package like so:

- VisualVM_ProfileCPU
- VisualVM_ProfileCPU.png (103.66 KiB) Viewed 5392 times
Re: Setting up VisualVM
Posted: Wed Jan 01, 2025 9:00 am
by UrbanCyborg
Thanks, Chris. I wasn't using the Run with External Profiler option. Somehow I'd remembered it as something that was set in VMD preferences. My doh!
Reid