How to change the application name in VisualVM?

删除回忆录丶 提交于 2019-12-22 08:48:14

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/8413259/how-to-change-the-application-name-in-visualvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!