Re: Pid of the JVM

2001-09-13 Thread Nathan Meyers
On Thu, Sep 06, 2001 at 10:14:18AM -0400, Jesse Stockall wrote: > How can I get the pid of the jvm that an app is running in? You want to get it from within the app? PIDs are a non-portable concept, so you'll need a JNI call to get it (just wrap a JNI call around the getpid() system call). But th

Re: Pid of the JVM

2001-09-07 Thread Levente Farkas
Nathan Meyers wrote: > > On Thu, Sep 06, 2001 at 10:14:18AM -0400, Jesse Stockall wrote: > > How can I get the pid of the jvm that an app is running in? > > You want to get it from within the app? PIDs are a non-portable concept, > so you'll need a JNI call to get it (just wrap a JNI call around

Re: Pid of the JVM

2001-09-06 Thread Duane Kehoe
ps ax will work you just have to look for your specific app or you can try : ps ax | grep [program name] will work. For example I want to see what pids mozilla is currently using I type ps ax | grep mozilla and get back: 4365 ?S 8:10 /usr/local/mozilla/mozilla-bin