https://issues.apache.org/bugzilla/show_bug.cgi?id=41992
--- Comment #2 from Matthew Sacks <matt...@matthewsacks.com> 2010-03-27 22:21:23 UTC --- (In reply to comment #0) > 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. I'd be curious to gain some further clarification on this patch. Is the purpose of JAVA_EXEC to explicitly list where the java executable binary is located for purposes of administration and display? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org