ITPub博客

首页 > 大数据 > 数据分析 > 使用jmap查看HRegionServer的heap信息

使用jmap查看HRegionServer的heap信息

原创 数据分析 作者:javenzhen 时间:2015-09-16 19:37:12 0 删除 编辑
1、使用jmap查看heap信息

  1. grid@slave3:~$ jps
  2.         6709 Jps
  3.         4492 QuorumPeerMain
  4.         4269 DataNode
  5.         4408 TaskTracker
  6.         6544 HRegionServer
  7.         grid@slave3:~$ jmap -heap 6544
  8.         Attaching to process ID 6544, please wait...
  9.         Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
显示连接不上进程
2、更改配置

  1. sudo vi /etc/sysctl.d/10-ptrace.conf
  2.     kernel.yama.ptrace_scope = 1
  3.     更改为
  4.     kernel.yama.ptrace_scope = 0
3、重启系统
4、再次显示jmap heap信息

  1. grid@slave3:~$ jps
  2.     1250 DataNode
  3.     2403 Jps
  4.     1472 QuorumPeerMain
  5.     1368 TaskTracker
  6.     2176 HRegionServer
  7.       
  8.     grid@slave3:~$ jmap -heap 2176
  9.     Attaching to process ID 2176, please wait...
  10.     Debugger attached successfully.
  11.     Server compiler detected.
  12.     JVM version is 24.79-b02
  13.       
  14.     using parallel threads in the new generation.
  15.     using thread-local object allocation.
  16.     Concurrent Mark-Sweep GC
  17.       
  18.     Heap Configuration:
  19.        MinHeapFreeRatio = 40
  20.        MaxHeapFreeRatio = 70
  21.        MaxHeapSize = 1048576000 (1000.0MB)
  22.        NewSize = 1310720 (1.25MB)
  23.        MaxNewSize = 174456832 (166.375MB)
  24.        OldSize = 5439488 (5.1875MB)
  25.        NewRatio = 2
  26.        SurvivorRatio = 8
  27.        PermSize = 21757952 (20.75MB)
  28.        MaxPermSize = 85983232 (82.0MB)
  29.        G1HeapRegionSize = 0 (0.0MB)
  30.       
  31.     Heap Usage:
  32.     New Generation (Eden + 1 Survivor Space):
  33.        capacity = 6553600 (6.25MB)
  34.        used = 4147944 (3.9557876586914062MB)
  35.        free = 2405656 (2.2942123413085938MB)
  36.        63.2926025390625% used
  37.     Eden Space:
  38.        capacity = 5832704 (5.5625MB)
  39.        used = 3658312 (3.4888381958007812MB)
  40.        free = 2174392 (2.0736618041992188MB)
  41.        62.72068666608146% used
  42.     From Space:
  43.        capacity = 720896 (0.6875MB)
  44.        used = 489632 (0.466949462890625MB)
  45.        free = 231264 (0.220550537109375MB)
  46.        67.919921875% used
  47.     To Space:
  48.        capacity = 720896 (0.6875MB)
  49.        used = 0 (0.0MB)
  50.        free = 720896 (0.6875MB)
  51.        0.0% used
  52.     concurrent mark-sweep generation:
  53.        capacity = 39694336 (37.85546875MB)
  54.        used = 25639240 (24.45148468017578MB)
  55.        free = 14055096 (13.403984069824219MB)
  56.        64.59168381101021% used
  57.     Perm Generation:
  58.        capacity = 29622272 (28.25MB)
  59.        used = 21175136 (20.194183349609375MB)
  60.        free = 8447136 (8.055816650390625MB)
  61.        71.48383486587389% used
  62.       
  63.     6249 interned Strings occupying 500784 bytes.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1801493/,如需转载,请注明出处,否则将追究法律责任。

下一篇: Phoenix安装配置
请登录后发表评论 登录
全部评论

注册时间:2011-01-27

  • 博文量
    41
  • 访问量
    89432