runtime JVM options

Victor Cheung VictorC at ganz.com
Thu Dec 11 11:44:35 PST 2008


I just did a ps and got the following:

13301 pts/1    00:00:00 bash
13796 pts/1    00:00:00 ps

Jps gives me the following:

13974 Jps


My unix account does not have permission to see any processes but my own...

It is a JBoss web application.

I also tried:

jinfo -flags localhost
jinfo -flags 127.0.0.1

But got the following:

Attaching to remote server localhost, please wait...
Error attaching to remote server: java.rmi.ConnectIOException: non-JRMP server at remote endpoint

victor


-----Original Message-----
From: hotspot-gc-use-bounces at openjdk.java.net [mailto:hotspot-gc-use-bounces at openjdk.java.net] On Behalf Of Moazam Raja
Sent: Thursday, December 11, 2008 1:44 PM
To: hotspot-gc-use at openjdk.java.net
Subject: Re: runtime JVM options

[~]$ jinfo

Usage: jinfo [option] <pid>
                (to connect to a live java process)
    or jinfo [option] <executable> <core>
                (to connect to a core file)
    or jinfo [option] [server_id@]<remote server IP or hostname>
                (to connect to a remote debug server)

where option must be one of:
     -flags     to print VM flags
     -sysprops  to print Java System properties
     <no option>        to print both of the above
     -h | -help to print this help message


-Moazam

On Dec 11, 2008, at 10:37 AM, Victor Cheung wrote:

> Hihi,
>
> Unfortunately I only have read-only ssh access to the unix
> environment where the server is running.  I can't create or edit any
> files.  And enabling a JMX port for remote connections is not an
> option for me.
>
> Are there other ways for me to get this information?
>
> victor
>
> -----Original Message-----
> From: Jon.Masamitsu at Sun.COM [mailto:Jon.Masamitsu at Sun.COM]
> Sent: Thursday, December 11, 2008 12:18 PM
> To: Victor Cheung
> Cc: hotspot-gc-use at openjdk.java.net
> Subject: Re: runtime JVM options
>
> I think jconsole will give you the JVM
> command line under the "VM Summary" tab.
>
> On 12/11/08 08:48, Victor Cheung wrote:
>> Hihi all,
>>
>>
>>
>> I cannot seem to find the answer to this.  How can we get a list of
>> **all** the options and values that a running JVM is using?
>>
>>
>>
>> victor
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> hotspot-gc-use mailing list
>> hotspot-gc-use at openjdk.java.net
>> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use



More information about the hotspot-gc-use mailing list