You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Morsberger <da...@home.com> on 2001/12/01 15:01:33 UTC
Re: STARTING TOMCAT
Avi,
I have looked and looked for a way to correlate the pid with the netstat
output? None of my systems have the options that output it.
What type of system do you have?
Can you do a "netstat --version"?
Thanks,
Dave
> From: Avi Green <av...@sputnik7.com>
> Organization: sputnik7.com
> Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
> Date: Sat, 01 Dec 2001 00:45:17 -0500
> To: Daliso Zuze <dz...@unam.na>
> Cc: Tomcat Users List <to...@jakarta.apache.org>
> Subject: Re: STARTING TOMCAT
>
>> what exactly should [netstat and ps] show if tomcat is running?
>
> On my machine (logged in as root) I get something like this, but your
> display will surely differ somewhat. Anyone else?
>
> --Avi
>
> p.s. Look in the "netstat" output for the two ports (http and ajp)
> listed in your tomcat server.xml. Whatever process is listening to
> those ports is the Tomcat process. (That's why I did a "ps" on 7355.)
>
>
> [root@martha /root]# netstat -elpt
> (Not all processes could be identified, non-owned process info
> will not be shown, you would have to be root to see it all.)
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address
> State User Inode PID/Program name
> tcp 0 0 *:17900 *:*
> LISTEN dev 8012789 7355/java
> tcp 0 0 *:18000 *:*
> LISTEN dev 8012786 7355/java
> tcp 0 0 *:www *:*
> LISTEN root 6837700 5295/httpd
> tcp 0 0 *:printer *:*
> LISTEN root 487 508/
> tcp 0 0 *:ssh *:*
> LISTEN root 462 493/sshd
> tcp 0 0 *:netstat *:*
> LISTEN root 450 483/inetd
> tcp 0 0 *:systat *:*
> LISTEN root 449 483/inetd
> tcp 0 0 *:finger *:*
> LISTEN root 448 483/inetd
> tcp 0 0 *:ftp *:*
> LISTEN root 447 483/inetd
> tcp 0 0 *:time *:*
> LISTEN root 446 483/inetd
> tcp 0 0 *:chargen *:*
> LISTEN root 445 483/inetd
> tcp 0 0 *:daytime *:*
> LISTEN root 444 483/inetd
> tcp 0 0 *:discard *:*
> LISTEN root 443 483/inetd
> tcp 0 0 *:echo *:*
> LISTEN root 442 483/inetd
>
> [root@martha /root]# ps uww 7355
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> dev 7355 0.0 4.5 149108 20680 pts/1 S Nov30 0:06
> /usr/local/java/1.3.0/i686-pc-linux-gnu/bin/i386/native_threads/java
> -server -Dtomcat.home=/usr/local/tomcat
> -Dproperties.file=/usr/local/tomcat/JAVA_PROPERTIES
> org.apache.tomcat.startup.Tomcat
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>