Skip to content

[fix](memory) Fix Jemalloc hook failed to start BE with JDK 17#33946

Merged
yiguolei merged 1 commit intoapache:masterfrom
xinyiZzz:20240417_fix_jemalloc_Hook
Apr 22, 2024
Merged

[fix](memory) Fix Jemalloc hook failed to start BE with JDK 17#33946
yiguolei merged 1 commit intoapache:masterfrom
xinyiZzz:20240417_fix_jemalloc_Hook

Conversation

@xinyiZzz
Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #33570

Jemalloc hook not need enable by default, it is only occasionally used during memory debug, such as tracking the memory usage of a function or piece of code.
change Hook implementation maybe solve this problem: #33897

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@xinyiZzz
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Contributor

@yiguolei yiguolei left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 22, 2024
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 35.37% (8916/25210)
Line Coverage: 27.10% (73327/270593)
Region Coverage: 26.24% (37879/144369)
Branch Coverage: 23.05% (19291/83696)
Coverage Report: http://coverage.selectdb-in.cc/coverage/6454984b685ddb5b781b0f29a6c00fc4b021d5a5_6454984b685ddb5b781b0f29a6c00fc4b021d5a5/report/index.html

Copy link
Copy Markdown
Member

@xy720 xy720 left a comment

Choose a reason for hiding this comment

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

What is the different between USE_JEMALLOC and USE_JEMALLOC_HOOK?

@xinyiZzz
Copy link
Copy Markdown
Contributor Author

xinyiZzz commented Apr 22, 2024

What is the different between USE_JEMALLOC and USE_JEMALLOC_HOOK?

@xy720
USE_JEMALLOC: whether to use Jemalloc, if false will use TCMalloc
USE_JEMALLOC_HOOK: Whether to use Jemalloc hook, if true, will overwrite malloc/free/realloc/etc.

Copy link
Copy Markdown
Contributor

@zhiqiang-hhhh zhiqiang-hhhh left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Failed to start BE with JDK 17.

6 participants