-
Notifications
You must be signed in to change notification settings - Fork 4k
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
support jemalloc profiler #2737
Conversation
感谢贡献! |
好的,我近期更新下 |
done |
bazel编译,也是动态链接libjemalloc.so库吗 |
不强制,和编译方式无关,只需profiler时能找到mallctl即可。 |
LGTM |
补充下,用静态方式链接jemalloc,进程加载其他so库比如dlopen("/xxx/libjvm.so", xx),so里函数申请的内存,可能不会被profiler采样到。 |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以集成到内置服务heap页面吗?
尝试了,放弃了。。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以集成到内置服务heap页面吗?
尝试了,放弃了。。 你帮忙改下?
那后面再看看怎么支持吧
@wwbmmm @yanglimingcn @chenBright 接口新增了jemalloc stats信息,帮助查看memory细节如 各arena,metadata等,麻烦看下还有问题吗?谢谢~ |
在MemoryService也支持一下jemalloc stats? |
done |
这个PR还有别的问题吗 @chenBright |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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: