This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-21
Channels
- # announcements (1)
- # babashka (13)
- # beginners (85)
- # calva (1)
- # chlorine-clover (16)
- # cider (30)
- # clj-kondo (2)
- # clj-on-windows (5)
- # cljdoc (3)
- # cljs-dev (12)
- # cljsrn (19)
- # clojure (88)
- # clojure-europe (39)
- # clojure-nl (7)
- # clojure-sweden (3)
- # clojure-uk (8)
- # clojurescript (35)
- # core-async (3)
- # data-science (2)
- # datomic (17)
- # defnpodcast (3)
- # deps-new (1)
- # editors (18)
- # emacs (4)
- # events (1)
- # expound (1)
- # figwheel-main (8)
- # fulcro (9)
- # graalvm (2)
- # graalvm-mobile (11)
- # helix (44)
- # jobs (7)
- # lsp (95)
- # luminus (9)
- # malli (6)
- # meander (4)
- # membrane (2)
- # missionary (13)
- # off-topic (98)
- # pathom (2)
- # polylith (4)
- # portal (3)
- # re-frame (6)
- # reagent (27)
- # reitit (3)
- # releases (3)
- # remote-jobs (6)
- # rewrite-clj (1)
- # rum (2)
- # sci (3)
- # shadow-cljs (7)
- # sql (66)
- # tools-deps (80)
- # vim (5)
- # xtdb (3)
Hello Clojurians. I run my development environment in a VirtualBox on my Mac with 8GB of RAM. Because of amazing thing like clojure_lsp, I am out of memory. I am developing using Fulcro Library, and it seems to require tons of dependencies. Are there some ideas of how I can reduce shadow-cljs memory usage? Is one JVM better than others? Is there a way to run in a mode that reduces the memory usage.
I am trying to use "vega-loader-arrow" "0.0.10" in my deps.cljs. And when I inclued it in a cljs file I get the following error in the browser: TypeError: Cannot read property 'ByteBuffer' of undefined at Object.shadow$provide.module$node_modules$apache_arrow$util$buffer (buffer.js:23) at shadow.js.jsRequire (js.js:66) at Object.shadow$provide.module$node_modules$apache_arrow$io$adapters (adapters.js:20) at shadow.js.jsRequire (js.js:66) at Object.shadow$provide.module$node_modules$apache_arrow$Arrow_dom (Arrow.dom.js:21) at shadow.js.jsRequire (js.js:66) at eval (vega-loader-arrow.js:3) at Object.shadow$provide.module$node_modules$vega_loader_arrow$build$vega_loader_arrow (vega-loader-arrow.js:2) at Object.shadow.js.jsRequire (js.js:66) at Object.shadow.js.require (js.js:113)
@timofey.sitnikov you can always limit the amount of memory shadow-cljs uses. assuming you use only shadow-cljs.edn you can set :jvm-opts ["-Xmx600m"]
to limit to 600mb. that is usually plenty unless you run like 5 watch in parallel
@hoertlehner it means that it Cannot read property 'ByteBuffer' of undefined
. why that is so I do not know, don't know what it is trying to access that on. as always can't say much more without a reproducible repo