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 the
> getpid() system call). But there's a big caveat here: in Linux, every
> thread has its own PID, unless you're running with green threads. Your
> call to getpid() will get a pid somewhere in the process hierarchy,
> but probably not the one you want.
> 
> Nathan Meyers
> [EMAIL PROTECTED]

http://www.cs.columbia.edu/~akonstan/javaps/javaps

 -- Levente   "Si vis pacem para bellum!"


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Blackdown VM control options?

2001-09-07 Thread Michael Thome

How do the solaris VM's -XX options map to those in blackdown's VM
(intel 1.3.1, for instance)?

The following link has lots of documentation on -XX options to control
hotspot... it isn't clear which, if any, are available on linux and what
the iterpretation would be if they are:
http://java.sun.com/docs/hotspot/VMOptions.html

Thanks,
-mik
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]