OceanBase logo

OceanBase

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

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

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

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 Loader and Dumper

V4.1.0Community Edition

  • Document Overview
  • Product Introduction
  • Preparations
    • Prepare the environment
    • Download OBLOADER
  • User Guide (OBLOADER)
    • Overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ
  • User Guide (OBDUMPER)
    • Overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ

Download PDF

Document Overview Product Introduction Prepare the environment Download OBLOADER OverviewCommand-line optionsDefine control files Preprocessing functions Case expressionsPerformance tuning Scenarios and examples FAQ OverviewCommand-line optionsDefine control files Preprocessing functions Case expressions Performance tuning Scenarios and examples FAQ
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
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 Loader and Dumper
  3. V4.1.0
iconOceanBase Loader and Dumper
V 4.1.0Community Edition
  • V 4.3.5
  • V 4.3.4.1
  • V 4.3.4
  • V 4.3.3.1
  • V 4.3.3
  • V 4.3.2.1
  • V 4.3.2
  • V 4.3.1
  • V 4.2.8
  • V 4.2.7
  • V 4.2.6
  • V 4.2.5 and earlier
Community Edition
  • V 4.2.5
  • V 4.2.4
  • V 4.1.0
  • V 4.0.0
  • V 3.0.0
Enterprise Edition
  • V 4.2.5
  • V 4.2.4

Performance tuning

Last Updated:2023-09-12 08:05:25  Updated
share
What is on this page
Command-line options-based performance tuning
VM parameter-based performance tuning
Database kernel-based performance tuning

folded

share

You can tune the performance of OBLOADER from three aspects: command-line options, VM parameters, and database kernel.

Command-line options-based performance tuning

  • When you import wide tables or tables with columns that contain long values, decrease the value of the --batch option. When you import narrow tables or tables containing only columns with short values, increase the value.

  • As the import performance is affected by the number of indexes on the table, we recommend that you set only the primary key and unique key and create common indexes after data is imported.

  • You can adjust the value of the --thread option when the server load and network workload are relatively low.

Note
During performance tuning, take into account the resource utilization on the server where OBLOADER run, on the ODP service nodes, and on the nodes in the OceanBase cluster, especially the network of the ODP nodes.

VM parameter-based performance tuning

Set the VM parameter in the import script to 60% of the available physical memory. Default value:-Xms4G -Xmx4G.

vim bin/obloader

JAVA_OPTS="$JAVA_OPTS -server -Xms4G -Xmx4G -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=512M -Xss352K"

Database kernel-based performance tuning

The incremental memory write speed of the tenant may affect the data import performance.

  • Insufficient incremental memory may trigger a major or minor compaction. Prevent major compaction because it greatly affects import performance. You can enable minor compaction for memory and set the number of minor compactions to more than 100.

  • If the incremental memory usage reaches the throttling threshold specified for the tenant, the import performance falls.

  • If the incremental memory usage reaches the upper limit, data import may fail. We recommend that you set the tenant throttling threshold to a value higher than 90. As the parameters of minor compaction are related to the size and write speed of the tenant memory, you need to optimize the parameters as needed. The following table describes the parameters for tuning the database kernel.

Parameter Default value Description
set global ob_sql_work_area_percentage=30; 5 The memory usage during the execution of SQL statements.
Value range: [0,100].
set global max_allowed_packet=1073741824; 130023424 The maximum size of network data packets that can be received by the server.
alter system set freeze_trigger_percentage=30; 70 The threshold of memory used by tenants for triggering a global freeze. major_freeze_trigger_percent = major_freeze trigger threshold/MemStore capacity. The MemStore capacity is calculated based on the value of memstore_lmt_percent by using the following formula: memstore_lmt_percent = memstore_limit/min_memory.
Value range: [1,99].
alter system set enable_syslog_recycle='True'; False Specifies whether to enable recycling for system logs. This parameter takes effect when max_syslog_file_count is specified.
alter system set max_syslog_file_count=100; 0 The maximum number of log files that can be retained. Each log file can occupy at most 256 MB of disk space. If this parameter is set to 0, no log files are deleted.
Value range: [0,+ ∞).
alter system set minor_freeze_times=5; alter system set minor_freeze_times=500; (The memory size of the tenant is sufficient). 5 The number of minor compactions for triggering a global major compaction. If the value is 0, minor compaction is disabled. If the memory usage reaches a predefined threshold, a minor freeze or a major freeze will be triggered. This parameter specifies the number of minor freezes triggered between two consecutive major freezes. If you set this parameter to 0, automatic triggering of minor freezes is disabled.
Value range: [0,65536).
alter system set minor_compact_trigger=5; - The threshold for triggering the next-level compaction in hierarchical minor compactions. When the total number of mini SSTables in the current level reaches this threshold, all SSTables are compacted to the next level to form a new minor SSTable.
alter system set merge_thread_count=45; 0 The number of worker threads for daily major compactions. If the value of this parameter is 0, the formula for calculating the number of worker threads for a compaction is min{10,cpu_cnt*0.3}, where cpu_cnt indicates the number of CPU cores in the system. This parameter takes effect immediately after modification and does not require a restart.
Value range: [0,256].

Notice

This parameter has been deprecated in OceanBase V4.0.0 and later versions.

alter system set minor_merge_concurrency=20; 0 The number of concurrent threads in a minor compaction.
Value range: [0,64].
alter system set writing_throttling_trigger_percentage=100; 100 The threshold of server memory usage that will trigger write throttling.

Notice

This parameter is supported in OceanBase V2.2.30 and later versions. The tool must have the memory exhaustion prevention capability.

Previous topic

Case expressions
Last

Next topic

Scenarios and examples
Next
What is on this page
Command-line options-based performance tuning
VM parameter-based performance tuning
Database kernel-based performance tuning