I run my clojure app on the server directly from a git repo with the clojure CLI. I'm struggling with a problem where it takes ~5-25 mins to startup in a virtual server and ~1 min on my laptop. During this time there's almost no CPU usage and little of the 4GB of RAM is used. I'm wondering if this is some kind of lock condition. It seems like it's probably related to a dep since I don't remember it doing this in the past. What are some ways to diagnose what's wrong?
$ time clojure -A:server -e "(require 'riverdb.server)"
WARNING: requiring-resolve already refers to: #'clojure.core/requiring-resolve in namespace: datomic.common, being replaced by: #'datomic.common/requiring-resolve
real 24m49.555s
user 1m58.976s
sys 0m3.672s
I tried the solution at https://clojure.org/guides/dev_startup_time, which I thought helped, but if I run it multiple times the delay varies widely:
$ time clojure -A:dev:server -e "(require 'riverdb.server)"
real 5m19.167s
user 0m29.084s
sys 0m1.724s
$ time clojure -A:dev:server -e "(require 'riverdb.server)"
real 19m53.558s
user 0m31.972s
sys 0m1.988s