In my project, multiple Java application will be started automatically. I want to profile and monitor them by VisualVM. However, click each Application node to start monitoring function by hand is time-consuming since the project will be launched repeatedly. What make things worse is that some application would be terminated due to exceptions like Memory Overflow before I click its node.
So I wonder if it is possible to support auto-start-monitoring function for certain types of applications? Give users some GUI to define the application type list (e.g. by registering the main class). And then VisualVM will automatically open the monitor overview or tracer plugin to gather the data as soon as it has been found.
In fact, I already made my own VisualVM plugin to solve this problem. But I have to make some change to the "Tracer-Framework" plugin to support new methods to fetch the TracerView Object.
I do not think this solution is beautiful. So I wonder if VisualVM project could provide official solution to my requirement?