[preview] Adding java.lang.Runtime.getVMArguments() method
David Holmes
david.holmes at oracle.com
Tue Dec 8 03:42:01 UTC 2015
On 8/12/2015 1:54 AM, Roger Riggs wrote:
> Hi Jaroslav,
>
> Is this just to accommodate the test library? I found no other
> references in java.base.
>
> If so, then perhaps it can be placed in another package that the tests
> routinely need access to.
> Does this fit the scope of the WhiteBox?
The original mail states: "it was pointed out that this functionality
should be available in java.base without going through JMX. " But I
question that statement - why should it be available without going
through JMX? This kind of system introspection is a
management/monitoring function and so rightly belongs in JMX in my opinion.
David
-----
> Thanks, Roger
>
>
>
> On 12/07/2015 06:23 AM, Jaroslav Bachorik wrote:
> ...
>>> >> Adding j.l.Runtime.getVmArguments() method seems like the best
>>> thing we
>>> >> can do - the VM arguments are related to the current runtime and
>>> doing
>>> >> this it allows for decoupling from java.management.
>>> >
>>> > Any further thoughts on this? Any objections against moving this
>>> > functionality to j.l.Runtime since implementing this in ProcessHandle
>>> > would lead to inconsistency between the arguments reported for
>>> > 'current()' and other processes?
>>>
>>> I was left unclear as to the exact intent of the API - which "arguments"
>>> does it provide? Commandline? launcher? VM?
>> The same as
>> http://docs.oracle.com/javase/8/docs/api/java/lang/management/RuntimeMXBean.html#getInputArguments--
>>
>> Basically, this is about moving the RuntimeMXBean.getInputArguments()
>> to a place which would not require dependency on java.management in
>> order to get the VM input arguments.
>>
>>
>> -JB-
>>
>
More information about the serviceability-dev
mailing list