Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the application name in VisualVM?

How can i change the application name in VisualVM ? I have multiple applications that where started from my IDE, but it's hard to distinguish them, there name are equal and the only difference is the PID. So i want to give them meaningful names, but the menu-item "Rename.." is disabled. How can i rename the application ? It seems to me like rename is only possible on snapshots -> descripion of snapshots

disabled "Rename" menu

like image 630
Chriss Avatar asked Dec 28 '22 09:12

Chriss


1 Answers

Rename and Remove menu item are enabled only for snapshots not for applications.

If you want to change the name displayed for the application you can set if through a JVM command line arg when you launch your application :

-Dvisualvm.display.name=ApplicationName
like image 130
aleroot Avatar answered Dec 29 '22 22:12

aleroot