RE: Figuring out which Unix process is which

2002-03-20 Thread Tomasz . Ciolek

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=
> 
> 
> Another way to identify: 
>   look for a VM that connects to a given port.
> 
> Under linux it lsof -i :.
> 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
> 
> > 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?
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Figuring out which Unix process is which

2002-03-20 Thread camccuk


--- NIVET Rémi <[EMAIL PROTECTED]> wrote:
> Try /usr/ucb/ps auxww
> 
> Rémi.

As I was saying: this is fine until the process gets swapped out at which point
ps reports the process as [java], no matter how many 'w's you specify - no one
has been able to tell me a workaround for this. Thus, options seems to be:

- killall 0  although I'm not sure (yet) how to capture TC's pid
- use wget to check the server from a client perspective...

cam

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Figuring out which Unix process is which

2002-03-20 Thread NIVET Rémi

Try /usr/ucb/ps auxww

Rémi.

le mar 19-03-2002 à 21:52, Yoav Shapira a écrit :
> Hi,
> 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?
> 
> It's not possible for us to run the processes as different 
> users, and the path is too long for the different CATALINA_OPTS
> to show through.  
> 
> I realize this may be more of a Unix question, but if anyone
> has suggestions, I'll be glad to hear them.  Thanks in advance,
> 
> Yoav Shapira
> Millennium Pharmaceuticals
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Figuring out which Unix process is which

2002-03-19 Thread Andy Eastham

Yoav,

You could try making differently named links to the java command, then edit
your startup files so that each tomcat instance uses a different link to the
"java" command?

Andy

> -Original Message-
> From: Yoav Shapira [mailto:[EMAIL PROTECTED]]
> Sent: 19 March 2002 20:52
> To: [EMAIL PROTECTED]
> Subject: Figuring out which Unix process is which
>
>
> Hi,
> 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?
>
> It's not possible for us to run the processes as different
> users, and the path is too long for the different CATALINA_OPTS
> to show through.
>
> I realize this may be more of a Unix question, but if anyone
> has suggestions, I'll be glad to hear them.  Thanks in advance,
>
> Yoav Shapira
> Millennium Pharmaceuticals
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Figuring out which Unix process is which

2002-03-19 Thread Cheng Yan

Try this:

% ps -ef | grep jre | grep java.endorsed


- Original Message - 
From: "Yoav Shapira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 15:52
Subject: Figuring out which Unix process is which


> Hi,
> 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?
> 
> It's not possible for us to run the processes as different 
> users, and the path is too long for the different CATALINA_OPTS
> to show through.  
> 
> I realize this may be more of a Unix question, but if anyone
> has suggestions, I'll be glad to hear them.  Thanks in advance,
> 
> Yoav Shapira
> Millennium Pharmaceuticals
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: