yazz.com
yazz.com

Reputation: 58766

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. 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

Answers (2)

mpenet
mpenet

Reputation: 367

jvisualvm allows you to do that

Upvotes: 7

dogbane
dogbane

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

Related Questions