<!DOCTYPE html>
< html lang = "en-US" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
< meta name = "generator" content = "VuePress 2.0.0-beta.51" >
< style >
:root {
--c-bg: #fff;
}
html.dark {
--c-bg: #22272e;
}
html, body {
background-color: var(--c-bg);
}
< / style >
< script >
const userMode = localStorage.getItem('vuepress-color-scheme');
const systemDarkMode = window.matchMedia & & window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode !== 'light' & & systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
< / script >
< link rel = "icon" href = "/images/favicon.ico" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta property = "og:title" content = "Arthas" > < meta property = "og:image:alt" content = "Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas - alibaba/arthas: Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas" > < meta property = "og:image" content = "/images/arthas_mate_image.png" > < meta property = "og:description" content = "Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas - alibaba/arthas: Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas" > < meta property = "og:image:width" content = "1200" > < meta property = "og:image:height" content = "600" > < meta property = "twitter:image:src" content = "/images/arthas_mate_image.png" > < meta property = "twitter:image:alt" content = "Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas - alibaba/arthas: Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas" > < meta itemprop = "name" content = "Arthas" > < meta itemprop = "image" content = "/images/arthas_mate_image.png" > < meta itemprop = "description" content = "Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas - alibaba/arthas: Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas" > < script >
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
< / script > < meta name = "aes-config" content = "pid=xux-opensource&user_type=101&uid=&username=&dim10=arthas" > < script src = "//g.alicdn.com/alilog/mlog/aplus_v2.js" id = "beacon-aplus" exparams = "clog=o&aplus&sidx=aplusSidx&ckx=aplusCkx" > < / script > < script src = "//g.alicdn.com/aes/??tracker/1.0.34/index.js,tracker-plugin-pv/2.4.5/index.js,tracker-plugin-event/1.2.5/index.js,tracker-plugin-jserror/1.0.13/index.js,tracker-plugin-api/1.1.14/index.js,tracker-plugin-perf/1.1.8/index.js,tracker-plugin-eventTiming/1.0.4/index.js" > < / script > < title > heapdump | arthas< / title > < meta name = "description" content = "arthas user document" >
< link rel = "modulepreload" href = "/assets/app.073c9ce4.js" > < link rel = "modulepreload" href = "/assets/heapdump.html.6a7c658c.js" > < link rel = "modulepreload" href = "/assets/heapdump.html.de70d77a.js" > < link rel = "prefetch" href = "/assets/index.html.19773134.js" > < link rel = "prefetch" href = "/assets/index.html.fe4e8bcb.js" > < link rel = "prefetch" href = "/assets/index.html.71739d5a.js" > < link rel = "prefetch" href = "/assets/advanced-use.html.84cc4348.js" > < link rel = "prefetch" href = "/assets/advice-class.html.bff10127.js" > < link rel = "prefetch" href = "/assets/agent.html.20e11f66.js" > < link rel = "prefetch" href = "/assets/arthas-properties.html.ee9acb35.js" > < link rel = "prefetch" href = "/assets/arthas3.html.2b39e1de.js" > < link rel = "prefetch" href = "/assets/async.html.92f6170d.js" > < link rel = "prefetch" href = "/assets/auth.html.3108624b.js" > < link rel = "prefetch" href = "/assets/base64.html.339687fa.js" > < link rel = "prefetch" href = "/assets/batch-support.html.feb4bf4d.js" > < link rel = "prefetch" href = "/assets/cat.html.d14f91be.js" > < link rel = "prefetch" href = "/assets/classloader.html.f3d637ce.js" > < link rel = "prefetch" href = "/assets/cls.html.4295eb65.js" > < link rel = "prefetch" href = "/assets/commands.html.956cc7a6.js" > < link rel = "prefetch" href = "/assets/contact-us.html.5ca3d65d.js" > < link rel = "prefetch" href = "/assets/dashboard.html.f18f261d.js" > < link rel = "prefetch" href = "/assets/docker.html.63ee9699.js" > < link rel = "prefetch" href = "/assets/download.html.cd0f3649.js" > < link rel = "prefetch" href = "/assets/dump.html.2a1f1547.js" > < link rel = "prefetch" href = "/assets/echo.html.69395b71.js" > < link rel = "prefetch" href = "/assets/faq.html.aa069162.js" > < link rel = "prefetch" href = "/assets/getstatic.html.40e30f29.js" > < link rel = "prefetch" href = "/assets/grep.html.d996b16c.js" > < link rel = "prefetch" href = "/assets/groovy.html.e41f9f90.js" > < link rel = "prefetch" href = "/assets/heapdump.html.e247cd18.js" > < link rel = "prefetch" href = "/assets/help.html.bacc652d.js" > < link rel = "prefetch" href = "/assets/history.html.057d5aae.js" > < link rel = "prefetch" href = "/assets/http-api.html.014a9101.js" > < link rel = "prefetch" href = "/assets/idea-plugin.html.35f8eedf.js" > < link rel = "prefetch" href = "/assets/install-detail.html.7515a2c0.js" > < link rel = "prefetch" href = "/assets/jad.html.e15ea1ff.js" > < link rel = "prefetch" href = "/assets/jfr.html.036a97e7.js" > < link rel = "prefetch" href = "/assets/jvm.html.5ddb6d6d.js" > < link rel = "prefetch" href = "/assets/keymap.html.78da4708.js" > < link rel = "prefetch" href = "/assets/logger.html.2410ca71.js" > < link rel = "prefetch" href = "/assets/manual-install.html.0b752c2c.js" > < link rel = "prefetch" href = "/assets/mbean.html.6dd03ad1.js" > < link rel = "prefetch" href = "/assets/mc.html.d1b9407e.js" > < link rel = "prefetch" href = "/assets/memory.html.0c40cf25.js" > < link rel = "prefetch" href = "/assets/monitor.html.909fac07.js" > < link rel = "prefetch" href = "/assets/ognl.html.f9990054.js" > < link rel = "prefetch" href = "/assets/options.html.9eab762f.js" > < link rel = "prefetch" href = "/assets/perfcounter.html.50e83cfb.js" > < link rel = "prefetch" href = "/assets/profiler.html.8bc0afd7.js" > < link rel = "prefetch" href = "/assets/pwd.html.06b68460.js" > < link rel = "prefetch" href = "/assets/quick-start.html.ef3f1317.js" > < link rel = "prefetch" href = "/assets/quit.html.49456205.js" > < link rel = "prefetch" href = "/assets/redefine.html.15bd9e34.js" > < link rel = "prefetch" href = "/assets/release-notes.html.32c4e230.js" > < link rel = "prefetch" href = "/assets/reset.html.8d0562a1.js" > < link rel = "prefetch" href = "/assets/retransform.html.486e9317.js" > < link rel = "prefetch" href = "/assets/save-log.html.30787d79.js" > < link rel = "prefetch" href = "/assets/sc.html.8d32144f.js" > < link rel = "prefetch" href = "/assets/session.html.f5fa862f.js" > < link rel = "prefetch" href = "/assets/sm.html.a72776c5.js" > < link rel = "prefetch" href = "/assets/spring-boot-starter.html.d47a2625.js" > < link rel = "prefetch" href = "/assets/stack.html.b5b9e578.js" > < link rel = "prefetch" href = "/assets/start-arthas.html.96937bb7.js" > < link rel = "prefetch" href = "/assets/stop.html.b0a75cbc.js" > < link rel = "prefetch" href = "/assets/sysenv.html.c0cde84e.js" > < link rel = "prefetch" href = "/assets/sysprop.html.c74ff3fd.js" > < link rel = "prefetch" href = "/assets/tee.html.ff4e81
< link rel = "stylesheet" href = "/assets/style.da1934a3.css" >
< / head >
< body >
< div id = "app" > <!-- [ --> < div class = "theme-container" > <!-- [ --> < header class = "navbar" > < div class = "toggle-sidebar-button" title = "toggle sidebar" aria-expanded = "false" role = "button" tabindex = "0" > < div class = "icon" aria-hidden = "true" > < span > < / span > < span > < / span > < span > < / span > < / div > < / div > < span > < a href = "/en/" class = "" data-v-61144abc > <!-- --> < span class = "site-name can-hide" data-v-61144abc > arthas< / span > < span class = "navbar-version" data-v-61144abc > v3.6.9< / span > < / a > < / span > < div class = "navbar-items-wrapper" style = "" > <!-- [ --> <!-- ] --> < nav class = "navbar-items can-hide" > <!-- [ --> < div class = "navbar-item" > < a href = "/en/" class = "" aria-label = "HOME" > <!-- [ --> <!-- ] --> HOME <!-- [ --> <!-- ] --> < / a > < / div > < div class = "navbar-item" > < a class = "external-link" href = "/doc/arthas-tutorials.html?language=en&id=arthas-basics" rel = "noopener noreferrer" target = "_blank" aria-label = "ONLINE TUTORIALS" > <!-- [ --> <!-- ] --> < span > ONLINE TUTORIALS< / span > < span > < svg class = "external-link-icon" xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" focusable = "false" x = "0px" y = "0px" viewbox = "0 0 100 100" width = "15" height = "15" > < path fill = "currentColor" d = "M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z" > < / path > < polygon fill = "currentColor" points = "45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9" > < / polygon > < / svg > < span class = "external-link-icon-sr-only" > open in new window< / span > < / span > <!-- [ --> <!-- ] --> < / a > < / div > < div class = "navbar-item" > < a href = "/en/doc" class = "router-link-active" aria-label = "DOCS" > <!-- [ --> <!-- ] --> DOCS <!-- [ --> <!-- ] --> < / a > < / div > < div class = "navbar-item" > < a href = "/en/doc/commands.md" class = "" aria-label = "COMMANDS" > <!-- [ --> <!-- ] --> COMMANDS <!-- [ --> <!-- ] --> < / a > < / div > < div class = "navbar-item" > < a href = "/en/doc/download.md" class = "" aria-label = "DOWNLOAD" > <!-- [ --> <!-- ] --> DOWNLOAD <!-- [ --> <!-- ] --> < / a > < / div > < div class = "navbar-item" > < div class = "navbar-dropdown-wrapper" > < button class = "navbar-dropdown-title" type = "button" aria-label = "SOLUTIONS" > < span class = "title" > SOLUTIONS< / span > < span class = "arrow down" > < / span > < / button > < button class = "navbar-dropdown-title-mobile" type = "button" aria-label = "SOLUTIONS" > < span class = "title" > SOLUTIONS< / span > < span class = "right arrow" > < / span > < / button > < ul style = "display:none;" class = "navbar-dropdown" > <!-- [ --> < li class = "navbar-dropdown-item" > < a class = "external-link" href = "https://cn.aliyun.com/product/aliware/mse?spm=arthas.topbar.0.0.0" rel = "noopener noreferrer" target = "_blank" aria-label = "Microservice solutions" > <!-- [ --> <!-- ] --> < span > Microservice solutions< / span > < span > < svg class = "external-link-icon" xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" focusable = "false" x = "0px" y = "0px" viewbox = "0 0 100 100" width = "15" height = "15" > < path fill = "currentColor" d = "M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z" > < / path > < polygon fill = "currentColor" points = "45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9" > < / polygon > < / svg > < span class = "external-link-icon-sr-only" > open in new window< / span > < / span > <!-- [ --> <!-- ] --> < / a > < / li > < li class = "navbar-dropdown-item" > < a class = "external-link" href = "https://www.aliyun.com/aliware/txc?spm=arthas.topbar.0.0.0" rel = "noopener noreferrer" target = "_blank" aria-label = "Distributed transaction solutions" > <!-- [ --> <!-- ] --> < span > Distributed transaction solutions< / span > < span > < svg class = "external-link-icon" xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" focusable = "false" x = "0px" y = "0px" viewbox = "0 0 100 100" width = "15" height = "15" > < path fill = "currentColor" d = "M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z" > < / path > < polygon fill = "currentColor" points = "45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9" > < / polygon > < / svg > < span class = "external-link-icon-sr-only" > open in new window< / span > < / span > <!-- [ --> <!-- ] --> < / a > < / li > < li class = "navbar-dropdown-item" > < a class = "external-link" href = "https://www.aliyun.com/product/aha
Dumping heap to arthas-output/dump.hprof < span class = "token punctuation" > ..< / span > .
Heap dump < span class = "token function" > file< / span > created
< / code > < / pre > < div class = "line-numbers" aria-hidden = "true" > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < / div > < / div > < div class = "custom-container tip" > < p class = "custom-container-title" > TIP< / p > < p > The generated file is located in the arthas-output directory and can be downloaded through the browser at http://localhost:8563/arthas-output/< / p > < / div > < h3 id = "dump-only-live-objects" tabindex = "-1" > < a class = "header-anchor" href = "#dump-only-live-objects" aria-hidden = "true" > #< / a > Dump only live objects< / h3 > < div class = "language-bash ext-sh line-numbers-mode" > < pre class = "language-bash" > < code > < span class = "token punctuation" > [< / span > arthas@58205< span class = "token punctuation" > ]< / span > $ heapdump < span class = "token parameter variable" > --live< / span > /tmp/dump.hprof
Dumping heap to /tmp/dump.hprof < span class = "token punctuation" > ..< / span > .
Heap dump < span class = "token function" > file< / span > created
< / code > < / pre > < div class = "line-numbers" aria-hidden = "true" > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < / div > < / div > < h3 id = "dump-to-tmp-file" tabindex = "-1" > < a class = "header-anchor" href = "#dump-to-tmp-file" aria-hidden = "true" > #< / a > Dump to tmp file< / h3 > < div class = "language-bash ext-sh line-numbers-mode" > < pre class = "language-bash" > < code > < span class = "token punctuation" > [< / span > arthas@58205< span class = "token punctuation" > ]< / span > $ heapdump
Dumping heap to /var/folders/my/wy7c9w9j5732xbkcyt1mb4g40000gp/T/heapdump2019-09-03-16-385121018449645518991.hprof< span class = "token punctuation" > ..< / span > .
Heap dump < span class = "token function" > file< / span > created
< / code > < / pre > < div class = "line-numbers" aria-hidden = "true" > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < div class = "line-number" > < / div > < / div > < / div > < / div > <!-- [ --> <!-- ] --> < / div > < footer class = "page-meta right-menu-padding" data-v-fdd717e0 > < div class = "meta-item edit-link" > < a class = "external-link meta-item-label" href = "https://github.com/alibaba/arthas/edit/master/site/docs/en/doc/heapdump.md" rel = "noopener noreferrer" target = "_blank" aria-label = "Edit this page on GitHub" > <!-- [ --> <!-- ] --> < span > Edit this page on GitHub< / span > < span > < svg class = "external-link-icon" xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" focusable = "false" x = "0px" y = "0px" viewbox = "0 0 100 100" width = "15" height = "15" > < path fill = "currentColor" d = "M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z" > < / path > < polygon fill = "currentColor" points = "45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9" > < / polygon > < / svg > < span class = "external-link-icon-sr-only" > open in new window< / span > < / span > <!-- [ --> <!-- ] --> < / a > < / div > < div class = "meta-item last-updated" > < span class = "meta-item-label" > Last Updated: < / span > <!-- --> < / div > < div class = "meta-item contributors" > < span class = "meta-item-label" > Contributors: < / span > < span class = "meta-item-info" > <!-- [ --> <!-- [ --> < span class = "contributor" title = "email: hengyunabc@gmail.com" > hengyunabc< / span > <!-- [ --> , <!-- ] --> <!-- ] --> <!-- [ --> < span class = "contributor" title = "email: i@fatpandac.com" > Fatpandac< / span > <!-- [ --> , <!-- ] --> <!-- ] --> <!-- [ --> < span class = "contributor" title = "email: hengyunabc@users.noreply.github.com" > hengyunabc< / span > <!-- [ --> , <!-- ] --> <!-- ] --> <!-- [ --> < span class = "contributor" title = "email: hollowman186@vip.qq.com" > Hollow Man< / span > <!-- --> <!-- ] --> <!-- ] --> < / span > < / div > < / footer > < nav class = "page-nav right-menu-padding" data-v-fdd717e0 > < p class = "inner" > < span class = "prev" > < a href = "/en/doc/getstatic.html" class = "" aria-label = "getstatic" > <!-- [ --> <!-- ] --> getstatic <!-- [ --> <!-- ] --> < / a > < / span > < span class = "next" > < a href = "/en/doc/jvm.html" class = "" aria-label = "jvm" > <!-- [ --> <!-- ] --> jvm <!-- [ --> <!-- ] --> < / a > < / span > < / p > < / nav > <!-- [ --> <!-- ] --> < / main > <!-- ] --> < / div > <!-- --> <!-- ] --> < / div >
< script type = "module" src = "/assets/app.073c9ce4.js" defer > < / script >
< / body >
< / html >