Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Iotdb
提交
8cdd31cc
I
Iotdb
项目概览
apache
/
Iotdb
10 个月 前同步成功
通知
25
Star
3344
Fork
916
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iotdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
8cdd31cc
编写于
10月 22, 2019
作者:
H
HTHou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
try to resolve conflicts
上级
03a58fc7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
11 deletion
+7
-11
docs/Documentation-CHN/UserGuide/5-Management/2-Performance Monitor.md
...ation-CHN/UserGuide/5-Management/2-Performance Monitor.md
+7
-11
未找到文件。
docs/Documentation-CHN/UserGuide/5-Management/2-Performance Monitor.md
浏览文件 @
8cdd31cc
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
...
...
@@ -7,26 +6,23 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# 第
5章 系统
管理
# 第
4章 系统部署与
管理
## 性能监控
### 引言
性能监控模块用来监控IOTDB每一个操作的耗时,以便用户更好的了解数据库的整体性能。此模块会统计每一种操作的平均耗时,以及耗时在一定时间区间内(1ms,4ms,16ms,64ms,256ms,1024ms,以上)的操作的比例。输出文件在log_measure.log中。输出样例如下:
<img
style=
"width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;"
src=
"https://user-images.githubusercontent.com/13203019/60937461-14296f80-a303-11e9-9602-a7bed624bfb3.png"
>
### 配置参数
配置文件位置:conf/iotdb-engine.properties
...
...
@@ -39,13 +35,13 @@
|performance
\_
stat
\_
display
\_
interval|60000|打印统计结果的时间延迟,以毫秒为单位|
|performance_stat_memory_in_kb|20|性能监控模块使用的内存阈值,单位为KB|
</center>
### 利用JMX MBean动态调节参数
通过端口31999连接jconsole,并在上方菜单项中选择‘MBean’. 展开侧边框并选择 'org.apache.iotdb.db.cost.statistic'. 将会得到如下图所示结果:
<img
style=
"width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;"
src=
"https://user-images.githubusercontent.com/13203019/60937484-30c5a780-a303-11e9-8e92-04c413df2088.png"
>
**属性**
1.
EnableStat:是否开启性能监控模块,如果被设置为true,则性能监控模块会记录每个操作的耗时并打印结果。这个参数不能直接通过jconsole直接更改,但可通过下方的函数来进行动态设置。
...
...
@@ -59,7 +55,7 @@
3.
stopStatistic:关闭性能监控。
4.
clearStatisticalState(): 清除以统计的结果,从新开始统计。
5.
changeOperationSwitch(String operationName, Boolean operationState):设置是否针对每一种不同的操作开启监控。参数‘operationName是操作的名称,在OperationSwitch属性中展示了所有操作的名称。参数 ‘operationState’是操作的状态,打开或者关闭。如果状态设置成功则此函数会返回true,否则返回false。
### 自定义操作类型监控其他区域
**增加操作项**
...
...
@@ -70,12 +66,12 @@
在监控开始区域增加计时代码:
long t0 = System. currentTimeMillis();
long t0 = System. currentTimeMillis();
在监控结束区域增加记录代码:
Measurement.INSTANCE.addOperationLatency(Operation, t0);
Measurement.INSTANCE.addOperationLatency(Operation, t0);
## cache命中率统计
### 概述
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录