如何在VisualVM中更改应用程序名称? [英] How to change the application name in VisualVM?

查看:147
本文介绍了如何在VisualVM中更改应用程序名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VisualVM中更改应用程序名称?我有多个应用程序,从我的IDE开始,但很难区分它们,名称是相同的,唯一的区别是PID。所以我想给他们有意义的名字,但菜单项重命名..被禁用。我该如何重命名该应用程序?
在我看来,重命名只能用于快照 - > 快照描述

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

推荐答案

重命名删除菜单项仅对不适用于应用程序的快照启用。

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

如果要更改为应用程序显示的名称,可以设置是否通过JVM命令行arg启动您的申请:

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

这篇关于如何在VisualVM中更改应用程序名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆