最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

DB2db2mtrk用法总结

来源:动视网 责编:小采 时间:2020-11-09 11:36:57
文档

DB2db2mtrk用法总结

DB2db2mtrk用法总结:DB2 db2mtrk用法总结,当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memo 当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memory
推荐度:
导读DB2db2mtrk用法总结:DB2 db2mtrk用法总结,当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memo 当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memory


DB2 db2mtrk用法总结,当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memo

当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memory并不能准确的看到这些信息,因为instance_memory包括了mon_heap, audit_buf_sz and FCM, database shared memory segment (bufferpool, locklist, dbheap, pckcache, util_heap, catalogcache)这些内存池集合,而db2mtrk就可以指定数据库和实例级别查看实时的内存使用情况

所以在DB2中,,db2mtrk工具就是一个查看当前内存使用情况的非常好的的工具。

db2mtrk的命令语法:(unix,linux,window平台之间可能有稍许差异)
db2inst1@marven ~]$ db2mtrk -h
Usage: db2mtrk -i | -d | -a | -p [-m | -w] [-v] [-r interval [count]] [-h]


-i Display instance level memory usage
-d Display database level memory usage
-a Display application level memory usage
-p Display agent private memory usage
-m Display maximum usage information
-w Display watermark usage information
-v Display verbose memory usage information
-r Run in repeat mode
interval Amount of seconds to wait between reports
count Number of reports to generate before quitting
-h Display this help screen

Notes:

1. One of -i -d -a -p must be specified.
2. The -w and -m flags are optional. An invocation of the application
is invalid if both flags are specified.
3. The -m flag reports the maximum allowable size for a given heap
while the -w flag reports the largest amount of memory allocated
from a given heap at some point in its history.

Usage scenarios:

db2mtrk -i -d

Report current memory usage for instance and all databases

db2mtrk -i -p -m

Report maximum allowable size for instance and agent private memory

db2mtrk -p -r 1 5

Report agent private memory five times at one second intervals

Heap Legend:

When running in normal mode (i.e. -v flag not specified) heaps are named
using the following codes:

agsh - Application Group Shared Heap lockh - Lock Manager Heap
appctlh - Application Control Heap monh - Database Monitor Heap
apph - Application Heap other - Other Memory
appshrh - Applications Shared Heap pckcacheh - Package Cache
bph - Buffer Pool Heap queryh - Query Heap
catcacheh - Catalog Cache Heap shsorth - Shared Sort Heap
dbh - Database Heap sorth - Sort Heap
dlfmh - DFM Heap stath - Statistics Heap
fcmbp - FCMBP Heap stmth - Statement Heap
ip - Import Pool utilh - Backup/Restore/Util Heap



-m 参数选项是显示最大的内存使用上线
-w 参数选项是显示使用过程中内存达到的最大值,既watermark

-r 参数选项是重复显示 interval是重复显示的时间间隔数 count是要重复显示的次数

文档

DB2db2mtrk用法总结

DB2db2mtrk用法总结:DB2 db2mtrk用法总结,当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memo 当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memory
推荐度:
标签: 使用 数据库 or
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top