“协议系列不可用”使用 VisualVM 时出错

发布于 2024-11-26 02:33:24 字数 2906 浏览 2 评论 0原文

我正在尝试使用 VisualVM 来监视我的远程应用程序。 我在远程机器的端口 1099 上启动了 jstatd。现在,当我尝试连接时,我在 VisualVM 日志文件中收到以下错误。感谢任何解决此问题的帮助。

谢谢 柴塔尼亚

    INFO [com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider]: Jvmstat connection to <myserver>[IP: <my IP>] failed.
java.net.SocketException: Protocol family unavailable
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
Caused: java.rmi.ConnectIOException: Exception creating connection to: 0:0:0:0:0:0:0:1; nested exception is: 
    java.net.SocketException: Protocol family unavailable
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
    at $Proxy16.activeVms(Unknown Source)
    at sun.jvmstat.perfdata.monitor.protocol.rmi.RemoteVmManager.activeVms(RemoteVmManager.java:82)
    at sun.jvmstat.perfdata.monitor.protocol.rmi.MonitoredHostProvider.activeVms(MonitoredHostProvider.java:217)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.registerJvmstatConnection(JvmstatApplicationProvider.java:265)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.registerJvmstatConnections(JvmstatApplicationProvider.java:126)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.processNewHost(JvmstatApplicationProvider.java:119)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.access$000(JvmstatApplicationProvider.java:72)
[catch] at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider$1.run(JvmstatApplicationProvider.java:98)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)

I am trying to use VisualVM to monitor my remote appliation.
I started jstatd on port 1099 in my remote box. Now when I am trying to connect I get the following error in VisualVM log file. Any help to resolve this issue is appreciated.

Thank you
Chaitanya

    INFO [com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider]: Jvmstat connection to <myserver>[IP: <my IP>] failed.
java.net.SocketException: Protocol family unavailable
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
Caused: java.rmi.ConnectIOException: Exception creating connection to: 0:0:0:0:0:0:0:1; nested exception is: 
    java.net.SocketException: Protocol family unavailable
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
    at $Proxy16.activeVms(Unknown Source)
    at sun.jvmstat.perfdata.monitor.protocol.rmi.RemoteVmManager.activeVms(RemoteVmManager.java:82)
    at sun.jvmstat.perfdata.monitor.protocol.rmi.MonitoredHostProvider.activeVms(MonitoredHostProvider.java:217)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.registerJvmstatConnection(JvmstatApplicationProvider.java:265)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.registerJvmstatConnections(JvmstatApplicationProvider.java:126)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.processNewHost(JvmstatApplicationProvider.java:119)
    at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider.access$000(JvmstatApplicationProvider.java:72)
[catch] at com.sun.tools.visualvm.jvmstat.application.JvmstatApplicationProvider$1.run(JvmstatApplicationProvider.java:98)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

墨落成白 2024-12-03 02:33:24

您是否尝试过将 jstatd 端口更改为更高的端口?
我对 jstatd 使用 9099,因为在我的 Intranet 网络上无法访问 1099。

Have you tried to change the jstatd port to a higher port?
I use 9099 for my jstatd because 1099 is not accessible on my intranet network.

江城子 2024-12-03 02:33:24

这个问题没有解决办法。即使是开发团队也没有。

This issue has no fix. Not even by Dev team.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文