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.3.3

  • Document Overview
  • Introduction
  • Technical mechanism
  • Preparations
    • Prepare the environment
    • Prepare data
    • Download OBLOADER & OBDUMPER
  • User Guide (OBLOADER)
    • Quick start
    • Command-line options
    • Direct load
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Use cases of command-line options
    • Performance tuning
    • Error handling
    • FAQ
  • User Guide (OBDUMPER)
    • Quick start
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • FAQ
  • Security features
  • Connection settings
  • Self-service troubleshooting
  • Release Note
    • Release Note
      • 4.x
        • OBLOADER & OBDUMPER V4.3.3
        • OBLOADER & OBDUMPER V4.3.2.1
        • OBLOADER & OBDUMPER V4.3.2
        • OBLOADER & OBDUMPER V4.3.1.1
        • OBLOADER & OBDUMPER V4.3.1
        • OBLOADER & OBDUMPER V4.3.0
        • OBLOADER & OBDUMPER V4.2.8.2
        • OBLOADER & OBDUMPER V4.2.8.1
        • OBLOADER & OBDUMPER V4.2.8
        • OBLOADER & OBDUMPER V4.2.6
        • OBLOADER & OBDUMPER V4.2.7
        • OBLOADER & OBDUMPER V4.2.5
        • OBLOADER & OBDUMPER V4.2.4
        • OBLOADER & OBDUMPER V4.2.1
        • OBLOADER \& OBDUMPER V4.1.0
        • OBLOADER \& OBDUMPER V4.0.0
      • 3.x
        • OBLOADER \& OBDUMPER V3.1.0
        • OBLOADER \& OBDUMPER V3.0.0
    • Version rules

Download PDF

Document Overview Introduction Technical mechanism Prepare the environment Prepare data Download OBLOADER & OBDUMPER Quick start Command-line options Direct load Define control files Preprocessing functionsCase expressions Use cases of command-line options Performance tuning Error handling FAQ Quick start Command-line options Define control files Preprocessing functionsCase expressions Performance tuning FAQ Security features Connection settings Self-service troubleshooting Version rules
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.3.3
iconOceanBase Loader and Dumper
V 4.3.3
  • 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

Performance tuning

Last Updated:2025-10-27 09:35:21  Updated
share
What is on this page
Command-line option tuning
Virtual machine parameter tuning
Database kernel optimization

folded

share

The performance of OBLOADER can be tuned from three aspects: command-line options, virtual machine (VM) parameters, and database kernel.

Command-line option tuning

  • If a wide table is to be imported or if the column values are long, reduce the value of the --batch option. Increase the value of this option for the opposite case.

  • Indexes affect the data import performance. In addition to the primary and unique keys, regular indexes can be created only after the data is imported.

  • If the server load and network bandwidth are low, you can adjust the value of the --thread option.

    Note

    When tuning, take into account the resource utilization on the server where OBLOADER runs, on the OceanBase Database cluster nodes, and on the OceanBase Database Proxy (ODP) service nodes.

  • OBLOADER V4.3.2 and later versions support the --mem parameter for specifying the VM memory size. Supported units are K, M, G, and T. The default value is 4G.

Virtual machine parameter tuning

Set the virtual machine 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=128M -XX:MaxMetaspaceSize=128M -Xss352K"

You can also use the --mem parameter to specify the VM memory size instead of modifying the VM parameter. For example, --mem 4G.

Database kernel optimization

The performance of importing data is significantly affected by the tenant's incremental memory write speed.

  • If the incremental memory is insufficient, the database may trigger a major or minor compaction. Major compactions consume a lot of resources, so try to avoid them. You can enable memory-based minor compactions and set the minor_freeze_times parameter to a value greater than 100.

  • If the incremental memory usage reaches the tenant's throttling threshold, the import performance will decrease.

  • If the incremental memory usage reaches its maximum, data import may fail. We recommend that you set the tenant's throttling threshold to a value higher than 90. You need to adjust the minor_freeze parameter based on the tenant's memory size and write speed. The following table describes the relevant parameters for tuning the database kernel.

Parameter Default value Description
set global ob_sql_work_area_percentage=20; 5 The percentage of memory used during SQL execution.
Value range: [0, 100].
set global max_allowed_packet=1073741824; 130023424 The maximum size of a network data packet that the server can receive.
alter system set freeze_trigger_percentage=30; 70 The threshold of memory used by tenants for triggering a major freeze. major_freeze_trigger_percent = major_freeze trigger threshold / MemStore capacity. MemStore capacity is calculated based on the following formula: memstore_lmt_percent = memstore_limit/min_memory.
Value range: [1, 99].
alter system set minor_freeze_times=500; 5 The number of minor compactions that trigger a major compaction. If the value is 0, minor compactions are disabled. If the memory usage reaches a predefined limit, minor_freeze or major_freeze will be triggered. This parameter specifies the number of minor freezes between two consecutive major freezes. If the value is 0, automatic minor freezes are disabled.
Value range: [0, 65536).
alter system set minor_compact_trigger=16; - The threshold determining whether to trigger the next layer of minor compaction. When the total number of mini SSTables reaches this value, all SSTables are compacted into a new minor SSTable.
alter system set merge_thread_count=32; 0 The number of worker threads for daily major compactions. If this parameter is set to 0, the number of worker threads of the compaction process is calculated as min{10,cpu_cnt}, where cpu_cnt is the number of CPU cores of the system. This parameter takes effect immediately without the need for a restart.
Value range: [0, 256].

Notice

This parameter is deprecated in OceanBase Database V4.0.0 and later versions.

alter system set minor_merge_concurrency=48; 0 The number of concurrent threads for minor compactions.
Value range: [0, 64].

Notice

This parameter is deprecated in OceanBase Database V4.0.0 and later versions.

alter system set writing_throttling_trigger_percentage=100; 100 The server memory throttling threshold. We recommend that you disable server throttling.

Notice

This parameter is supported in OceanBase Database V2.2.30 and later versions. It requires the tools to have the capability to prevent server memory exhaustion. <main

Previous topic

Use cases of command-line options
Last

Next topic

Error handling
Next
What is on this page
Command-line option tuning
Virtual machine parameter tuning
Database kernel optimization