JMX agents and Jigsaw
Ron Pressler
ron at paralleluniverse.co
Fri Jul 24 09:12:22 UTC 2015
OK, but assuming I have no control over the user's runtime image, am I
correct that programmatically starting the local JMX agent as I do now
(without the Attach API) will no longer be possible in Java 9?
Ron Pressler
paralleluniverse.co
@puniverseco <https://twitter.com/puniverseco> on Twitter
On Tue, Jul 21, 2015 at 10:59 AM, Alan Bateman <Alan.Bateman at oracle.com>
wrote:
> On 21/07/2015 06:49, Ron Pressler wrote:
>
>> :
>>
>> That's really good (esp. startLocalManagementAgent), but does it require
>> tools.jar to be available, which means a JDK, rather than JRE
>> installation? VMSupport and Agent are available on any JRE. Perhaps
>> com.sun.tools.attach should be included in the JRE, too.
>>
>> The attach API is intended for tools so this is why it used to be
> tools.jar and why it wasn't in the JRE downloads. In our module graph then
> it becomes its own module (named jdk.attach) so this means a tool using
> this API can run on any run-time image that has the jdk.attach module
> linked in. This should become clearer once the module system is in and
> there is tooling to create run-time images with just the modules that you
> want.
>
> -Alan
>
More information about the jigsaw-dev
mailing list