Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion community/developer-guide/debug-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ Memory debugging focuses on two aspects:

The following tools can be used for tracking and analysis.

#### Doris Debug Tools

[Doris Debug Tools](https://github.com/morningman/doris-debug-tools) provides packaged CPU flame graph and memory analysis tools that can be downloaded and used directly.

- [Releases](https://github.com/morningman/doris-debug-tools/releases)

> Note: Unofficial tool, for development and debugging purposes only.

#### Jemalloc Heap Profile

> **Note:** Doris 1.2.2 and later versions use Jemalloc as the default memory allocator.
Expand Down Expand Up @@ -494,7 +502,15 @@ This command produces readable stack information.

### CPU Debugging

When system CPU Idle is low, CPU is the main bottleneck. Analyze current CPU usage. For Doris BE, there are two methods to analyze CPU bottlenecks.
When system CPU Idle is low, CPU is the main bottleneck. Analyze current CPU usage. For Doris BE, there are serveral methods to analyze CPU bottlenecks.

#### Doris Debug Tools

[Doris Debug Tools](https://github.com/morningman/doris-debug-tools) provides packaged CPU flame graph and memory analysis tools that can be downloaded and used directly.

- [Releases](https://github.com/morningman/doris-debug-tools/releases)

> Note: Unofficial tool, for development and debugging purposes only.

#### pprof

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ jstack -l pid > 1.js

针对这些问题,可以使用以下工具进行追踪和分析。

#### Doris Debug Tools

[Doris Debug Tools](https://github.com/morningman/doris-debug-tools) 提供封装好的 CPU 火焰图和内存分析工具,可以直接下载使用。

- [Releases](https://github.com/morningman/doris-debug-tools/releases)

> 注:非官方工具,仅用于开发调试。

#### Jemalloc Heap Profile

> **说明:** Doris 1.2.2 版本开始默认使用 Jemalloc 作为内存分配器。
Expand Down Expand Up @@ -498,7 +506,15 @@ cat be.out | python asan_symbolize.py | c++filt

### CPU 调试

当系统的 CPU Idle 很低时,说明 CPU 已经成为主要瓶颈,这时需要分析当前的 CPU 使用情况。对于 Doris BE,有以下两种方式来分析 CPU 瓶颈。
当系统的 CPU Idle 很低时,说明 CPU 已经成为主要瓶颈,这时需要分析当前的 CPU 使用情况。对于 Doris BE,有以下几种方式来分析 CPU 瓶颈。

#### Doris Debug Tools

[Doris Debug Tools](https://github.com/morningman/doris-debug-tools) 提供封装好的 CPU 火焰图和内存分析工具,可以直接下载使用。

- [Releases](https://github.com/morningman/doris-debug-tools/releases)

> 注:非官方工具,仅用于开发调试。

#### pprof

Expand Down