首页 文章

无法在VirtualBox VM上连接探查器(JMC)

提问于
浏览
0

我正在VirtualBox VM(Windows 2008 Server)中托管的Weblogic服务器上运行应用程序 . 要连接JRockit Mission Control Profiler,我的服务器命令如下:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n

当我启动我的服务器时,在ProcessExplorer中我可以看到 application listening to port 4000 .

但在Mission Control UI中, I'm neither able to see this application in default local connection nor connect as new using manual port configurations . 我能够在同一个VM中看到其他Java应用程序的连接 .

enter image description here

我的配置是这样的:

  • Guest (VM) OS : Windows 2008 Server

  • Host OS : Windows 7 VM Network : 桥接适配器(混杂:拒绝)

  • Server : Weblogic 12c

  • Java : 1.6

  • JVM : Oracle JRockit(R)(构建R28.2.5-20-152429-1.6.0_37-20120927-1915-windows-x86_64,编译模式)

  • VM : VirtualBox 4.2.4

我能找到哪个看起来适用于Linux VM的最接近的答案是this .

我试过以下:

  • 具有高级安全的Windows防火墙 - >入站规则 - >添加了具有完全访问权限的端口4000

  • 具有高级安全的Windows防火墙 - >出站规则 - >添加了具有完全访问权限的端口4000

  • 更改了VM网络 - >桥接适配器 - >混杂:全部允许

  • 更改了VM网络 - > NAT

但还没有运气 . 以前有人有这个问题吗?

1 回答

  • 1

    上面的JVM标志用于JDWP样式调试,而不是使用JRockit Mission Control正在使用的JMXRMI远程连接 .

    您应该使用-Dcom.sun.management.jmxremote属性运行,http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

    或者对于JRockit,您还可以使用速记标志-Xmanagement

    http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionx.htm#BABJDIGF

    我建议-Xmanagement:port = 4000,ssl = false,authenticate = false

    然后,您应该能够创建到服务器os hostname / ip和端口4000的自定义jmc连接 .

    如果在同一主机上同时运行WLS和JRMC,则应该能够在JVM浏览器中看到正在运行的WLS . 如果不这样做,您仍然可以使用与上面相同的标志 .

相关问题