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.

enter image description here

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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -