Java heap dump analysis for lambda expressions -
my java application heap dump shows specific lambda used in class has locked amount of memory , not being released during gc.
heap shows specific anonymous lambda class parentclass$$lambda$id , in current case, id 79(image attached). id not seem have relation number of lambdas exist in class , hence cannot conclude on lambda represented. i'm interested point @ exact lambda expression helps in analyzing, fixing , testing scenarios related.
decompiling class file dj did not recreates lambda expressions readable code. let me know if ideas on this.
try defining system property
jdk.internal.lambda.dumpproxyclasses=/path/to/dir
when invoking jvm. cause runtime write dynamically generated lambda classes disk, can inspect them javap
. enable see fields (captured variables) hold, , lambda body method lambda corresponds to.
Comments
Post a Comment