On Mon, Jul 23, 2012, at 04:15 PM, Christopher Schultz wrote:
> > 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.

Clear, now.

> > 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).

I still see only two:

ps afx 
 20334 ?        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/loca
 ...
 20335 ?        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/
 ...

No other instance of 'java', 'jsvc' or 'tomcat' in the output.

Thanks.

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

Reply via email to