• jstack调试core文件


     摘自:https://stackoverflow.com/questions/37331266/jstack-throws-exception-interrogating-a-core

    // 错误示例

    1
    [root@localhost rpmuser]# jstack core.2299 2 Attaching to remote server core.2299, please wait... 3 Error attaching to remote server: java.net.MalformedURLException: invalid authority: //core.2299/SARemoteDebugger 4 sun.jvm.hotspot.debugger.DebuggerException: java.net.MalformedURLException: invalid authority: //core.2299/SARemoteDebugger 5 at sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:115) 6 at sun.jvm.hotspot.HotSpotAgent.connectRemoteDebugger(HotSpotAgent.java:517) 7 at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:374) 8 at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304) 9 at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:183) 10 at sun.jvm.hotspot.tools.Tool.start(Tool.java:196) 11 at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118) 12 at sun.jvm.hotspot.tools.JStack.main(JStack.java:92) 13 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 14 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 15 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16 at java.lang.reflect.Method.invoke(Method.java:498) 17 at sun.tools.jstack.JStack.runJStackTool(JStack.java:140) 18 at sun.tools.jstack.JStack.main(JStack.java:106) 19 Caused by: java.net.MalformedURLException: invalid authority: //core.2299/SARemoteDebugger 20 at java.rmi.Naming.intParseURL(Naming.java:330) 21 at java.rmi.Naming.parseURL(Naming.java:237) 22 at java.rmi.Naming.lookup(Naming.java:96) 23 at sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:113) 24 ... 13 more

    jvm产生的core.2299文件用如下方式调试

    jstack /usr/bin/java core.2299

  • 相关阅读:
    Oracle日期周具体解释以及周開始结束时间计算
    getActivity nullPointerException
    dTree无限级文件夹树和JQuery同步Ajax请求
    按键精灵微信群内加好友
    QPS、RT、PV、UV之间的关系
    [简谈]绕过HR破门而入的求职智慧
    Mina、Netty、Twisted一起学(十):线程模型
    ubuntu查看硬件信息
    openstack API debug OpenstackEveryProject_CLI,curl_based
    openstack configure
  • 原文地址:https://www.cnblogs.com/LiuYanYGZ/p/9674896.html
Copyright © 2020-2023  润新知