-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To whom it mat concern,
On 7/23/12 2:46 PM, k9...@operamail.com wrote: > I've built/installed Tomcat 7.0.29 from source on linux/64. Why did you bother to build Tomcat at all? I can see building the daemon component, but building Tomcat itself is just a waste of time. > I've setup an init.d using jsvc launch, loosely based on the > src-bundled daemon.sh script. > > @ tomcat service launch, using out-of-the-box config for now, I see > two listeners on ONE pid, > > netstat -pan --tcp | grep jsvc tcp 0 0 :::8080 > :::* LISTEN 30891/jsvc.exec tcp 0 0 :::8009 > :::* LISTEN 30891/jsvc.exec jsvc's job is to allow the controlled process to open ports, so all ports will owned by the controlling process. > but note that actually TWO procs/pids exist, > > ps ax | grep jsvc 30890 ? Ss 0:00 jsvc.exec -user > tomcat -java-home /etc/alternatives/java_sdk -pidfile > /var/run/tomcat7/tomcat7.pid -classpath > /usr/local/tomcat7/build/bin/bootstrap.jar:/usr/local/tomcat7/build/bin/commons-daemon.jar:/usr/local/tomcat7/build/bin/tomcat-juli.jar > > - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=/usr/local/etc/tomcat7/conf/logging.properties > > - -Djava.endorsed.dirs= > -Dcatalina.base=/usr/local/tomcat7/build > -Dcatalina.home=/usr/local/tomcat7/build > -Djava.io.tmpdir=/var/tmp/tomcat7 -outfile > /var/log/tomcat7/tomcat-initd.log -errfile &1 -wait 10 > org.apache.catalina.startup.Bootstrap > > 30891 ? Sl 0:03 jsvc.exec -user tomcat -java-home > /etc/alternatives/java_sdk -pidfile /var/run/tomcat7/tomcat7.pid > -classpath > /usr/local/tomcat7/build/bin/bootstrap.jar:/usr/local/tomcat7/build/bin/commons-daemon.jar:/usr/local/tomcat7/build/bin/tomcat-juli.jar > > - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=/usr/local/etc/tomcat7/conf/logging.properties > > - -Djava.endorsed.dirs= > -Dcatalina.base=/usr/local/tomcat7/build > -Dcatalina.home=/usr/local/tomcat7/build > -Djava.io.tmpdir=/var/tmp/tomcat7 -outfile > /var/log/tomcat7/tomcat-initd.log -errfile &1 -wait 10 > org.apache.catalina.startup.Bootstrap > > I want only a *single* instance of tomcat running. Don't worry, you only have a single instance of Tomcat running. If you had multiple instances running, you'd have a port conflict, right? Try this: $ ps afx Then, look at the output for 'jsvc' and you should see *three* linked processes. Since you only looked for 'jsvc' you aren't seeing the expected 3rd process (which is actually the instance of Tomcat you are so worried about). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlANsNgACgkQ9CaO5/Lv0PCa3QCfR9gyw6HLIG/FhbB08qHNGInK FBAAoIXqMtjjaHf8FPWqbGGnSZqc3o8L =VFcM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org