clojure tools for getting information about the jvm runtime
Dependency-free
This has been tested on various java 11 runtimes.
(require '[com.widdindustries.tools.jvm :as jvm])
;get data about memory usage, classloading (and not yet... gc, threads)
(jvm/all-snapshots)
; thread dump as data
(jvm/thread-dump)
There are many other bits of interesting data in jvm objects from the standard library, hidden by ESLs.
PRs welcome to add more functions to get data out of those
create a git tag.
make install VERSION=your-tag
(this installs in ~/.m2 - check that things look ok)
make deploy VERSION=your-tag
- you need to have set up clojars credentials as per https://github.com/applied-science/deps-library
git push origin new-tag-name
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close