Skip to content

Commit b2a31f6

Browse files
committed
Java自带命令jmap内存监控
1 parent 986f2ac commit b2a31f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Java_jmap_histo_pid/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
###jmap -histo pid 输出结果样式
1+
### jmap -histo pid 输出结果样式
22

33
因为在Linux环境,用jdk自带的jmap工具(Linux/Unix环境特有的),可以对进程中的内存对象监视,然后就运行命令jmap -histo [pid],找内存中的对象数目变化,如下图所示:
44

@@ -59,7 +59,7 @@
5959
2950: 1 16 org.springframework.data.redis.connection.convert.StringToRedisClientInfoConverter
6060
Total 3090439 316004152
6161

62-
####输出结果说明
62+
#### 输出结果说明
6363

6464
[C is a char[]
6565
[S is a short[]

0 commit comments

Comments
 (0)