OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Cloud Platform

V4.3.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Cloud Platform
    3. V4.3.2
    iconOceanBase Cloud Platform
    V 4.3.2
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.4.2
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    tenant_cpu_percent_over_threshold

    Last Updated:2026-04-20 07:26:00  Updated
    Share
    What is on this page
    Description
    Principle
    Alert information
    Alert rule
    Alert templates
    Impact on the system
    Possible causes
    Solutions

    folded

    Share

    Description

    This alert is triggered when the thread usage of an OceanBase Database tenant exceeds the threshold.

    Thread usage of an OceanBase Database tenant = Actual number of active threads of the tenant/Sum of the maximum numbers of tenant threads for all units in the primary zone of the tenant.

    Principle

    The following table describes the key parameters that are involved in the monitoring and alerting logic.

    Parameter
    Value
    Metric ob_tenant_thread_percent

    Note

    This metric indicates the thread usage of a tenant in an OceanBase cluster. An alert is triggered when the metric value is greater than the threshold. The default threshold is 95%.

    Source SQL: select /*+read_consistency(weak)*/ tenant_name, tenant_id, stat_id, value from v$sysstat, __all_tenant where stat_id IN (140006, 140005) and (con_id > 1000 or con_id = 1) and __all_tenant.tenant_id = v$sysstat.con_id;
    The value of the value field is used as that of the sysstat_value metric, and other fields are used as labels.
    Collected metric sysstat_value
    Metric expression 100 * sum(sysstat_value{metric_group="sysstat",stat_id="140006",@LABELS}) by (@GBLABELS) / sum(sysstat_value{metric_group="sysstat",stat_id="140005",@LABELS}) by (@GBLABELS)
    • If the value of stat_id is 140005, the result is the maximum number of threads available for the tenant.
    • If the value of stat_id is 140006, the result is the number of threads being used by the tenant.
    The metric expression means that the value of ob_tenant_thread_percent is the percentage of the sum of values of the value field when stat_id is 140006 to that when stat_id is 140005.
    Collection cycle 1 second

    Alert information

    Trigger method
    Alert level
    Scope
    Based on the expression of the metric Warning Tenant

    Alert rule

    Metric
    Default threshold (unit: %)
    Duration
    Detection cycle
    Time before clearance
    ob_tenant_thread_percent{app="OB"} 95 0 seconds 60 seconds 5 minutes

    Alert templates

    • Overview template: ${alarm_target} ${alarm_name}

    • Details template: Cluster: ${ob_cluster_name}. Tenant: ${tenant_name}. Alert: ${alarm_name}. The tenant thread usage is ${value_shown}, exceeding the threshold ${alarm_threshold} %.

    • Overview example: ob_cluster=obcluster-1:tenant_name=tenant-1:svr_ip=xxx.xxx.xxx.xxx. The thread usage of the OceanBase Database tenant exceeds the threshold.

    • Details example: Cluster: obcluster-1. Tenant: m****. Alert: The thread usage of the OceanBase Database tenant exceeds the threshold. The tenant thread usage is 96.0%, exceeding the threshold 95.0%.

    Impact on the system

    No impact

    Possible causes

    • The application queries a large amount of data or generates hotspot data.

    • The resource plan of the tenant cannot cope with business requirements or hotspot data is generated.

    Solutions

    1. Check whether the load is normal for the application.

      Go to the Performance Monitoring page of the tenant that generated the alert in the OceanBase Cloud Platform (OCP) console. View the Tenant thread usage chart on the Performance and SQL tab. Check whether the tenant thread usage at the alert time surged in comparison with the thread usage in the last one to seven days.

      • If yes, the tenant thread usage is abnormal.

      • Otherwise, the tenant thread usage is normal.

        If the tenant thread usage surge is caused by normal traffic, we recommend that you increase the unit specifications of the tenant and allocate more thread resources to the tenant. For more information, see Manage unit specifications.

    2. If the high tenant thread usage is caused by querying a large amount of data or hotspot traffic, perform the following steps based on the actual scenarios.

      • A large amount of data is queried in SQL execution.

        On the TopSQL tab of the SQL Diagnostics page, check whether SQL queries with high CPU utilization exist.

        • If yes, optimize the SQL query that causes high tenant thread usage.

        • Otherwise, perform the next step.

      • The high tenant thread usage is caused by slow SQL queries.

        On the SlowSQL tab of the SQL Diagnostics page, check the diagnosis result.

        Optimize the slow SQL queries you find.

      • If the high tenant thread usage is caused by hotspot rows of a node in the tenant. For more information, see Apply throttling to an OceanBase cluster.

    Previous topic

    tenant_active_memstore_percent_over_threshold
    Last

    Next topic

    tenant_memstore_percent_over_threshold
    Next
    What is on this page
    Description
    Principle
    Alert information
    Alert rule
    Alert templates
    Impact on the system
    Possible causes
    Solutions