您好,登錄后才能下訂單哦!
本篇內(nèi)容主要講解“java高內(nèi)存cpu分析”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實(shí)用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“java高內(nèi)存cpu分析”吧!
ps -ef|grep path-service top -Hp 11599 ps -ef|grep bill jstack 1948 top -Hp 1948 按1 顯示該進(jìn)程每個線程的cpu PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 18937 root 20 0 13.759g 4.542g 24680 R 51.2 3.6 1:25.69 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18934 root 20 0 13.759g 4.542g 24680 S 50.4 3.6 1:25.69 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 12057 root 20 0 13.759g 4.542g 24680 R 49.6 3.6 5:54.14 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18935 root 20 0 13.759g 4.542g 24680 R 49.6 3.6 1:25.50 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18939 root 20 0 13.759g 4.542g 24680 R 48.8 3.6 1:25.92 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18931 root 20 0 13.759g 4.542g 24680 R 47.9 3.6 1:25.31 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 16457 root 20 0 13.759g 4.542g 24680 R 47.1 3.6 2:55.82 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18936 root 20 0 13.759g 4.542g 24680 R 47.1 3.6 1:25.36 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 16463 root 20 0 13.759g 4.542g 24680 R 46.3 3.6 2:55.23 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18938 root 20 0 13.759g 4.542g 24680 R 46.3 3.6 1:25.48 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18940 root 20 0 13.759g 4.542g 24680 R 46.3 3.6 1:25.48 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18941 root 20 0 13.759g 4.542g 24680 R 46.3 3.6 1:25.46 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18932 root 20 0 13.759g 4.542g 24680 R 44.6 3.6 1:25.69 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18933 root 20 0 13.759g 4.542g 24680 S 44.6 3.6 1:25.54 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 18930 root 20 0 13.759g 4.542g 24680 R 43.0 3.6 1:25.54 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 1955 root 20 0 13.759g 4.542g 24680 S 4.1 3.6 5:46.08 java -Dapp.home=/root/billing/billing-service -Xms2024m -Xmx4024m com.as+ 在線16進(jìn)制轉(zhuǎn)換 http://tool.oschina.net/hexconvert/ 18937 18934 0x49f9 0x49f6 jstack中找到: "ForkJoinPool.commonPool-worker-2" #3479 daemon prio=5 os_prio=0 tid=0x00007f6584010000 nid=0x49f6 runnable [0x00007f6563bfa000] java.lang.Thread.State: RUNNABLE at com.alibaba.fastjson.parser.JSONLexerBase.scanSymbol(JSONLexerBase.java:772) at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:239) at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:517) at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:517) at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1327) at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1293) at com.alibaba.fastjson.JSON.parse(JSON.java:137) at com.alibaba.fastjson.JSON.parse(JSON.java:128) at com.alibaba.fastjson.JSON.parseObject(JSON.java:201) at com.asiainfo.log.ThreadReportTimer.calculateThreadStats(ThreadReportTimer.java:176)
到此,相信大家對“java高內(nèi)存cpu分析”有了更深的了解,不妨來實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。