plan_cache_stat 的mem_used 会出现负数

【 使用环境 】生产环境
【 OB or 其他组件 】
【 使用版本 】3.2.3
【问题描述】
plan_cache_stat 的mem_used 会出现负数
image

是什么问题,有人帮忙解答吗

你好,你提的这个技术问题牵涉到OceanBase企业版范围内的功能细节;针对此类问题,建议你通过以下方式寻求帮助:

  1. 如你所在的企业客户已签署OceanBase企业版销售合同,请你联系客户经理;
  2. 如你所在的企业客户尚未签署OceanBase企业版销售合同,你可通过OceanBase官网商务咨询页面留下你的联系方式,OceanBase企业版的业务顾问会在一个工作日内与你联系。

另外,我们欢迎你使用社区版,并在论坛/社群中分享你对社区版本的想法、经验和问题,与其他社区成员共同交流。

有用户说社区版好像也有类似的问题,@淇铭 @辞霜 要不要来看下?

obclient: [Warning] Using a password on the command line interface can be insecure.
Welcome to the OceanBase monitor.  Commands end with ; or \g.
Your OceanBase connection id is 3221643558
Server version: 5.7.25 OceanBase_CE 4.3.5.1 (r101000042025031818-b6d5706eb3d2c5f501c7fa646ddbf32f3dc87069) (Built Mar 18 2025 18:12:30)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

obclient> select * from oceanbase.GV$OB_PLAN_CACHE_STAT;
+-----------+--------------+----------+---------+------------+----------+--------------+-----------+----------+----------+-----------+-------------+-------------+
| TENANT_ID | SVR_IP       | SVR_PORT | SQL_NUM | MEM_USED   | MEM_HOLD | ACCESS_COUNT | HIT_COUNT | HIT_RATE | PLAN_NUM | MEM_LIMIT | HASH_BUCKET | STMTKEY_NUM |
+-----------+--------------+----------+---------+------------+----------+--------------+-----------+----------+----------+-----------+-------------+-------------+
|      1002 | 11.158.31.20 |    22602 |     152 | -188364394 | 40370176 |     26475051 |  26462601 |       99 |      152 |  53687090 |       49157 |           0 |
+-----------+--------------+----------+---------+------------+----------+--------------+-----------+----------+----------+-----------+-------------+-------------+
1 row in set (0.00 sec)

1 个赞

:ok_hand:
我测一下

1 个赞

是个已知的bug

2 个赞

有预计修复的版本吗?

看着要迭代到421bp11h2 42x和43x都有

1 个赞