Setting up VisualVM

Post Reply
UrbanCyborg
Posts: 640
Joined: Mon Nov 15, 2021 9:23 pm

Setting up VisualVM

Post 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
Cyberwerks Heavy Industries -- viewforum.php?f=76
User avatar
ChR_is
Posts: 125
Joined: Wed Sep 22, 2021 5:48 pm

Re: Setting up VisualVM

Post 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_ExternalProfiler
VMD_RunWIthExternalProfilerSupport.png (17.38 KiB) Viewed 5394 times
VisualVM:
VisualVM
VisualVM
VisualVM_ProfileVMDApp.png (25.18 KiB) Viewed 5394 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
VisualVM_ProfileCPU.png (103.66 KiB) Viewed 5394 times
UrbanCyborg
Posts: 640
Joined: Mon Nov 15, 2021 9:23 pm

Re: Setting up VisualVM

Post 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
Cyberwerks Heavy Industries -- viewforum.php?f=76
Post Reply

Return to “Module Designer”