NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
ekartzma
Joined: 02 Mar 2010 Posts: 7
|
Posted: Fri May 28, 2010 12:13 am Post subject: How do I specify a Process Name? |
|
|
When using JConsole or JPS, you can see all the PIDs of running JVMs on the local machine. Some show a "Name" and some don't. If I run a Java application I usually see the fully qualified main class name there. On the other hand, I always have a blank entry for the NetBeans IDE and another blank entry per NetBeans Platform application I run. There are others with blank entries too such as the JVM used by IE and Firefox to manage Applet VMs (though the applet vms themselves have a "Name").
I use JConsole in my development a lot and would like to make my NetBeans Platform applications provide a "Name" (automatically or otherwise) rather than showing up as a blank entry.
Does anyone know why some JVMs including the NetBeans created ones show up empty and how I can change that behavior? |
|
| Back to top |
|
 |
Tomas Hurka Posted via mailing list.
|
Posted: Fri May 28, 2010 6:29 am Post subject: [platform-dev] Re: How do I specify a Process Name? |
|
|
On 28 May 2010, at 02:15, ekartzma wrote:
| Quote: | When using JConsole or JPS, you can see all the PIDs of running JVMs
on the local machine. Some show a "Name" and some don't. If I run
a Java application I usually see the fully qualified main class name
there. On the other hand, I always have a blank entry for the
NetBeans IDE and another blank entry per NetBeans Platform
application I run. There are others with blank entries too such as
the JVM used by IE and Firefox to manage Applet VMs (though the
applet vms themselves have a "Name").
I use JConsole in my development a lot and would like to make my
NetBeans Platform applications provide a "Name" (automatically or
otherwise) rather than showing up as a blank entry.
| Use VisualVM instead of JConsole. it will show you application name
(in most cases) and it also provides more functionality than JConsole.
Bye,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic |
|
| Back to top |
|
 |
ekartzma
Joined: 02 Mar 2010 Posts: 7
|
Posted: Fri May 28, 2010 3:00 pm Post subject: |
|
|
Thanks for that. I gave VisualVM a try and it does indeed do a better job at naming the processes (there is only 1 labelled <Unknown Application>). I added the Visual-VM-MBeans plugin and got "The Plugin Installer found problem timeout of loading" for all Plugins I tried to install. However, it did show up as installed but disabled. A restart of the application seems to have fixed it and now I can see our MBeans through VisualVM.
All JVMs built on the NetBeans Platform show up in VisualVM as "NetBeans Platform application". Is there a way to customize that name? Perhaps a command-line parameter? |
|
| Back to top |
|
 |
Tomas Hurka Posted via mailing list.
|
Posted: Fri May 28, 2010 3:27 pm Post subject: [platform-dev] Re: How do I specify a Process Name? |
|
|
Hi,
On 28 May 2010, at 17:00, ekartzma wrote:
| Quote: | Thanks for that. I gave VisualVM a try and it does indeed do a
better job at naming the processes (there is only 1 labelled
<Unknown Application>). I added the Visual-VM-MBeans plugin and got
"The Plugin Installer found problem timeout of loading" for all
Plugins I tried to install. However, it did show up as installed
but disabled. A restart of the application seems to have fixed it
and now I can see our MBeans through VisualVM.
| Yes, we see that problem sporadically and restarting VisualVM always
solved it.
| Quote: | All JVMs built on the NetBeans Platform show up in VisualVM as
"NetBeans Platform application". Is there a way to customize that
name? Perhaps a command-line parameter?
| Yes, there is. Start your application with -J-
Dvisualvm.display.name="Your_name" See <https://visualvm.dev.java.net/issues/show_bug.cgi?id=290
Note you have to run VisualVM 1.2+ or Java VisualVM from JDK 6 Update
18 or newer.
Bye,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic |
|
| Back to top |
|
 |
william12
Joined: 29 May 2010 Posts: 5
|
Posted: Sat May 29, 2010 1:25 am Post subject: |
|
|
| I am also facing this issue but i got the idea from Google about this.Now i have different between them.Now its clear and good for all. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|