Are there any clojure tools to see how Clojure uses JVM memory?
I would like to be able to analyze my Clojure program to see how the memory is used. Ar开发者_StackOverflowe 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.
精彩评论