文档章节

JVM.jmp

脑丨残
 脑丨残
发布于 2017/05/23 22:35
字数 268
阅读 13
收藏 0
jvm

#jmap

1. `jmap -heap pid`, JVM堆信息
using thread-local object allocation.
Parallel GC with 4 thread(s)
Heap Configuration:
   MinHeapFreeRatio = 0
   MaxHeapFreeRatio = 100
   MaxHeapSize      = 2136997888 (2038.0MB)
   NewSize          = 1310720 (1.25MB)
   MaxNewSize       = 17592186044415 MB
   OldSize          = 5439488 (5.1875MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 21757952 (20.75MB)
   MaxPermSize      = 85983232 (82.0MB)
   G1HeapRegionSize = 0 (0.0MB)
Heap Usage:
PS Young Generation
Eden Space:
   capacity = 34078720 (32.5MB)
   used     = 3408288 (3.250396728515625MB)
   free     = 30670432 (29.249603271484375MB)
   10.001220703125% used
From Space:
   capacity = 5242880 (5.0MB)
   used     = 0 (0.0MB)
   free     = 5242880 (5.0MB)
   0.0% used
To Space:
   capacity = 5242880 (5.0MB)
   used     = 0 (0.0MB)
   free     = 5242880 (5.0MB)
   0.0% used
PS Old Generation
   capacity = 88604672 (84.5MB)
   used     = 0 (0.0MB)
   free     = 88604672 (84.5MB)
   0.0% used
PS Perm Generation
   capacity = 22020096 (21.0MB)
   used     = 2690616 (2.5659713745117188MB)
   free     = 19329480 (18.43402862548828MB)
   12.218911307198661% used
1539 interned Strings occupying 141344 bytes.
2. `jmap -histo:live pid`可以查看当前Java进程创建的活跃对象数目和占用内存大小。
 num     #instances         #bytes  class name
----------------------------------------------
   1:          5956         767888  <methodKlass>
   2:          5956         687232  <constMethodKlass>
   3:           406         477264  <constantPoolKlass>
   4:          2661         424416  [C
   5:           369         285472  <constantPoolCacheKlass>
  96:             2             64  [Ljava.lang.Thread;
try
 140:             1             32  java.security.Permissions
 141:             1             24  java.util.concurrent.TimeUnit$4
 142:             1             24  sun.launcher.LauncherHelper
 143:             1             24  [Lsun.launcher.LauncherHelper;
 191:             1             16  java.util.zip.ZipFile$2
 192:             1             16  java.nio.Bits$1
 193:             1             16  java.lang.System$2
 194:             1             16  java.lang.Runtime
 195:             1             16  java.util.Collections$EmptySet
 196:             1             16  java.util.Collections$EmptyList
 197:             1             16  sun.misc.Launcher$Factory
Total         23841        3375688
3. `jmap -dump:format=b,file=e:\\dump.dat pid`导出dump文件,以供分析

© 著作权归作者所有

共有 人打赏支持
上一篇: ZooKeeper.分布式锁
下一篇: JVM.jstatck
脑丨残
粉丝 8
博文 60
码字总数 23267
作品 0
西安
私信 提问

暂无文章

binlog2sql mysql数据库闪回工具

binlog2sql工具比mysqlbinlog+sed恢复更快捷。 1、安装: 从github上下载:https://github.com/danfengcao/binlog2sql shell> git clone https://github.com/danfengcao/binlog2sql.git && c......

mickelfeng
8分钟前
0
0
SpringCloud 复杂对象接收时候对象变成LinkeHashMap

如果定义feign接口为 @PostMapping("/user/queryUserByAccountStatus") BaseResult queryUserByAccountStatus(@RequestBody AccountsTenantIdStatusArg arg); 其中BaseResult的范性应该为Lis......

xiaomin0322
8分钟前
0
0
Android/Java 读、写MP3文件ID3V1信息

MP3的歌曲信息一般分两个大版本,分别是ID3V1和ID3V2,其中V2又分为好几个版本,具体百度一下,下方的代码仅仅是支持ID3V1。 需要用到的一个辅助工具(juniversalchardet)用于解决乱码问题,...

她叫我小渝
9分钟前
0
0
thymeleaf的onclick标签传参异常

异常 org.thymeleaf.exceptions.TemplateProcessingException: Only variable expressions returning numbers or booleans are allowed in this context, any other datatypes are not trust......

EasyProgramming
10分钟前
0
0
前端杂谈: CSS 权重 (Specificity)

前端杂谈: CSS 权重 (Specificity) css 权重想必大家都听说过, 一些简单的规则大部分人也都知道: 较长的 css selector 权重会大于较短的 css selector id selector 权重高于 class selector...

ssthouse_hust
17分钟前
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部