【 使用环境 】测试环境
【 OB or 其他组件 】ob
【 使用版本 】4.2.1
【问题描述】使用ocp白屏安装后,在ocp管控中创建集群,并且添加3个observer,没有特殊配置内存参数,3个observer内存都是16G,按照默认的“memory_limit_percentage 设置为 80,表示使用 80% 的内存”,总共内存是12G,是没问题的。但是我管控页面三台observer都显示是7G,如下图:
通过如下命令查看:
select a.zone,
a.SVR_IP,
a.SVR_PORT,
b.status,
cpu_capacity,
cpu_assigned_max,
cpu_capacity-cpu_assigned_max as cpu_free,
round(memory_limit /1024/1024/1024 ,2) as memory_total_gb,
round((memory_limit-mem_capacity) /1024/1024/1024 ,2) as system_memory_gb,
round(mem_assigned /1024/1024/1024 ,2) as mem_assigned_gb,
round((mem_capacity-mem_assigned) /1024/1024/1024 ,2) as memory_free_gb,
round(log_disk_capacity /1024/1024/1024 ,2) as log_disk_capacity_gb,
round(log_disk_assigned /1024/1024/1024 ,2) as log_disk_assigned_gb,
round((log_disk_capacity-log_disk_assigned) /1024/1024/1024 ,2) as log_disk_free_gb,
round((data_disk_capacity /1024/1024/1024 ),2) as data_disk_gb,
round((data_disk_in_use /1024/1024/1024 ),2) as data_disk_used_gb,round((data_disk_capacity-data_disk_in_use) /1024/1024/1024 ,2) as data_disk_free_gb
from gv$ob_servers a join oceanbase.DBA_OB_SERVERS b on a.zone=b.zone
这有个“”system_memory_gb”占用了5G。那我页面的3台observer,每台总共的内存应该显示是12G把,而不是7G把,然后系统占用5G,剩余7G可用,是不是应该这样显示呢
【复现路径】如上面说所
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):