{"id":5937,"date":"2019-12-16T15:41:02","date_gmt":"2019-12-16T07:41:02","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5937"},"modified":"2019-12-27T16:17:14","modified_gmt":"2019-12-27T08:17:14","slug":"pstack","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pstack","title":{"rendered":"pstack\u547d\u4ee4 – \u663e\u793a\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a"},"content":{"rendered":"\n

pstack\u662f\u4e00\u4e2ashell\u811a\u672c\uff0c\u7528\u4e8e\u6253\u5370\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a\u4fe1\u606f\uff0c\u5b83\u5b9e\u9645\u4e0a\u662fgstack\u7684\u4e00\u4e2a\u94fe\u63a5\uff0c\u800cgstack\u672c\u8eab\u662f\u57fa\u4e8egdb\u5c01\u88c5\u7684shell\u811a\u672c.\u3002<\/p>\n\n\n\n

\u6b64\u547d\u4ee4\u53ef\u663e\u793a\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a\u3002pstack \u547d\u4ee4\u5fc5\u987b\u7531\u76f8\u5e94\u8fdb\u7a0b\u7684\u5c5e\u4e3b\u6216 root \u8fd0\u884c\u3002\u53ef\u4ee5\u4f7f\u7528 pstack \u6765\u786e\u5b9a\u8fdb\u7a0b\u6302\u8d77\u7684\u4f4d\u7f6e\u3002\u6b64\u547d\u4ee4\u5141\u8bb8\u4f7f\u7528\u7684\u552f\u4e00\u9009\u9879\u662f\u8981\u68c0\u67e5\u7684\u8fdb\u7a0b\u7684 PID\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> pstack<\/p>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a: <\/p>\n\n\n\n

[root@linuxcool ~]# pstack 4551<\/pre>\n\n\n\n

\u5c06\u76d1\u542c\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a\u4fe1\u606f\u5199\u5165\u6587\u4ef6pstack.log:<\/p>\n\n\n\n

[root@linuxcool ~] pstack 31440 >> pstack.log<\/pre>\n","protected":false},"excerpt":{"rendered":"

pstack\u662f\u4e00\u4e2ashell\u811a\u672c\uff0c\u7528\u4e8e\u6253\u5370\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u6808\u8ddf\u8e2a\u4fe1\u606f\uff0c\u5b83\u5b9e\u9645\u4e0a\u662fgstack\u7684\u4e00\u4e2a\u94fe\u63a5\uff0c\u800cgs […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5937"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5937"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5937\/revisions"}],"predecessor-version":[{"id":6172,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5937\/revisions\/6172"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}