Clojure memory leak in production
techblog.roomkey.com
Clojure memory leak in production
1–4 of 4 posts
Re: Clojure memory leak in production
#2Thank you, an excellent explanation of how to use the JVM tooling! Also demonstrates why you shouldn't use certain functions, like clojure.core/memoize, in production.
Re: Clojure memory leak in production
#3Thank you, an excellent explanation of how to use the JVM tooling! Also demonstrates why you shouldn't use certain functions, like clojure.core/memoize, in production.
The core.memoize[1] core library (not the clojure.core/memoize function) allows you to specify a core.cache eviction policy (e.g. LRU and others, which is fine for production use.
Re: Clojure memory leak in production
#4Thank you, an excellent explanation of how to use the JVM tooling! Also demonstrates why you shouldn't use certain functions, like clojure.core/memoize, in production.
The core.memoize[1] core library (not the clojure.core/memoize function) allows you to specify a core.cache eviction policy (e.g. LRU and others, which is fine for production use. [1] https://github.com/clojure/core.memoize
Exactly - core.memoize (or core.cache) is for production vs clojure.core/memoize for prototyping.