runtime JVM options
Peter B. Kessler
Peter.Kessler at Sun.COM
Thu Dec 11 14:59:49 PST 2008
With apologies for replying publicly:
Can you use "ssh -X" at all? If so, even 6u5 has jconsole, and I think even has all the JMX stuff set up to allow connections. If you are poking at a live production server, though, be aware that you can do things in jconsole that will cause the server to pause, on the order of full collection times. For example: pushing the "Perform GC" button. Oh, and you can use jconsole to manage some of the options, e.g., to turn on -XX:+PrintGCDetails. I don't know how your system admins would like it if you started the JVM spewing GC logs to their stdout. (And more importantly, I don't know how you'd read that stream if they aren't saving it to a file you can read.)
... peter
Victor Cheung wrote:
> Hi Peter,
>
> I wish I could. Our staging and production version is only 6u5... no jvisualvm. I tried it locally on my own machine and it's a phenomenal tool to say the least.
>
> Victor
>
>
> -----Original Message-----
> From: Peter.Kessler at Sun.COM [mailto:Peter.Kessler at Sun.COM]
> Sent: Thursday, December 11, 2008 4:42 PM
> To: Victor Cheung
> Cc: Jon.Masamitsu at Sun.COM; hotspot-gc-use at openjdk.java.net
> Subject: Re: runtime JVM options
>
> Can you use "ssh -X" to your server, and use that to send the jvisualvm window back to your machine (which would have to have an X server)?
>
> ... peter
>
> 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
>
More information about the hotspot-gc-use
mailing list