Other way is to use netstat -anp (the p poption tells you whaich PID has the
port)

--
Tomasz M. Ciolek
Systems Administrator - CSIRO Entomology
Phone: 02-62464391 * Fax: 02-62464000
 

> -----Original Message-----
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, 20 March 2002 19:36 
> To: Tomcat Users List
> Subject: AW: Figuring out which Unix process is which
> 
> 
> What we do, is to define a command line option that shows 
> up at the beginning of the command string that identifies
> the site for which this vm is running.
> 
> As we don't use tomcat, I can't tell you how to achieve 
> this with tomcat.
> 
> 
> jserv.properties:
>   wrapper.bin.parameters=-DName=<sitename>
> 
> 
> Another way to identify: 
>   look for a VM that connects to a given port.
> 
> Under linux it lsof -i :<port>.
> Don't know how if lsof is part of the standard 
> distribution for solaris. (Last time I've worked 
> with that is over 3 years ago)
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Yoav Shapira [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 19. März 2002 21:52
> > An: [EMAIL PROTECTED]
> > Betreff: Figuring out which Unix process is which
> <snip/>
> > We run multiple instance of tomcat using the same JAVA_HOME,
> > so when we run a ps command (Solaris 2.8) we see a bunch
> > of java processes, but can't tell which one is which instance
> > of tomcat.  Does anyone have any ideas to help this problem?
> <snip/>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to