Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

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 Database Proxy

V4.3.6

  • What is ODP?
  • Installation and deployment
    • Overview
    • Deploy ODP by using obd
    • Deploy ODP by using OCP
    • Deploy ODP by using the CLI
    • Deployment modes
  • Basic operations
  • Configuration parameter
    • View and modify parameters
    • Parameter summary
    • Global parameters
      • automatic_match_work_thread
      • block_thread_num
      • cache_cleaner_clean_interval
      • check_tenant_locality_change
      • client_max_connections
      • client_max_memory_size
      • client_session_id_version
      • client_sock_option_flag_out
      • client_tcp_keepcnt
      • client_tcp_keepidle
      • client_tcp_keepintvl
      • client_tcp_user_timeout
      • cluster_count_high_water_mark
      • cluster_expire_time
      • config_server_refresh_interval
      • congestion_fail_window
      • congestion_failure_threshold
      • congestion_retry_interval
      • connection_diagnosis_option
      • connection_pool_mode
      • connect_observer_max_retries
      • current_local_config_version
      • default_buffer_water_mark
      • default_inactivity_timeout
      • delay_exit_time
      • delay_update_entry_interval
      • detect_server_timeout
      • digest_sql_length
      • enable_abort_conn_info
      • enable_async_log
      • enable_async_pull_location_cache
      • enable_auto_restart
      • enable_bad_route_reject
      • enable_binlog_service
      • enable_cached_server
      • enable_causal_order_read
      • enable_client_connection_lru_disconnect
      • enable_client_ip_checkout
      • enable_cluster_checkout
      • enable_compression_protocol
      • enable_congestion
      • enable_connection_diagnosis
      • enable_cpu_isolate
      • enable_cpu_topology
      • enable_crash_error_log
      • enable_cross_shard_txn
      • enable_extra_prometheus_metric
      • enable_flow_control
      • enable_full_link_trace
      • enable_full_username
      • enable_get_rslist_remote
      • enable_global_ps_cache
      • enable_index_route
      • enable_monitor_stat
      • enable_ob_protocol_v2
      • enable_obproxy_rpc_service
      • enable_partition_table_route
      • enable_performance_mode
      • enable_pl_route
      • enable_primary_zone
      • enable_prometheus
      • enable_proxy_scramble
      • enable_qa_mode
      • enable_qos
      • enable_report_session_stats
      • enable_reroute
      • enable_scan_all_request
      • enable_sequence_prefetch
      • enable_sharding
      • enable_single_leader_node_routing
      • enable_standby
      • enable_stat
      • enable_strict_kernel_release
      • enable_strict_stat_time
      • enable_sync_all_stats
      • enable_syslog_file_compress
      • enable_syslog_wf
      • enable_trace
      • enable_trace_stats
      • enable_trans_detail_stats
      • enable_transaction_internal_routing
      • enable_xa_route
      • fetch_proxy_bin_random_time
      • fetch_proxy_bin_timeout
      • flow_consumer_reenable_threshold
      • flow_event_queue_threshold
      • flow_high_water_mark
      • flow_low_water_mark
      • grpc_client_num
      • grpc_thread_num
      • hot_upgrade_exit_timeout
      • hot_upgrade_failure_retries
      • hot_upgrade_rollback_timeout
      • idc_list_refresh_interval
      • ignore_local_config
      • internal_cmd_mem_limited
      • ip_listen_mode
      • is_need_skip_delay_interval_schema_changed
      • ldg_info_refresh_interval
      • listen_port
      • local_bound_ip
      • local_bound_ipv6_ip
      • log_cleanup_interval
      • log_dir_size_threshold
      • log_file_percentage
      • long_async_task_timeout
      • max_log_file_size
      • max_syslog_file_count
      • max_syslog_file_time
      • mem_leak_check_class_name
      • mem_leak_check_mod_name
      • metadb_server_state_refresh_interval
      • min_congested_connect_timeout
      • min_keep_congestion_interval
      • monitor_cost_ms_unit
      • monitor_item_limit
      • monitor_item_max_idle_period
      • monitor_log_level
      • monitor_stat_dump_interval
      • monitor_stat_high_threshold
      • monitor_stat_low_threshold
      • monitor_stat_middle_threshold
      • need_convert_vip_to_tname
      • net_accept_threads
      • net_config_poll_timeout
      • normal_pl_update_threshold
      • obproxy_config_server_url
      • obproxy_sys_password
      • partition_location_expire_relative_time
      • prometheus_cost_ms_unit
      • prometheus_listen_port
      • prometheus_sync_interval
      • protocol_diagnosis_level
      • proxy_cluster
      • proxy_hot_upgrade_check_interval
      • proxy_id
      • proxy_info_check_interval
      • proxy_local_cmd
      • proxy_mem_limited
      • qa_mode_mock_public_cloud_slb_addr
      • qos_stat_clean_interval
      • qos_stat_item_limit
      • refresh_idc_list
      • refresh_json_config
      • refresh_rslist
      • request_buffer_length
      • rootservice_list
      • rpc_client_net_write_timeout
      • rpc_client_net_read_timeout
      • rpc_async_pull_batch_max_size
      • rpc_async_task_thread_num
      • rpc_ctx_expire_time
      • routing_cache_mem_limited
      • rpc_enable_async_analyze
      • rpc_enable_async_pull_batch_tablets
      • rpc_async_pull_batch_max_times
      • rpc_async_pull_batch_wait_interval
      • rpc_enable_direct_expire_route_entry
      • rpc_enable_congestion
      • rpc_enable_lower_case_table_names
      • rpc_enable_global_index
      • rpc_enable_force_srv_black_list
      • rpc_enable_requestsm_info
      • rpc_enable_reroute
      • rpc_enable_parallel_handler
      • rpc_enable_retry_request_info_log
      • rpc_force_use_original_redis_protocol
      • rpc_enable_sub_req_log
      • rpc_force_srv_black_list
      • rpc_listen_port
      • rpc_max_request_batch_size
      • rpc_max_response_batch_size
      • rpc_max_server_table_entry_num
      • rpc_net_timeout_base
      • rpc_partition_calc_max_retries
      • rpc_redis_operation_timeout
      • rpc_request_server_entry_max_retries
      • rpc_request_timeout
      • rpc_request_max_retries
      • rpc_redis_default_database_name
      • rpc_redis_max_monitor_num
      • rpc_period_task_interval
      • rpc_redis_default_user_name
      • rpc_request_retry_waiting_time
      • rpc_server_entry_expire_time
      • rpc_request_timeout_delta
      • rpc_server_net_handler_expire_time
      • rpc_server_net_invalid_time_us
      • rpc_srv_session_pool_inactive_timeout
      • rpc_service_mode
      • rpc_server_net_max_pending_request
      • rpc_sub_request_isolation_mode
      • rpc_support_key_partition_shard_request
      • rpc_sub_request_weight
      • rpc_sub_req_max_retries
      • scan_buffered_rows_warning_threshold
      • sequence_entry_expire_time
      • sequence_fail_retry_count
      • sequence_prefetch_threshold
      • server_detect_fail_threshold
      • server_detect_mode
      • server_detect_refresh_interval
      • server_protocol
      • server_routing_mode
      • server_state_refresh_interval
      • server_tcp_init_cwnd
      • server_tcp_keepcnt
      • server_tcp_keepidle
      • server_tcp_keepintvl
      • server_tcp_user_timeout
      • session_pool_idle_timeout
      • session_pool_reset_interval
      • session_pool_stat_log_interval
      • session_pool_thread_num
      • session_pool_thread_schedule_interval
      • shard_scan_thread_num
      • short_async_task_timeout
      • skip_proxy_sys_private_check
      • skip_proxyro_check
      • slow_proxy_process_time_threshold
      • slow_transaction_time_threshold
      • sock_option_flag_out
      • sock_packet_mark_out
      • sock_packet_tos_out
      • sock_recv_buffer_size_out
      • sock_send_buffer_size_out
      • sql_table_cache_expire_relative_time
      • sql_table_cache_mem_limited
      • sqlaudit_mem_limited
      • stack_size
      • stat_dump_interval
      • stat_table_sync_interval
      • syslog_io_bandwidth_limit
      • syslog_level
      • table_entry_retry_build_limit
      • task_thread_num
      • tenant_location_valid_time
      • tunnel_request_size_threshold
      • username_separator
      • work_thread_num
      • xflush_log_level
    • Multi-level parameters
      • binlog_service_ip
      • compression_algorithm
      • enable_check_cluster_name
      • enable_client_ssl
      • enable_cloud_full_username
      • enable_read_write_split
      • enable_rpc_throttle
      • enable_server_ssl
      • enable_standby_read_write_split
      • enable_transaction_split
      • enable_weak_reroute
      • init_sql
      • mysql_version
      • ob_max_read_stale_time
      • obproxy_force_parallel_query_dop
      • obproxy_read_consistency
      • obproxy_read_only
      • observer_query_timeout_delta
      • observer_sys_password
      • observer_sys_password1
      • proxy_idc_name
      • proxy_primary_zone_name
      • proxy_route_policy
      • proxy_tenant_name
      • query_digest_time_threshold
      • read_stale_retry_interval
      • rootservice_cluster_name
      • route_diagnosis_level
      • rpc_request_throttle_waiting_time
      • rpc_throttle_limit_qps_qa
      • route_target_replica_type
      • rpc_throttle_trigger_percentage
      • slow_query_time_threshold
      • sql_firewall_config
      • ssl_attributes
      • target_db_server
      • weakread_weight_zone
  • Connection management
    • Principles
    • Session status synchronization
    • Configure a globally unique client session ID
    • Client session
    • Server session
    • Network connection
    • Session connection pool
  • Data routing
    • Factors affecting data routing
    • ODP routing
    • Intra-tenant routing
      • Overview
      • IP address-based routing
      • Partitioned table-based routing for strong-consistency reads
      • Global index table-based routing for strong-consistency reads
      • Replicated table-based routing for strong-consistency reads
      • Primary zone-based routing for strong-consistency reads
      • Strategy-based routing
      • Distributed transaction routing
      • Rerouting
      • Forcible routing
      • Weight-based load-balanced routing
      • Equality derivation for partition calculation
    • Automatic routing to the primary/standby tenants
    • Read/Write separation
    • Follower latency threshold
    • Function partition key routing
      • Overview
      • String functions
      • Numeric calculation functions
      • Date calculation functions
      • FAQ
    • Character set-based routing
    • Partitioning key types supported for routing by ODP
  • Logs
    • Overview
    • obproxy_diagnosis.log
    • obproxy_digest.log
    • obproxy_error.log
    • obproxy_slow.log
    • obproxy_stat.log
    • obproxy.log
  • Commands
    • Overview
    • Dedicated ODP commands
      • ALTER
      • KILL
        • KILL GLOBALSESSION
        • KILL PROXYSESSION
      • ping
      • SHOW
        • SHOW
        • SHOW GLOBALSESSION
        • SHOW PROXYPS
    • Compatible MySQL commands
      • BINLOG
      • KILL
      • SHOW PROCESSLIST
      • SHOW RELAYLOG EVENTS
      • SHOW SLAVE HOSTS
  • High availability mechanism
    • Overview
    • High availability of ODP services
    • High availability of OceanBase Database
    • High availability testing
  • OBKV
    • RPC service port
    • Throttling
    • OBKV-Redis
  • Security and protocols
  • Operation and maintenance
    • Troubleshooting logic
    • Performance analysis
    • Show Trace
    • Routing diagnostics
      • Overview
      • Obtain diagnostic information
      • Diagnostic point troubleshooting
        • Overview
        • SQL_PARSE
        • ROUTE_INFO
        • LOCATION_CACHE_LOOKUP
        • ROUTINE_ENTRY_LOOKUP_DONE
        • FETCH_TABLE_RELATED_DATA
        • TABLE_ENTRY_LOOKUP_DONE
        • EXPR_PARSE
        • CALC_ROWID
        • RESOLVE_TOKEN
        • RESOLVE_EXPR
        • CALC_PARTITION_ID
        • PARTITION_ID_CALC_DONE
        • PARTITION_ENTRY_LOOKUP_DONE
        • ROUTE_POLICY
        • CONGESTION_CONTROL
        • RETRY
        • HANDLE_RESPONSE
      • Examples
    • Memory leak diagnostics
    • Connection diagnostics
    • Prometheus monitoring
    • SQL firewall
  • Release Notes
    • Version number rules
    • Enterprise Edition
      • V4.3
        • OceanBase Database Proxy Enterprise Edition V4.3.6
        • OceanBase Database Proxy Enterprise Edition V4.3.5
        • OceanBase Database Enterprise Edition V4.3.4
        • ODP Enterprise Edition V4.3.3
        • ODP Enterprise Edition V4.3.2
        • ODP Enterprise Edition V4.3.1
        • ODP Enterprise Edition V4.3.0
      • V4.2
        • ODP Enterprise Edition V4.2.3
        • ODP Enterprise Edition V4.2.2
        • ODP Enterprise Edition V4.2.1
      • V4.1
        • ODP Enterprise Edition V4.1.0
      • V4.0
        • ODP Enterprise Edition V4.0.0
      • V3.2
        • ODP Enterprise Edition V3.2.11
        • ODP Enterprise Edition V3.2.3.5
    • Community Edition
      • V4.3
        • OceanBase Database Proxy Community Edition V4.3.6
        • OceanBase Database Proxy Community Edition V4.3.5
        • OceanBase Database Proxy Community Edition V4.3.4
        • ODP Community Edition V4.3.3
        • ODP Community Edition V4.3.2
        • ODP Community Edition V4.3.1
      • V4.2
        • ODP Community Edition V4.2.3
        • ODP Community Edition V4.2.1
        • ODP Community Edition V4.2.0
      • V4.1
        • ODP Community Edition V4.1.0
      • V4.0
        • ODP Community Edition V4.0.0

Download PDF

What is ODP? Overview Deploy ODP by using obd Deploy ODP by using OCP Deploy ODP by using the CLI Deployment modes Basic operations View and modify parameters Parameter summary automatic_match_work_thread block_thread_num cache_cleaner_clean_interval check_tenant_locality_change client_max_connections client_max_memory_size client_session_id_version client_sock_option_flag_out client_tcp_keepcnt client_tcp_keepidle client_tcp_keepintvl client_tcp_user_timeout cluster_count_high_water_mark cluster_expire_time config_server_refresh_interval congestion_fail_window congestion_failure_threshold congestion_retry_interval connection_diagnosis_option connection_pool_mode connect_observer_max_retries current_local_config_version default_buffer_water_mark default_inactivity_timeout delay_exit_time delay_update_entry_interval detect_server_timeout digest_sql_length enable_abort_conn_info enable_async_log enable_async_pull_location_cache enable_auto_restart enable_bad_route_reject enable_binlog_service enable_cached_server enable_causal_order_read enable_client_connection_lru_disconnect enable_client_ip_checkout enable_cluster_checkout enable_compression_protocol enable_congestion enable_connection_diagnosis enable_cpu_isolate enable_cpu_topology enable_crash_error_log enable_cross_shard_txn enable_extra_prometheus_metric enable_flow_control enable_full_link_trace enable_full_username enable_get_rslist_remote enable_global_ps_cache enable_index_route enable_monitor_stat enable_ob_protocol_v2 enable_obproxy_rpc_service enable_partition_table_route enable_performance_mode enable_pl_route enable_primary_zone enable_prometheus enable_proxy_scramble enable_qa_mode enable_qos enable_report_session_stats enable_reroute enable_scan_all_request enable_sequence_prefetch enable_sharding enable_single_leader_node_routing enable_standby enable_stat enable_strict_kernel_release enable_strict_stat_time enable_sync_all_stats enable_syslog_file_compress enable_syslog_wf enable_trace enable_trace_stats enable_trans_detail_stats enable_transaction_internal_routing enable_xa_route fetch_proxy_bin_random_time fetch_proxy_bin_timeout flow_consumer_reenable_threshold flow_event_queue_threshold flow_high_water_mark flow_low_water_mark grpc_client_num grpc_thread_num hot_upgrade_exit_timeout
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 Database Proxy
  3. V4.3.6
iconOceanBase Database Proxy
V 4.3.6
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.3.6
  • V 4.3.4
  • V 4.3.3
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.3
  • V 4.2.2
  • V 4.2.0 and earlier

SHOW

Last Updated:2026-04-13 03:40:45  Updated
Share
What is on this page
Description
Syntax
Parameter description
Example
View the status of ODP
View ODP connections
View the memory usage of ODP
View cluster information
View internal statistics of ODP
Query an alert log
View routing information
View information about the request

folded

Share

Description

This statement is used to display information about ODP and OceanBase Database.

Syntax

SHOW {
    PROXYINFO BINARY
   | PROXYINFO UPGRADE
   | PROXYINFO IDC
   | PROXYCLUSTER [IDC] [like 'cluster_name']
   | PROXYCONFIG [diff] [user] [like 'config_name']
   | PROXYCONGESTION [all] [cluster_name]
   | PROXYMEMORY [objpool] [num]
   | PROXYNET CONNECTION [thread_id [LIMIT xx]]
   | PROXYNET THREAD
   | PROXYROUTE [like 'cluster [tenant [db [table]]]']
   | PROXYROUTE GLOBALINDEX
   | PROXYROUTE PARTITION
   | PROXYROUTE QUERYASYNC
   | PROXYROUTE TABLEGROUP
   | PROXYROUTE TABLETLS [tablet_to_ls_num]
   | PROXYROUTE RPCCTX
   | PROXYRPC THREAD 
   | PROXYRPC REQUESTSTAT [request_type]
   | PROXYSESSION
   | PROXYSESSION ATTRIBUTE [id [like 'xxx']]
   | PROXYSESSION STAT id [like 'xx']
   | PROXYSESSION VARIABLES [all] id [like 'xx']
   | PROXYSM [RPC] [sm_id]
   | PROXYSTAT [refresh] [like 'name']
   | WARNLOG [[[log_id], thread_id], time]
};

Parameter description

Parameter
Description
PROXYINFO BINARY Displays the ODP binary information in rich text format, including the version, packaging time, and MD5 value.
PROXYINFO UPGRADE Displays the ODP running and upgrade information in rich text format.
PROXYINFO IDC Displays the ODP IDC matching information in rich text format.
PROXYCLUSTER [IDC] [like 'cluster_name'] Displays the rs_list details of the cluster. You can use the like option to perform a fuzzy match. The like option supports the % and _ wildcards. For example, you can execute the show proxycluster like "%ob%"; command. If you configure the IDC option, the idc_list details of the cluster are displayed.
PROXYCONFIG [diff] [user] [like 'config_name'] Displays the ODP configuration items. If you configure the diff option, only the configuration items that are different from the default parameters are displayed. If you configure the diff user option, only the user-level configuration items that are different from the default parameters are displayed. You can use the like option to perform a fuzzy match. The like option supports the % and _ wildcards. For example, you can execute the show proxyconfig diff user like "%cpu%"; command.
PROXYCONGESTION [all] [cluster_name] Displays the information of all clusters of ODP. The following table describes the different scenarios based on the configured parameters.
  • By default, the information of all clusters is displayed. The information of a cluster is displayed only if any of the following conditions is met: the dead_congested, alive_congested, is_zone_upgrading, or is_server_upgrading parameter is set to true.
  • If you configure the all option, the information of all clusters is displayed, including the information of the OBServer nodes in the blacklists and those not in the blacklists.
  • If you configure only the clustername option, the information of the specified cluster is displayed.
  • If you configure all options, the information of the specified cluster is displayed.

Note

When ODP is of V1.1.2 or earlier, you do not need to enclose the clustername parameter in single or double quotation marks. When ODP is of V1.1.2 or later, you must enclose the clustername parameter in single or double quotation marks.

PROXYMEMORY [objpool] [num] Displays the memory usage of ODP, including the memory allocated to each module, the memory currently in use, and the module type. This information helps analyze the performance of ODP. After you specify a number (num) in the command, the memory allocation stack is displayed. The maximum number of layers that can be printed is 10. To use this feature, you must modify the mem_leak_check_mod_name and mem_leak_check_class_name parameters.
PROXYNET CONNECTION [thread_id [LIMIT xx]] Displays the internal attribute status of all network connections on ODP. You can specify the thread_id parameter to display the connection status of a specified thread. If you do not specify the thread_id parameter, the attribute status of all connections on ODP is displayed by default. If you specify the thread id parameter, you can use the LIMIT [offset,] rows and LIMIT rows OFFSET offset options. The syntax of these options is fully compatible with that of MySQL. When you set the rows parameter to -1, all rows are displayed.

Note

For more information, see Network connections.

PROXYNET THREAD Displays the internal attribute status of each working thread of ODP. The number of working threads of ODP is controlled by the work_thread_num parameter.
PROXYROUTE [like 'cluster [tenant [db [table]]]'] Displays the internal table entry status of ODP. By default, the status of all table entries is displayed. You can use the like option to perform a fuzzy match. The like option supports the % and _ wildcards. For example, you can execute the show proxyroute like 'obcluster sy_ oceanba% ob_all_%'; command. The SQL routing address information of ODP is stored in table entries. Each table entry is identified by the cluster name, tenant name, database name, and table name. If an SQL statement does not specify a table name, the __all_dummy table is used to mark the internal table entry.
PROXYROUTE GLOBALINDEX Displays the OBKV global index information of ODP. You can modify the partition_location_expire_relative_time parameter to control the existence time of the cached information.
PROXYROUTE PARTITION Displays the partition information of ODP. You can modify the partition_location_expire_relative_time parameter to control the existence time of the cached information.
PROXYROUTE QUERYASYNC Displays the OBKV asynchronous query information of ODP. You can modify the partition_location_expire_relative_time parameter to control the existence time of the cached information.
PROXYROUTE TABLEGROUP Displays the multi-column family request information of ODP. You can modify the partition_location_expire_relative_time parameter to control the existence time of the cached information.
PROXYROUTE TABLETLS [tablet_to_ls_num] Displays the ls_id information in ODP. Currently, it only supports LSOp requests. tablet_to_ls_num specifies the number of data to be displayed. The cache information expiration time can be controlled by modifying the partition_location_expire_relative_time parameter.
PROXYROUTE RPCCTX Displays the user information who logs in to ODP through the RPC port. You can use this command to verify whether ODP supports distributed capabilities for the logged-in user. This command cannot be cleared by using a configuration parameter. We recommend that you do not clear the login information displayed by this command, otherwise, the user may be unable to log in.
PROXYRPC THREAD Displays the current request processing status of threads in ODP.
PROXYRPC REQUESTSTAT [request_type] Displays the current request processing status of different threads in ODP. By default, all request statuses are displayed. You can specify the request_type parameter to display the status of a specific type of request. Currently, the request_type parameter can be set to OB_TABLE_API_LOGIN, OB_TABLE_API_EXECUTE, OB_TABLE_API_BATCH_EXECUTE, OB_TABLE_API_EXECUTE_QUERY, OB_TABLE_API_QUERY_AND_MUTATE, OB_TABLE_API_EXECUTE_QUERY_SYNC, OB_TABLE_API_DIRECT_LOAD, or OB_TABLE_API_LS_EXECUTE. If the request_type parameter is set to other values, all request types are displayed by default.

Note

This command is used for troubleshooting. If no corresponding requests exist in ODP when the command is executed, the output result is 0.

PROXYSESSION Displays the internal status of all Client Sessions connected to the current ODP tenant. Unlike the SHOW PROCESSLIST command, the SHOW PROXYSESSION command also displays the cluster where each tenant is located.
PROXYSESSION ATTRIBUTE [id [like 'xxx']] Displays the detailed internal status of the specified Client Session, including the related Server Sessions involved in the Client Session. For more information, see Client connection.
  • If you do not specify id, the detailed status of the current session is displayed (supported starting from ODP 1.1.0). You can also perform a fuzzy query on the value of the specified attribute name in the current session (supported starting from ODP 1.1.2).
  • If you specify id, you can perform a fuzzy query on the value of the specified attribute name.
  • id can be cs_id or connection_id. The display results are the same.
    cs_id is the ID of each client marked by ODP. connection_id is the ID of each client marked by OceanBase Database. In MySQL mode, you can obtain the connection_id by executing the SELECT CONNECTION_ID(); statement. In Oracle mode, you can obtain the connection_id by executing the SHOW FULL PROCESSLIST; statement.
  • Fuzzy matching is supported for the like parameter. The % and _ symbols can be used.
PROXYSESSION STAT id [like 'xx'] Displays the internal statistics of the specified Client Session in ODP, including the number of SQL request responses and the size of SQL request responses. For more information, see Client connection.
  • id can be cs_id or connection_id. The display results are the same.
    cs_id is the ID of each client marked by ODP. connection_id is the ID of each client marked by OceanBase Database. In MySQL mode, you can obtain the connection_id by executing the SELECT CONNECTION_ID(); statement. In Oracle mode, you can obtain the connection_id by executing the SHOW FULL PROCESSLIST; statement.
  • Fuzzy matching is supported for the like parameter. The % and _ symbols can be used.
PROXYSESSION VARIABLES [all] id [like 'xx'] Displays the session variables of the specified Client Session. For more information, see Client connection.
  • If you do not specify the all parameter, the local session variables of the specified Client Session are displayed, including modified system variables and user variables.
  • If you specify the all parameter, all session variables of the specified Client Session are displayed, including all system variables and user variables.
  • id can be cs_id or connection_id. The display results are the same.
    cs_id is the ID of each client marked by ODP. connection_id is the ID of each client marked by OceanBase Database. In MySQL mode, you can obtain the connection_id by executing the SELECT CONNECTION_ID(); statement. In Oracle mode, you can obtain the connection_id by executing the SHOW FULL PROCESSLIST; statement.
  • Fuzzy matching is supported for the like parameter. The % and _ symbols can be used.
PROXYSM [sm_id] Displays the internal status of each StateMachine in ODP in rich text format. You can specify the sm_id parameter to display the internal status of a specific StateMachine.
PROXYSM RPC [sm_id] Displays the status of ObRpcRequestSM objects that have not been released in ODP. You can specify the sm_id parameter to query the status of a specified ObRpcRequestSM object. ObRpcRequestSM objects are released after they are executed.

Note

You must set the rpc_enable_requestsm_info parameter to True to query information. Otherwise, the query result is empty.

PROXYSTAT [refresh] [like 'xx'] Displays statistics in ODP.
  • If you do not specify the refresh parameter, the statistics collected in the last summary are displayed by default.
  • If you specify the refresh parameter, a local statistics summary is forcibly executed, and then the statistics are displayed.
  • The like parameter supports fuzzy matching with % and _.
  • If the value of the persist_type statistic is PERSISTENT, the statistic is persisted to the ob_all_proxy_stat table in the remote database.
  • The local statistics update time is controlled by the stat_table_sync_interval parameter. By default, the statistics are updated every 60 seconds.
WARNLOG [[[log_id], thread_id], time] Displays WARN and ERROR level alert logs that have a log ID greater than or equal to the specified log ID and a timestamp greater than or equal to the specified time. You can specify the thread_id parameter to query alert logs of a specified thread. If you do not care about the log ID or thread ID, you can set log_id or thread_id to -1. In this case, all alert logs with any log ID or thread ID are displayed.

Example

View the status of ODP

  • View the ODP version.

    show proxyinfo binary\G
    

    The output is as follows:

    *************************** 1. row ***************************
    name: binary info
    info: ObProxy-OceanBase 4.0.0-20221103165243.el7
    version:RELEASE_7U
    MD5:
    REVISION:20221103165243-7c7e5821009b2d3924d1bc7a8165edf7384f6ed3
    BUILD_TIME:Nov  3 2022 16:57:16
    
  • View the ODP running/upgrade information.

    show proxyinfo upgrade\G
    

    The output is as follows:

    *************************** 1. row ***************************
    name: hot upgrade info
    info: {is_inited:true, proxy_port:13205, proxy_ip:"10.10.10.1", 
    is_self_md5_available:false, proxy_self_md5:"", upgrade_failures:0, check_available_failures:0, is_timeout_rollback:false, timeout_rollback_timeout_at:0,  wait_cr_finish_timeout_at:0, is_self_binary:false, 
    last_new_binary_name:"", last_new_binary_md5:"", cmd:"", hu_cont:NULL, 
    mysql_proxy:{this:0x1107a750, is_inited:true, stop:false, is_raw_execute:false, timeout_ms:5000, 
    client_pool:{this:0x7fd04d55d280, is_inited:true, stop:false, mc_count:1, cluster_resource:0x7fd04d5a5f80}, 
    raw_mysql_client:{is_inited:true, info:{has_passwd_scrambled:false, user_name:"admin", database_name:"oceanbase", request_sql:""}, svr_addr_[0]="0.0.0.0", svr_addr_[1]="0.0.0.0", svr_addr_[2]="0.0.0.0"}}, 
    info:{is_inherited:false, upgrade_version:0, need_conn_accept:true, user_rejected:0, fd:23, sub_pid:-1, graceful_exit_end_time:0, graceful_exit_start_time:0, active_client_vc_count:-1, local_addr:"10.10.10.1:13205", rc_status:"", 
    hu_cmd:"", state:"HU_STATE_WAIT_HU_CMD", hu_status:"", is_parent:true, sub_status:"", last_parent_status:"", last_sub_status:"", 
    upgrade_version_buf:"", argc:1, argv[0]="./bin/obproxy", inherited_argv[0]="./bin/obproxy", inherited_argv[1]="(null)", inherited_argv[2]="(null)", inherited_argv[3]="(null)"}}
    
  • View the IDC matching information of ODP.

    show proxyinfo idc;
    

    The output is as follows:

    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    | global_idc_name | cluster_name | match_type     | regions_name | same_idc     | same_region | other_region |
    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    | idc1            | MetaDataBase | MATCHED_BY_IDC | ["HZ"]       | ["z1", "z2"] | []          | ["z3", "z4"] |
    +-----------------+--------------+----------------+--------------+--------------+-------------+--------------+
    

View ODP connections

This section provides an example of how to view ODP connections. For more information, see Client connections.

Query the information about the client connection with the cs_id value of 2 and whose attribute name contains id.

show proxysession attribute 2 like '%id%';

The output is as follows:

+------------------------+--------------------+----------------+
| attribute_name         | value              | info           |
+------------------------+--------------------+----------------+
| proxy_sessid           | 756006681247547396 | cs common      |
| cs_id                  | 2                  | cs common      |
| tid                    | 2230520            | cs common      |
| pid                    | 2230520            | cs common      |
| last_insert_id_version | 0                  | cs var version |
| server_sessid          | 2147549201         | last used ss   |
| ss_id                  | 4                  | last used ss   |
| last_insert_id_version | 0                  | last used ss   |
+------------------------+--------------------+----------------+

View the memory usage of ODP

show proxymemory;

The output is as follows:

+-------------------------------+----------+--------------+--------------+---------+------------+-----------------------------------------------------------------------+
| mod_name                      | mod_type | hold         | used         | count   | avg_used   | hold bytes, alloc times and backtraces(addr2line -Cfe obproxy 0xXXXX) |
+-------------------------------+----------+--------------+--------------+---------+------------+-----------------------------------------------------------------------+
| OB_MOD_DO_NOT_USE_ME          | user     |  7,792       |  5,586       |  58     |  96        |                                                                       |
| OB_LIGHTY_QUEUE               | user     |  662,848     |  657,568     |  5      |  131,513   |                                                                       |
| OB_BUFFER                     | user     |  424         |  392         |  1      |  392       |                                                                       |
| OB_HASH_BUCKET                | user     |  24,896      |  24,672      |  7      |  3,524     |                                                                       |
| OB_HASH_NODE                  | user     |  24,160      |  24,064      |  3      |  8,021     |                                                                       |
| OB_PAGE_ARENA                 | user     |  49,152      |  48,960      |  6      |  8,160     |                                                                       |
| OB_MODULE_PAGE_ALLOCATOR      | user     |  363,968     |  360,448     |  44     |  8,192     |                                                                       |
| VECTOR                        | user     |  40,960      |  40,800      |  5      |  8,160     |                                                                       |
| OB_HASH_BUCKET_CONF_CONTAINER | user     |  74,448      |  74,160      |  3      |  24,720    |                                                                       |
| OB_HASH_NODE_CONF_CONTAINER   | user     |  71,352      |  71,064      |  9      |  7,896     |                                                                       |
| OB_CONCURRENCY_OBJ_POOL       | user     |  36,057,568  |  35,048,480  |  197    |  177,911   |                                                                       |
| OB_PROXY_DEFAULT_SYS_VARIABLE | user     |  16,544      |  16,384      |  1      |  16,384    |                                                                       |
| OB_PROXY_SQL_PARSE            | user     |  8,272       |  8,192       |  1      |  8,192     |                                                                       |
| OB_PROXY_TABLE_ENTRY_MAP      | user     |  132,352     |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_SQL_TABLE_ENTRY_MAP  | user     |   132,352    |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_PARTITION_ENTRY_MAP  | user     |  529,408     |  524,288     |  8      |  65,536    |                                                                       |
| OB_PROXY_INDEX_ENTRY_MAP      | user     |  132,352     |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_TABLEGROUP_ENTRY_MAP | user     |  33,024      |  32,768      |  8      |  4,096     |                                                                       |
| OB_PROXY_TABLET_LS_ENTRY_MAP  | user     |  33,024      |  32,768      |  8      |  4,096     |                                                                       |
| OB_PROXY_RPC_TABLE_QUERY_MAP  | user     |  132,352     |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_RPC_REQ_CTX_MAP      | user     |  132,352     |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_ROUTINE_ENTRY_MAP    | user     |  529,408     |  524,288     |  8      |  65,536    |                                                                       |
| OB_PROXY_CONGESTION_ENTRY_MAP | user     |  132,352     |  131,072     |  8      |  16,384    |                                                                       |
| OB_PROXY_WARN_LOG_BUF         | user     |  19,960,336  |  19,922,944  |  19     |  1,048,576 |                                                                       |
| OB_PROXY_SSL_RELATED          | user     |  11,640      |  11,544      |  3      |  3,848     |                                                                       |
| OB_PROXY_MEM_LEAK_CHECK       | user     |  702,544     |  697,376     |  37     |  18,848    |                                                                       |
| OB_PROXY_CLIENT_SESSION_ID    | user     |  20,992      |  20,704      |  9      |  2,300     |                                                                       |
| OB_PROXY_DECIMAL_INT_CONST    | user     |  16,544      |  16,384      |  2      |  8,192     |                                                                       |
| OB_ASYNC_LOG_BUFFER           | user     |  64,308,648  |  62,915,840  |  41,093 |  1,531     |                                                                       |
| GLIBC                         | user     |  14,835,712  |  14,655,232  |  6      |  2,442,538 |                                                                       |
| OB_SQL_AUDIT                  | user     |  0           |  0           |  0      |  0         |                                                                       |
| OB_SQL_AUDIT_LAST             | user     |  0           |  0           |  0      |  0         |                                                                       |
| TOTAL                         | user     |  180,355,072 |  136,513,146 |  0      |  0         |                                                                       |
+-------------------------------+----------+--------------+--------------+---------+------------+-----------------------------------------------------------------------+

View cluster information

Run the following command to view the OBServer node information of the specified cluster:

show proxycongestion all "obcluster";

In the preceding example, the cluster name is obcluster. You must replace it with the actual cluster name. The output is as follows:

+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
| cluster_name    | zone_name | zone_state | server_ip          | server_state | alive_congested | last_alive_congested | dead_congested | last_dead_congested | stat_alive_failures | stat_conn_failures | conn_last_fail_time | conn_failure_events | alive_last_fail_time | alive_failure_events | ref_count |
+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+
| obcluster       | zone1     | ACTIVE     | 10.10.10.1:13201   | ACTIVE       |               0 | 0                    |              0 | 0                   |                   0 |                  0 | 0                   |                   0 | 0                    |                    0 |         2 |
+-----------------+-----------+------------+--------------------+--------------+-----------------+----------------------+----------------+---------------------+---------------------+--------------------+---------------------+---------------------+----------------------+----------------------+-----------+

View internal statistics of ODP

Run the following command to view the statistics whose names contain global in ODP:

show proxystat refresh like '%global%';

The output is as follows. global_client_connections_currently_open indicates the number of client connections to ODP. global_connections_currently_open indicates the sum of the number of client connections to ODP and the number of ODP connections to OceanBase Database.

+---------------------------------------------+-------+--------------+
| stat_name                                   | value | persist_type |
+---------------------------------------------+-------+--------------+
| get_congestion_from_global_cache_miss       |     0 | PERSISTENT   |
| get_congestion_from_global_cache_hit        |     0 | PERSISTENT   |
| kick_out_routine_entry_from_global_cache    |     0 | PERSISTENT   |
| gc_routine_entry_from_global_cache          |     0 | PERSISTENT   |
| get_routine_entry_from_global_cache_dirty   |     0 | PERSISTENT   |
| get_routine_entry_from_global_cache_hit     |     0 | PERSISTENT   |
| kick_out_partition_entry_from_global_cache  |     0 | PERSISTENT   |
| gc_partition_entry_from_global_cache        |     0 | PERSISTENT   |
| get_partition_entry_from_global_cache_dirty |     0 | PERSISTENT   |
| get_partition_entry_from_global_cache_hit   |     0 | PERSISTENT   |
| kick_out_table_entry_from_global_cache      |     0 | NULL         |
| gc_table_entry_from_global_cache            |     0 | NULL         |
| get_pl_from_global_cache_dirty_stat         |     0 | PERSISTENT   |
| get_pl_from_global_cache_hit                |     2 | PERSISTENT   |
| global_accepts_currently_open               |     4 | NULL         |
| global_connections_currently_open           |     1 | NULL         |
| global_client_connections_currently_open    |     1 | NULL         |
+---------------------------------------------+-------+--------------+

Query an alert log

  • Query alert logs whose time is not earlier than 2016-09-13 11:20:52.251.

    show warnlog -1, -1, "2016-09-13 11:20:52.251";
    

    Setting log_id and thread_id to -1 indicates that all alert logs not earlier than the specified time are queried.

  • Query alert logs whose log ID is not earlier than 1000, thread ID is 36592, and time is not earlier than 2016-09-13 11:20:52.251.

    show warnlog 1000, 36592, "2016-09-13 11:20:52.251";
    

View routing information

  • View partition information

    show proxyroute partition;
    

    The output is as follows:

    +----------+--------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+----------------------------------------------------------------------------------+
    | table_id | partition_id | state | cluster_version | schema_version   | create_time         | last_valid_time     | last_access_time    | last_update_time    | expire_time         | relative_expire_time | server addr                                                                      |
    +----------+--------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+----------------------------------------------------------------------------------+
    |   500005 |       200010 | AVAIL |               4 | 1747194026487400 | 2025-05-14 11:42:21 | 2025-05-14 11:42:21 | 2025-05-14 11:42:21 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00  | server[0]=127.0.0.1:31604,leader,FULL; server[1]=127.0.0.1:31606,follower,FULL;  |
    |   500005 |       200003 | AVAIL |               4 | 1747194026487400 | 2025-05-14 11:42:03 | 2025-05-14 11:42:03 | 2025-05-14 11:42:03 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00  | server[0]=127.0.0.1:31604,leader,FULL; server[1]=127.0.0.1:31606,follower,FULL;  |
    |   500005 |       200024 | AVAIL |               4 | 1747194026487400 | 2025-05-14 11:42:02 | 2025-05-14 11:42:02 | 2025-05-14 11:42:02 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00  | server[0]=127.0.0.1:31604,leader,FULL; server[1]=127.0.0.1:31606,follower,FULL;  |
    +----------+--------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+----------------------------------------------------------------------------------+
    
  • View global index information

    show proxyroute globalindex;
    

    The output is as follows:

    +----------+---------------+------------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+
    | table_id | data_table_id | index_table_name | state | cluster_version | schema_version   | create_time         | last_valid_time     | last_access_time    | last_update_time    | expire_time         | relative_expire_time |
    +----------+---------------+------------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+
    |   500391 |        500390 | __idx_500390_idx | AVAIL |               2 | 1699412694079328 | 2025-05-15 20:14:47 | 2025-05-15 20:14:47 | 2025-05-15 20:14:47 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00  |
    +----------+---------------+------------------+-------+-----------------+------------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+  
    
  • View asynchronous query information

    show proxyroute queryasync;
    

    The output is as follows:

    +-------------------------+-------------------------+------------------+----------+---------------+--------------------+-------------+-------------------------------+---------+
    | client_query_session_id | server_query_session_id | current_position | table_id | data_table_id | global_index_query | first_query | server_info                   | state   |
    +-------------------------+-------------------------+------------------+----------+---------------+--------------------+-------------+-------------------------------+---------+
    |                       7 |                       0 |                5 |   501187 |        501187 | N                  | Y           | server:*Not IP address [0]*:0 | AVAIL   |
    |                      11 |                       0 |               12 |   501230 |        501230 | N                  | N           | server:127.0.0.1:31605        | DELETED |
    |                      12 |                       0 |                0 |   501230 |        501230 | N                  | N           | server:127.0.0.1:31605        | DELETED |
    +-------------------------+-------------------------+------------------+----------+---------------+--------------------+-------------+-------------------------------+---------+
    
  • View the ls_id information.

    View the ls_id information in ODP and configure the output to show only two tablet->ls mappings.

    show proxyroute tabletls 2;
    

    The following information is returned. The value after -> in the map[0]=200022->1001 field of the tablet_to_ls_map column is the ls_id. The value 1001 in the sample shows that the LSOp request calculation is accurate.

    +-----------+----------+-------+-----------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------------------------------+
    | tenant_id | table_id | state | cluster_version | schema_version | create_time         | last_valid_time     | last_access_time    | last_update_time    | expire_time         | relative_expire_time | tablet_to_ls_map                           |
    +-----------+----------+-------+-----------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------------------------------+
    |      1004 |   500005 | AVAIL |               4 |              0 | 2025-05-14 11:42:21 | 2025-05-14 11:42:21 | 2025-05-14 11:42:21 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00 | 1970-01-01 08:00:00  | map[0]=200022->1001; map[1]=200023->1001;  |
    +-----------+----------+-------+-----------------+----------------+---------------------+---------------------+---------------------+---------------------+---------------------+----------------------+--------------------------------------------+
    
  • View the OBKV login information saved in ODP.

    show proxyroute rpcctx;
    

    The following information is returned. If the value of the is_support_distributation column is N, the tenant does not support the distributed capability, as in this sample.

    +-----------------------------------+-------------+-----------+---------------+----------------------------------------------+---------------------------+
    | cluster_name                      | tenant_name | user_name | database_name | full_name                                    | is_support_distributation |
    +-----------------------------------+-------------+-----------+---------------+----------------------------------------------+---------------------------+
    | ob2.chengzhilei.czl.11.158.77.130 | mysql       | root      | test          | root@mysql#ob2.chengzhilei.czl.11.158.77.130 | N                         |
    +-----------------------------------+-------------+-----------+---------------+----------------------------------------------+---------------------------+
    

View information about the request

  • View the status of ObRpcRequestSMs that have not been released in ODP.

    ObRpcRequestSM is released after the request is executed. This example simulates a scenario where a subrequest is not released and specifies the sm_id to view the status of a single ObRpcRequestSM.

    obclient> show proxysm rpc 28\G
    

    The output is as follows:

    *************************** 1. row ***************************
           sm_id: 28
        trace_id: Y1F0CC1EF9F20D-0000000000000002-0-0
    client_state: RPC_REQ_CLIENT_DONE
    server_state: RPC_REQ_SERVER_SHARDING_REQUEST_HANDLING
        sm_state: RPC_REQ_SM_REQUEST_CLEANUP
           cs_id: 134217732
         sm_info: HISTORY:
      [0]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:1197; event:4294967295; reentrancy:1;}  [1]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:1382; event:4294967295; reentrancy:2;}  [2]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:2409; event:4294967295; reentrancy:1;}  [3]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:2743; event:1101; reentrancy:1;}  [4]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:3150; event:4294967295; reentrancy:1;}  [5]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:4837; event:4294967295; reentrancy:1;}  [6]=={fileline:obproxy/proxy/rpc/ob_rpc_request_sm.cpp:4852; event:102; reentrancy:1;}
    
  • View the requests being processed by the current thread.

    show proxyrpc thread;
    

    The output is as follows. The ThreadType field indicates the thread type. The output value can be 0, 1, 2, or 3:

    • 0 indicates a regular working thread.
    • 1 and 2 indicate internal threads.
    • 3 indicates an OBKV working thread.

    +----------+------------+------------------------+---------------------------+--------------+--------------+-------------+
    | ThreadID | ThreadType | ClientHandlingReqCount | ThreadHandlingSubReqCount | ClientReqQps | SingleReqQps | ShardReqQps |
    +----------+------------+------------------------+---------------------------+--------------+--------------+-------------+
    |        2 |          0 |                     72 |                    498364 |            0 |          207 |         997 |
    |        3 |          0 |                     75 |                    575110 |            0 |          206 |        1199 |
    |        4 |          0 |                     72 |                    535484 |            0 |          208 |        1105 |
    |        5 |          0 |                     72 |                    526828 |            0 |          209 |         972 |
    |        6 |          0 |                     57 |                    594106 |            0 |          206 |        1073 |
    |        7 |          0 |                     72 |                    554829 |            0 |          209 |         839 |
    |        0 |          0 |                     62 |                    548355 |            0 |          204 |        1043 |
    |        1 |          0 |                     78 |                    521760 |            0 |          205 |         975 |
    |      259 |          3 |                      0 |                         0 |            0 |         1903 |           0 |
    |      260 |          3 |                      0 |                         0 |            0 |         1914 |           0 |
    |      261 |          3 |                      0 |                         0 |            0 |         1915 |           0 |
    |      262 |          3 |                      0 |                         0 |            0 |         1903 |           0 |
    |      263 |          3 |                      0 |                         0 |            0 |         1899 |           0 |
    |      264 |          3 |                      0 |                         0 |            0 |         1909 |           0 |
    |      265 |          3 |                      0 |                         0 |            0 |         1924 |           0 |
    |      266 |          3 |                      0 |                         0 |            0 |         1913 |           0 |
    +----------+------------+------------------------+---------------------------+--------------+--------------+-------------+
    
  • View the status of requests being processed by different threads.

    Run this command when troubleshooting. If no corresponding request exists in ODP, the output is 0 for all fields. The following example shows the status of all request types. You can also specify a request type to query, such as OB_TABLE_API_LS_EXECUTE. For example, run the show proxyrpc requeststat OB_TABLE_API_LS_EXECUTE; command to query the status of OB_TABLE_API_LS_EXECUTE requests.

    show proxyrpc requeststat;
    

    The output is as follows. The ThreadType field indicates the thread type, which can be 0, 1, 2, or 3.

    • 0 indicates a normal worker thread.
    • 1 and 2 indicate internal threads.
    • 3 indicates an OBKV worker thread.

    +----------+------------+---------------------+-------------------+---------------------+---------------------+--------------+-----------------+-------------------+----------------------+-------------------+
    | ThreadID | ThreadType | AnalyzeRequestCount | BuildClusterCount | GetGlobalindexCount | GetPartitionIDCount | GetLSIDCount | InShardingCount | SendToServerCount | AnalyzeResponseCount | SendToClientCount |
    +----------+------------+---------------------+-------------------+---------------------+---------------------+--------------+-----------------+-------------------+----------------------+-------------------+
    |        2 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |               103 |                    0 |                16 |
    |        3 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                82 |                    0 |                39 |
    |        4 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                80 |                    0 |                29 |
    |        5 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                61 |                    0 |                46 |
    |        6 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                89 |                    0 |                19 |
    |        7 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                78 |                    0 |                27 |
    |        0 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                83 |                    0 |                19 |
    |        1 |          0 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                81 |                    0 |                44 |
    |      259 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      260 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      261 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      262 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      263 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      264 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      265 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    |      266 |          3 |                   0 |                 0 |                   0 |                   0 |            0 |               0 |                 0 |                    0 |                 0 |
    +----------+------------+---------------------+-------------------+---------------------+---------------------+--------------+-----------------+-------------------+----------------------+-------------------+
    

Previous topic

KILL GLOBALSESSION
Last

Next topic

SHOW PROXYPS
Next
What is on this page
Description
Syntax
Parameter description
Example
View the status of ODP
View ODP connections
View the memory usage of ODP
View cluster information
View internal statistics of ODP
Query an alert log
View routing information
View information about the request