Skip to content

Commit

Permalink
f: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhanhan committed Jun 4, 2024
1 parent 495b46e commit 8b6c7f2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _posts/Java/Tools/2024-04-21-jmap-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: post
category: [Java, 工具]
tags: [Java, jmap]
title: jmap java 进程调试工具
---

## jmap 参数

1. `-clstats <pid>`: 打印堆内存中类加载信息的统计
2. `finalizerinfo <pid>`:打印等待最终确定的对象的信息
3. `-histo[:live] <pid>`: 打印堆内存中对象直方图,如果指定为:`-histolive`,则只打印存活对象的统计
4. `-dump:<dump_options> <pid>`:dump 堆内存,`dump_options`,可以指定如下参数
- `live`:仅dump活动对象;如果未指定,则dump堆中的所有对象。
- `format=<b>`: 以 hprof 二进制格式转储 Java 堆
- `filename=<filename>`:将堆dump到文件名
tips: `jmap -dump:live,format=b,file=heap.bin <pid>`


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Docker 技术架构
layout: post
category: [容器, docker]
tags: [Docker, 容器]
---

![](../../../assets/posts/容器/Docker/20240604/img.png)
Binary file added assets/posts/容器/Docker/20240604/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b6c7f2

Please sign in to comment.