Page 1 of 1

Profiling the performance of VM modules.

Posted: Sun May 31, 2020 12:06 pm
by nekomatic
A question for module developers. Same asked on the FB group.
I'm courious how many of you also uses any JVM profiler like i.e. VisualVM (free) of JProfiler (commercial) to verify your code performance in the VM? I guess it may be relevant considering some people experiencing performace issues in VM 2.

Re: Profiling the performance of VM modules.

Posted: Sun May 31, 2020 12:23 pm
by arbuxMusic
I am just getting back into module development after a break away. I was successfully using visualvm under version 1 to find and resolve performance issues.
I was coding all classes in question in Eclipse with a test harness to test against VisualVM. I haven't applied the VisualVM interface to the VM runtime.

I am just re-looking at the tool chain now to see if there is a better way to structure my projects to work well with performance testing while being easy to integrate in to the interface.

Re: Profiling the performance of VM modules.

Posted: Sun May 31, 2020 3:43 pm
by terrymcg
There was a thread about this a while back: viewtopic.php?f=9&t=230&hilit=profile

I recall getting it working at one point, but something in my setup broke eventually and I haven't been back to it for quite a while.

Cheers,
--
Terry McG

Re: Profiling the performance of VM modules.

Posted: Sun May 31, 2020 5:00 pm
by nekomatic
terrymcg wrote: Sun May 31, 2020 3:43 pm There was a thread about this a while back: viewtopic.php?f=9&t=230&hilit=profile

--
Terry McG
I also use VisualVM, recentry switched to JProfiler - a bit expensive but more stable and much easier to use. I remember since certain version of VisualVM it there is a need to specify which classes should be included in the profiler - sometimes stopping and starting the profiler i.e. to switch from CPU to Memory profiler breaks something and VisualVM needs to be restarted. But overall works well.

Re: Profiling the performance of VM modules.

Posted: Mon Jun 01, 2020 9:23 pm
by flucatcher
Used it a bit but have some problems with the beta version of the designer. Need to test it with "Run with external profiler support", in that mode I only have access to my own modules, none of the Cherry audio ones.

Re: Profiling the performance of VM modules.

Posted: Mon Jun 01, 2020 11:11 pm
by nekomatic
flucatcher wrote: Mon Jun 01, 2020 9:23 pm Need to test it with "Run with external profiler support", in that mode I only have access to my own modules, none of the Cherry audio ones.
I think thats a good thing - in this mode they can probably ease some security measures to give us better visibility on what's under the hood :)

Re: Profiling the performance of VM modules.

Posted: Tue Jun 02, 2020 8:49 pm
by flucatcher
Yep, agree, if they can open up for more info its absolutely worth it. But miss being able to compare CPU of my module with CPU of one of theirs.
Complete newbie when it comes to profiling in Java so need to watch some tutorials.

Re: Profiling the performance of VM modules.

Posted: Tue Jun 02, 2020 9:38 pm
by nekomatic
This seems like just a first step in a path on the roadmap - I'm sure they will do something about this. Slowly but surely :)