---
title: "所有租户的内存信息洞察 - 敏捷诊断工具 V3.5.0 | OceanBase 文档中心"
description: "所有租户的内存信息洞察 本文适用于独立部署 obdiag 的场景，可以一键执行将所有租户的内存信息展示出来。 使用说明 obdiag display scene run --scene=observer.memory [options] 选项说明如下： 选项名 是否必选 数据类型 默认值 说明 -c 否 string…"
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*5ZXST55u540AAAAAAAAAAAAADiGDAQ/original) 敏捷诊断工具V 3.5.0

# 所有租户的内存信息洞察

更新时间：2025-07-19 13:14:51

[编辑](https://github.com/oceanbase/odt-doc/edit/V3.5.0/zh-CN/470.display/632.observer_memory-of-display.md)  

本文适用于独立部署 obdiag 的场景，可以一键执行将所有租户的内存信息展示出来。

## 使用说明

```shell
obdiag display scene run --scene=observer.memory [options]

```

选项说明如下：

| 选项名 | 是否必选 | 数据类型 | 默认值 | 说明 |
| --- | --- | --- | --- | --- |
| -c | 否 | string | `~/.obdiag/config.yml` | 配置文件路径。 |
| --inner_config | 否 | string | 默认为空 | obdiag 自用的配置。 |
| --config | 否 | string | 默认为空 | 需被 obdiag 诊断的集群的配置，固定样式：--config key1=value1 --config key2=value2。   #### 说明    支持通过该选项配置的参数可参见 [obdiag 配置](https://www.oceanbase.com/docs/common-obdiag-cn-1000000003242059)。 |

## 使用示例

### 方式一：无配置文件使用（开箱即用）

```shell
obdiag display scene run --scene=observer.memory \
    --config db_host=xx.xx.xx.xx \
    --config db_port=xxxx \
    --config tenant_sys.user=root@sys \
    --config tenant_sys.password=***

```

### 方式二：有配置文件使用

需要确保已经在 obdiag 配置文件 `config.yml` 中配置好需要收集节点的登录信息。相关的详细配置介绍，参见 [obdiag 配置](https://www.oceanbase.com/docs/common-obdiag-cn-1000000003242059)。

```shell
obdiag display scene run --scene=observer.memory

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
