cpu使用率100%

我有一头小毛驴 发布于 2019/03/07 16:40
阅读 708
收藏 0

[root@localhost ~]# jstack pid |grep 50aa -A 30
Error attaching to remote server: java.rmi.UnknownHostException: Unknown host: pid; nested exception is: 
        java.net.UnknownHostException: pid
sun.jvm.hotspot.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(HotSpotAgent.java:304)
        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:183)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:196)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.JStack.main(JStack.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.tools.jstack.JStack.runJStackTool(JStack.java:140)
        at sun.tools.jstack.JStack.main(JStack.java:106)
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.createConnection(TCPChannel.java:216)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112)
        at java.rmi.Naming.lookup(Naming.java:101)
        at sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:113)
        ... 13 more
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(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at java.net.Socket.<init>(Socket.java:434)
        at java.net.Socket.<init>(Socket.java:211)
        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
最后定位到这个错误,请问是什么引起的?

以下是问题补充:

@gavin:Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode): "job-timeout" #611 daemon prio=9 os_prio=0 tid=0x00007f50e8048800 nid=0x5277 in Object.wait() [0x00007f50c40b5000] java. (2019/05/16 19:13)
加载中
0
gavin
gavin

我今天遇到了同样的问题,请问你这个问题解决了吗 ?

0
珞樱缤纷
珞樱缤纷

 

 jstack pid |grep 50aa -A 30

请问你的pid具体是什么?这样放置一个无效的pid在这里,是无法查看进程的堆栈信息的;

至于后面这一堆异常堆栈,只是因为无法识别pid,jstack命令引起的异常而已。

gavin
gavin
打印出了堆栈信息,但是无存下手不知道问题在哪里,没具体到业务代码上
0
简单0
简单0

请问下解决了问题吗?求教下,遇到同样的问题

返回顶部
顶部