Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any clojure tools to see how Clojure uses JVM memory?

Tags:

clojure

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

like image 611
yazz.com Avatar asked Mar 24 '11 09:03

yazz.com


2 Answers

jvisualvm allows you to do that

like image 106
mpenet Avatar answered Oct 20 '22 11:10

mpenet


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.

like image 41
dogbane Avatar answered Oct 20 '22 13:10

dogbane