Attaching to the remote server pid, both please wait...
Error attaching to the remote server: Java rmi. UnknownHostException: Unknown host: pid; Nested exception is:
Java.net.UnknownHostException: pid
Sun. JVM. Hotspot. The debugger. DebuggerException: Java rmi. UnknownHostException: Unknown host: pid; Nested exception is:
Java.net.UnknownHostException: pid
At sun. JVM. Hotspot. RMIHelper. Lookup (RMIHelper. Java: 115)
At sun. JVM. Hotspot. HotSpotAgent. ConnectRemoteDebugger (HotSpotAgent. Java: 517)
At sun. JVM. Hotspot. HotSpotAgent. SetupDebugger (HotSpotAgent. Java: 374)
At sun. JVM. Hotspot. HotSpotAgent. Go (304) HotSpotAgent. Java:
At sun. JVM. Hotspot. HotSpotAgent. Attach (HotSpotAgent. Java: 183)
At sun. JVM. Hotspot. Tools. Tool. Start (196) Tool. Java:
At sun. JVM. Hotspot. Tools. Tool. The execute (118) Tool. Java:
At sun. JVM. Hotspot. Tools. ObjectHistogram. Main (64) ObjectHistogram. Java:
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
At sun. Tools. Jmap. Jmap. RunTool (jmap. Java: 201)
At sun. Tools. Jmap. Jmap. Main (jmap. Java: 130)
Under Caused by: Java rmi. UnknownHostException: Unknown host: pid; Nested exception is:
Java.net.UnknownHostException: pid
At sun. Rmi. Transport. TCP. TCPEndpoint. NewSocket (TCPEndpoint. Java: 616)
At sun. Rmi. Transport. TCP. TCPChannel. The createConnection (TCPChannel. Java: 216)
At sun. Rmi. Transport. TCP. TCPChannel. NewConnection (TCPChannel. Java: 202)
At sun, rmi server. UnicastRef. NewCall (UnicastRef. Java: 342)
At sun, rmi registry. RegistryImpl_Stub. Lookup (Unknown Source)
At Java rmi. Naming. Lookup (101) Naming. Java:
At sun. JVM. Hotspot. RMIHelper. Lookup (RMIHelper. Java: 113)
. 13 more
Under Caused by: java.net.UnknownHostException: pid
At java.net.AbstractPlainSocketImpl.connect AbstractPlainSocketImpl. Java: (184)
At java.net.SocksSocketImpl.connect SocksSocketImpl. Java: (392)
At java.net.Socket.connect (589) Socket. Java:
At java.net.Socket.connect (538) Socket. Java:
The at java.net.Socket.
The at java.net.Socket.
At sun. Rmi. Transport. Proxy. RMIDirectSocketFactory. CreateSocket (RMIDirectSocketFactory. Java: 40)
At sun. Rmi. Transport. Proxy. RMIMasterSocketFactory. CreateSocket (RMIMasterSocketFactory. Java: 148)
At sun. Rmi. Transport. TCP. TCPEndpoint. NewSocket (TCPEndpoint. Java: 613)
. 19 more
O master, what is the meaning of this,
Use jstack command: no problem, but can only see the process, now want to see the memory consumption, prompt the error,
CodePudding user response:
Pid is the process idUse the ps command found out, and then use digital ID value in the command line
CodePudding user response:
Has been solved, because you gain pid is wrong, use ps - ef for pid will appear this kind of error, the solution: to input the JPS pid, and fill the pid with jmap - histo pid command