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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to