You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I still do not see any heap dump file. I verified the permissions too, user is the same for the java process & directory where the heap file should be created.
The text was updated successfully, but these errors were encountered:
Thanks @guangli-dai. I will use the PR branch for later. I have now run my service in a container to generate heap files.
Also, I got two questions,
Q1: Can we manually create a heap file at any instance without service generating too many/few heap files? I would like to have a command that just generates a heap at that instance.
Q2: Currently I am generating a graph with the below command, is there a way I can just get a text report like we get in jcmd NMT report?
I have tried to experiment with heap profiling using jemalloc. I have cloned the repo, and built the library with the following steps
It did build the library and I confirmed with visiting /usr/local/lib for libjemalloc.dylib & /usr/local/bin for jeprof.
Now the issue is If I run my jar using
LD_PRELOAD=/usr/local/lib/libjemalloc.dylib \ MALLOC_CONF=prof:true,lg_prof_interval:1,lg_prof_sample:1,prof_prefix:/Users/airas/jeprof \ java -Dserver.port=8081 -XX:NativeMemoryTracking=summary -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics -XX:+CrashOnOutOfMemoryError -XX:CompressedClassSpaceSize=128m -XX:MinRAMPercentage=15.0 -XX:MaxRAMPercentage=15.0 -XX:InitialRAMPercentage=15.0 -XX:+UseG1GC -Dfile.encoding=UTF8 -Dserver.undertow.worker-threads=32 -Dserver.undertow.io-threads=4 -jar ./services/sender/target/sender-fat-exec.jar
I still do not see any heap dump file. I verified the permissions too, user is the same for the java process & directory where the heap file should be created.
The text was updated successfully, but these errors were encountered: