I've built/installed Tomcat 7.0.29 from source on linux/64.

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

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.

Seeing these TWO pids, is that actually TWO instaces?

Reading @ https://commons.apache.org/daemon/jsvc.html

        How jsvc works
        Jsvc uses 3 processes: a launcher process, a controller process
        and a controlled process. ...

I suspect it's not, and I'm just seeing those ^^^, but wanted to get
some clarification.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to