-
Notifications
You must be signed in to change notification settings - Fork 816
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
Java off heap allocation profiling (with mprotect event) issue #814
Comments
The default stack walking algorithm cannot get a stack trace of Try |
It works, turned out to be GC related. Thanks @apangin ! |
Dear @apangin , sorry to interrupt you again... My previous assumption is GC related, am I right? If possible, could u please kindly let me know how can I correlate these native async profiler samples to specific functions? Thanks in advance! There are two parts: deoptimization & _GI_Clone |
I'm not sure I understand. Neither of these stack traces come from GC. This SO answer explains how to find cause of deoptimization. In any case, I don't think deoptimization relates to off-heap memory leak. From your profile, netty buffers are more likely suspect. |
Dear experts,
According to https://youtu.be/c755fFv1Rnk, I use
profiler.sh -d <duration> -e mprotect -f <absolute path of html file> <java pid>
to profile java off-heap object allocation, but interestingly, there are ~50% samples just showmprotect
.My JDK is JDK11, async version is 2.9, and I run java application in container, and set kernel.perf_event_paranoid=1 and kernel.kptr_restrict=0 in the host machine.
Could u please kindly let me know if there is any wrong? Thanks in advance!
The text was updated successfully, but these errors were encountered: