Fork me on GitHub
#cider
<
2021-01-11
>
niveauverleih10:01:44

My cpu shoots to 103% whenever I execute clojure code in the repl that produces an error (the java nrepl process, that is). It's at 3% before any error occurs. Any idea on how to troubleshoot this? What directories does nrepl need access to?

bozhidar12:01:24

@nick.romer What's your CIDER version?

bozhidar12:01:10

nREPL doesn't really need access to anything, so I'm assuming that's not a permission issue, but we need more data to figure out what's going on.

niveauverleih12:01:28

I narrowed it down to datahike.api that is a require in my project. It has a lot of dependencies.

niveauverleih12:01:22

I have one of the latest cider versions. I use spacemacs dev branch. How can I check the cider version?

niveauverleih12:01:42

cider-nrepl-0.25.6

niveauverleih12:01:08

refactor is disabled and savehist is tiny.

bozhidar12:01:33

Hmm, maybe you can attach some Java profiler to the project and see what's causing the CPU spike?

niveauverleih08:01:17

Hi Bozhidar, I was unable to find a profiler for my system (termux on Android = arm32 terminal). I uninstalled my jdk (adopt open 11) and replaced it with v14. The problem has gone away.

niveauverleih12:01:53

I've never done profiling. Can you suggest a profiler?

bozhidar13:01:13

There's one bundled with the JDK - VisualVM.