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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -