I would like to be able to analyze my Clojure program to see how the memory is used. Are there any tools to do this?
Update: I have tried the JVM tools mentioned in the answers but none of these tools allow me to visualise any of my clojure data structures, although they do give me some indication
jvisualvm allows you to do that
Perform a jvm heap dump using jmap
. You can then load the dump into Eclipse Memory Analyser which will show you where memory is being used. Alternatively, you can just use jhat
to browse the heap dump.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With