JVM是否可以通过附加API检索已加载到其中的代理列表? [英] Can a JVM retrieve a list of agents that have been loaded into it via the attach api?

查看:77
本文介绍了JVM是否可以通过附加API检索已加载到其中的代理列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过Java 1.6附加api获取加载到当前JVM中的代理列表?如果可以,怎么办?

Is it possible to get a list of agents loaded into the current JVM by the Java 1.6 attach api? If so how?

在启动时加载的代理可以通过RuntimeMXBean确定,但我看不到一种方法来处理启动后添加的代理.

Agents loaded at launch can be determined via RuntimeMXBean but I can't see a way to get a handle on ones added after launch.

推荐答案

不,我认为没有一种可移植的方式来查找代理.你想达到什么目的?也许还有另一种方法...

No, I don't think there is a portable way to find out about the agents. What are you trying to accomplish? Maybe there is another approach...

这篇关于JVM是否可以通过附加API检索已加载到其中的代理列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆