|
From: Leif M. <le...@ta...> - 2009-10-29 16:18:11
|
Dean, The PID file should be getting written by the shell script that ships with the Wrapper. Could you please confirm that you are using our script? Most likely you are. 1) When you first start out, please confirm that no pid file, wrapper process, or java process are running. 2) run the script with the "console" command. This should launch the Wrapper, and Java. 3) There should now be a PID file containing the Wrapper's PID. Please confirm the id in the PID file, and also print out a "ps -faux". 4) Does the PID in the file match that of the Wrapper? If not, please send me your shell script and wrapper.conf file as attachments. Also please send me the name of your OS and version. I should be able to find the problem from that. > Also, the 4017 command above seems odd > to me as it passes in all 7 arguments but the WrapperStartStopApp is > supposed to only pass in the 2 start args and the 3 stop args I would think > into the tomcat bootstrap process? This is actually working correctly. The Wrapper is actually launching the WrapperStartStopApp class, not the Bootstrap class. The WrapperStartStopApp class is responsible for running the startup and stop classes with their parameters at the appropriate times. This looks like you have set it up correctly: org.tanukisoftware.wrapper.WrapperStartStopApp org.apache.catalina.startup.Bootstrap 1 start org.apache.catalina.startup.Bootstrap TRUE 1 stop Cheers, Leif On Thu, Oct 29, 2009 at 11:43 PM, Dean Hiller <de...@xs...> wrote: > I am starting to play with JSW for tomcat 3.3.7, 64 bit for fun. when I run > ./tomcat start (tomcat was the wrappertest file) > my tomcat starts fine but then when running > ./tomcat status > it says the pid file is stale yet my wrapper and tomcat are running(and if I > kill tomcat, the wrapper restarts it). ie. my status and stop commands > completely don't work because of some pid problem. > > Here is data from my last run... > > pid file 4013 > > Then here is a typical ps...(4017 is tomcat and 4015 is wrapper, but no 4013 > exists...that must have been the shell file pid or something). > > root@builddragon:/opt/tomcat/ > wrapper-linux-x86-64-3.3.7# ps -ef | grep tomcat > root 4015 1 0 22:18 ? 00:00:00 > /opt/tomcat/wrapper-linux-x86-64-3.3.7/bin/./wrapper > /opt/tomcat/wrapper-linux-x86-64-3.3.7/bin/../conf/tomcat.conf > wrapper.syslog.ident=tomcat6 wrapper.pidfile=/opt/tomcat/tomcat6.pid > wrapper.name=tomcat6 wrapper.displayname=Tomcat6 Server wrapper.dae > monize=TRUE wrapper.statusfile=/opt/tomcat/tomcat6.status > wrapper.java.statusfile=/opt/tomcat/tomcat6.java.status > root 4017 4015 6 22:18 ? 00:00:29 /opt/jdk/bin/java > -Djava.endorsed.dirs=/opt/tomcat/bin:/opt/tomcat/common/endorsed > -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat > -Djava.io.tmpdir=/opt/tomcat/temp > -Djava.library.path=/opt/tomcat/wrapper-linux-x86-64-3.3.7/lib -classpath > /opt/ > tomcat/wrapper-linux-x86-64-3.3.7/lib/wrapper.jar:/opt/jdk/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar > -Dwrapper.key=Dq17CpXisAAYC-ed -Dwrapper.port=32001 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4013 > -Dwrapper.version=3.3.7 -Dwrapper.native_library=wrapper -Dwrapper.s > ervice=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 > org.tanukisoftware.wrapper.WrapperStartStopApp > org.apache.catalina.startup.Bootstrap 1 start > org.apache.catalina.startup.Bootstrap TRUE 1 stop > root 4296 27756 0 22:26 pts/0 00:00:00 grep tomcat > > NOTE: obvioulsy tomcat stop fails and tomcat status fails and deletes the > pid file which is wrong. When I kill tomcat, wrapper still starts it up > fine but the pid file is all wrong. Also, the 4017 command above seems odd > to me as it passes in all 7 arguments but the WrapperStartStopApp is > supposed to only pass in the 2 start args and the 3 stop args I would think > into the tomcat bootstrap process? > > anyone have any idea what is going on? > thanks, > Dean |