Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix streamloader use too much memory #19

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

sollhui
Copy link
Collaborator

@sollhui sollhui commented Jun 27, 2024

close apache/doris#36119

When using streamloader to load a file of 400G to weigh table(1500 column), the tool streamloader uses too much memory which causes oom-kill.

Why this happened is that read space is faster than Doris load space, so lots of data stay in memory and cause OOM.

The PR to reduce the queue size to solve this problem.

Test result(32 core 64G memory)

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND  
860332 root      20   0 2524988 243796   6536 S 205.3   0.4   8:29.03 doris_streamload

The tool only uses 0.4% memory

@sollhui sollhui force-pushed the fix_memory_too_large branch from 4861663 to 1d3e57c Compare June 27, 2024 07:39
@sollhui sollhui changed the title fix: fix streamloader use too much memory fix streamloader use too much memory Jun 27, 2024
Copy link

@liaoxin01 liaoxin01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liaoxin01 liaoxin01 merged commit 3a3664b into apache:master Jun 27, 2024
2 checks passed
@liaoxin01 liaoxin01 mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] doris-streamloader memory leak
2 participants