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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -