oracle / visualvm

VisualVM is an All-in-One Java Troubleshooting Tool
https://visualvm.github.io/
Other
2.86k stars 299 forks source link

Options for the default tab and applications #97

Open ParticleMon opened 6 years ago

ParticleMon commented 6 years ago
  1. I would like to set which checkboxes are enabled in each tab by default (preferably in the UI), or at least in the app(s) loaded by default in connection with setting the default tab (#) on load:
    • visualvm --openid PID@#
    • java -Dvisualvm.id=AppID -jar application.jar / visualvm --openid AppID@#)

For instance, with the Monitor tab as the default (@2), I would like to enable only CPU and Memory, thus disable Classes and Threads.

When I need to monitor and/or tune performance of a certain app, I load VirtualVM and uncheck Classes and Threads (but prior to learning of the currently undocumented --openid, I had to first manually open the app and select the Monitor tab) sometimes over and over again and in fairly quick succession, which can be very tedious. Setting which checkboxes are enabled by default would be very helpful in this case and in general.

  1. I would also like --openid and --openpid to let VirtualVM automatically open launched apps when VirtualVM is already running.

  2. And I would also like to append " ($pid)" to the display.name as displayed in the UI (the name of applications as displayed, in the local and remote nodes) to disambiguate instances of an app with an identical display.name .

thurka commented 3 years ago
  1. Is already implemented since VisualVM 1.1
  2. Done in GH-89.