VisualVM 1.32 无法连接到 WAS(Websphere 应用程序服务器)7.0.0.15
我很高兴能得到您的帮助,非常感谢。 无法使用 VisualVM 连接到 WAS 服务器。
WAS 属性设置:
服务器 -> 服务器类型 ->WebSphere 应用程序服务器 ->server1 -> 进程 定义->Java虚拟机->属性 JVM
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999
WAS控制台输出:
信息 [com.sun.tools.visualvm.jmx.impl.JmxModelImpl]: 连接(服务:jmx:rmi:///jndi/rmi://:9999/jmxrmi) java.io.EOFException:SSL 对等点错误关闭 在 com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333) 在com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798) 导致:javax.net.ssl.SSLHandshakeException:远程主机关闭 握手期间连接 在com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817) 在com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138) 在com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632) 在 com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) 在 java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) 在 java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) 在 java.io.DataOutputStream.flush(DataOutputStream.java:106) 在 sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:211) 引起:java.rmi.ConnectIOException:JRMP 连接期间出错 设立;嵌套异常是: javax.net.ssl.SSLHandshakeException:握手期间远程主机关闭连接 在sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286) 在 sun.rmi.transport.tcp.TCPChannel.newConnection (TCPChannel.java:184) 在 sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) 在 sun.rmi.registry.RegistryImpl_Stub.lookup(来源未知) 在 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97) 引起:javax.naming.CommunicationException [根异常是 java.rmi.ConnectIOException:JRMP 连接期间出错 设立;嵌套异常是: javax.net.ssl.SSLHandshakeException:握手期间远程主机关闭连接] 在 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) 在 com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185) 在 javax.naming.InitialContext.lookup(InitialContext.java:392) 在javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886) 在javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856) 在javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257) 导致:java.io.IOException:无法检索 RMIServer 存根 在javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338) 在 com.sun.tools.visualvm.jmx.impl.JmxModelImpl$ProxyClient.tryConnect(JmxModelImpl.java:496) 在 com.sun.tools.visualvm.jmx.impl.JmxModelImpl$ProxyClient.connect(JmxModelImpl.java:440) 在 com.sun.tools.visualvm.jmx.impl.JmxModelImpl.connect(JmxModelImpl.java:220) 在 com.sun.tools.visualvm.jmx.impl.JmxModelImpl.(JmxModelImpl.java:209) 在 com.sun.tools.visualvm.jmx.impl.JmxModelProvider.createModelFor(JmxModelProvider.java:61) 在 com.sun.tools.visualvm.jmx.impl.JmxModelProvider.createModelFor(JmxModelProvider.java:42) 在 com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:111) 在 com.sun.tools.visualvm.tools.jmx.JmxModelFactory.getJmxModelFor(JmxModelFactory.java:69) 在 com.sun.tools.visualvm.jmx.impl.JmxApplicationProvider.addJmxApplication(JmxApplicationProvider.java:267) 在 com.sun.tools.visualvm.jmx.impl.JmxApplicationProvider.createJmxApplication(JmxApplicationProvider.java:185) 在 com.sun.tools.visualvm.jmx.JmxApplicationsSupport.createJmxApplicationImpl(JmxApplicationsSupport.java:286) 在 com.sun.tools.visualvm.jmx.JmxApplicationsSupport.createJmxApplicationInteractive(JmxApplicationsSupport.java:263) [捕捉]于 com.sun.tools.visualvm.jmx.impl.AddJMXConnectionAction$1.run(AddJMXConnectionAction.java:80) 在 org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) 在 org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
再次非常感谢。
问候。
I'd be very pleased getting help from yours so many thanks in advance.
Can't manage to connect to a WAS server using VisualVM.
WAS properties setup:
Servers->Server types->WebSphere application servers->server1->Process
definition->Java Virtual Machine -> Properties JVM-Djavax.management.builder.initial=
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=9999
WAS console output:
INFO [com.sun.tools.visualvm.jmx.impl.JmxModelImpl]:
connect(service:jmx:rmi:///jndi/rmi://:9999/jmxrmi)
java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
Caused: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:211)
Caused: java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
Caused: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
Caused: java.io.IOException: Failed to retrieve RMIServer stub
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
at com.sun.tools.visualvm.jmx.impl.JmxModelImpl$ProxyClient.tryConnect(JmxModelImpl.java:496)
at com.sun.tools.visualvm.jmx.impl.JmxModelImpl$ProxyClient.connect(JmxModelImpl.java:440)
at com.sun.tools.visualvm.jmx.impl.JmxModelImpl.connect(JmxModelImpl.java:220)
at com.sun.tools.visualvm.jmx.impl.JmxModelImpl.(JmxModelImpl.java:209)
at com.sun.tools.visualvm.jmx.impl.JmxModelProvider.createModelFor(JmxModelProvider.java:61)
at com.sun.tools.visualvm.jmx.impl.JmxModelProvider.createModelFor(JmxModelProvider.java:42)
at com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:111)
at com.sun.tools.visualvm.tools.jmx.JmxModelFactory.getJmxModelFor(JmxModelFactory.java:69)
at com.sun.tools.visualvm.jmx.impl.JmxApplicationProvider.addJmxApplication(JmxApplicationProvider.java:267)
at com.sun.tools.visualvm.jmx.impl.JmxApplicationProvider.createJmxApplication(JmxApplicationProvider.java:185)
at com.sun.tools.visualvm.jmx.JmxApplicationsSupport.createJmxApplicationImpl(JmxApplicationsSupport.java:286)
at com.sun.tools.visualvm.jmx.JmxApplicationsSupport.createJmxApplicationInteractive(JmxApplicationsSupport.java:263)
[catch] at
com.sun.tools.visualvm.jmx.impl.AddJMXConnectionAction$1.run(AddJMXConnectionAction.java:80)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Thank you a lot again.
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
早上好。
好吧,我们已经找到了解决方案,确实有点简单。
属性 -Djava.rmi.server.hostname=hostname 指向 localhost 而不是 ip。
我希望这些信息对更多人有用。
非常感谢。
问候。
Good morning.
Well,we've discovered the solution,kinda easy indeed.
The propertie -Djava.rmi.server.hostname=hostname was pointing to localhost instead of ip.
I Hope this info be usefull to someone more.
Thank you very much.
Regards.