Reputation: 58766
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
Upvotes: 12
Views: 822
Reputation: 274522
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.
Upvotes: 5