support jemalloc profiler#2737
Merged
Merged
Conversation
Contributor
|
感谢贡献! |
Contributor
Author
|
好的,我近期更新下 |
Contributor
Author
done |
Contributor
|
bazel编译,也是动态链接libjemalloc.so库吗 |
Contributor
Author
不强制,和编译方式无关,只需profiler时能找到mallctl即可。 |
Contributor
|
LGTM |
Contributor
Author
|
补充下,用静态方式链接jemalloc,进程加载其他so库比如dlopen("/xxx/libjvm.so", xx),so里函数申请的内存,可能不会被profiler采样到。 |
Contributor
|
LGTM |
chenBright
reviewed
Aug 27, 2024
Contributor
Author
尝试了,放弃了。。 |
chenBright
reviewed
Aug 29, 2024
chenBright
left a comment
Contributor
There was a problem hiding this comment.
可以集成到内置服务heap页面吗?
尝试了,放弃了。。 你帮忙改下?
那后面再看看怎么支持吧
chenBright
reviewed
Aug 29, 2024
Contributor
Author
|
@wwbmmm @yanglimingcn @chenBright 接口新增了jemalloc stats信息,帮助查看memory细节如 各arena,metadata等,麻烦看下还有问题吗?谢谢~ |
Contributor
|
在MemoryService也支持一下jemalloc stats? |
Contributor
Author
done |
chenBright
reviewed
Sep 5, 2024
Contributor
|
这个PR还有别的问题吗 @chenBright |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What problem does this PR solve?
Issue Number: resolve #1962
Problem Summary: 支持jemalloc profiler
What is changed and the side effects?
Changed: 增加jemalloc mallctl控制profile。
用法:
注:每次dump的都是从采样至今的所有数据,除非reset,接来下dump的是从reset至今的所有数据,方便做diff。
样例:



Side effects:
Performance effects(性能影响):
Breaking backward compatibility(向后兼容性):
Check List: