Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change java.exe to java program name in o/s process list

843798May 14 2005 — edited Oct 7 2005
Hi,

This will appear to be a very strange question, but I do have good reasons for asking it.. When I start a Java program I use for example:
java MyProgramA
and then look at an O/S process list (for example the task manager in Windows) I see CPU activity listed under the program java.exe. Is there a way to notify the O/S at program startup that I want this process to be associated with MyProgram and not java.exe?

So instead of seeing a list like this when I run three different Java programs:
Image Name   User Name     CPU     Mem Usage
----------   ---------     ---     ---------
java.exe     javaUser      08      36,796K
java.exe     javaUser      15      36,796K
java.exe     javaUser      40      36,796K
I want to see something like this:
Image Name   User Name     CPU     Mem Usage
----------   ---------     ---     ---------
MyProgramA   javaUser      08      36,796K
MyProgramB   javaUser      15      36,796K
MyProgramC   javaUser      40      36,796K
In one case I do have some control / flexibility over how these are started and in other cases I have much less control and would hope for a solution that could be applied universally to all java.exe invocations (as a suggested procedure for a user).

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2005
Added on May 14 2005
7 comments
932 views