NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How do I specify a Process Name?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
ekartzma



Joined: 02 Mar 2010
Posts: 9

PostPosted: Fri May 28, 2010 12:13 am    Post subject: How do I specify a Process Name? Reply with 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.

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.





PostPosted: Fri May 28, 2010 6:29 am    Post subject: [platform-dev] Re: How do I specify a Process Name? Reply with quote

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: 9

PostPosted: Fri May 28, 2010 3:00 pm    Post subject: Reply with 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.

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.





PostPosted: Fri May 28, 2010 3:27 pm    Post subject: [platform-dev] Re: How do I specify a Process Name? Reply with quote

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

PostPosted: Sat May 29, 2010 1:25 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo