You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/03/30 12:52:25 UTC

DO NOT REPLY [Bug 41992] New: - Need ability to set OS process title

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41992>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41992

           Summary: Need ability to set OS process title
           Product: Tomcat 6
           Version: 6.0.10
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: yozh@mx1.ru


Sun JDK (and maybe others) have cool feature: you can make symlink to "java" executable, and execute 
java from that symlink, and then you will see your tomcat java process in process list with name of your 
symlink and not java. This is very useful for administration.

So it would be great if Tomcat supported one more parameter: OS environment variable JAVA_EXEC.

Example:

# ./bin/startup.sh                                                 
Using CATALINA_BASE:   /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10
Using CATALINA_HOME:   /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10
Using CATALINA_TMPDIR: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Using JAVA_EXEC:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
# ps ax | egrep (java|tomcat) | grep -v grep                       
 1712  p1  S      0:04.30 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java 
-Djava.util.logg
# ./bin/shutdown.sh                                                
...
# ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java super-duper-
tomcat
# JAVA_EXEC=/Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat ./bin/
startup.sh               
Using CATALINA_BASE:   /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10
Using CATALINA_HOME:   /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10
Using CATALINA_TMPDIR: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Using JAVA_EXEC:       /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat
# ps ax | egrep (java|tomcat) | grep -v grep                                                                     
 1829  p1  R      0:03.86 /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat -
Djava.util.loggi
# killall super-duper-tomcat                                                                                     
# ps ax | egrep (java|tomcat) | grep -v grep                                                                     

It is also possible to make hardlinks in $JAVA_HOME/bin/tmp/ to have process name shown in "top" 
output.

I have tested patch only under Mac OS X.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41992] - Need ability to set OS process title

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41992>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41992





------- Additional Comments From yozh@mx1.ru  2007-03-30 03:54 -------
Created an attachment (id=19845)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19845&action=view)
The patch


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org