2
votes

I have a web server running in a JVM which uses Clojure. I want to remote connect to this JVM from a REPL, but I cannot find any "CLEAR" steps which work on how I can do this. Has anyone already done this?

Note: I can use either the standard REPL or jline

3
Why do you put irony quotes around "clear"? - Svante
I put quotes around "clear" because I am not a very technical person, and often I need more simplified answers than the average StackOverflow user - yazz.com

3 Answers

4
votes

You can include nREPL in your code. If you just want to look into JVM heap and other statistics you can use jconsole.

1
votes

How about simply using GNU screen http://www.gnu.org/software/screen/? It lets you connect to anything running in terminal.

EDIT: Here is a good short intro to Screen with more advanced links in the end. It is actually very simple to use and extremely useful if you work on remote machines, so I recommend looking into it.

1
votes

If you use Emacs, http://asymmetrical-view.com/2009/08/20/emacs-slime-remote-repl.html describes how you would connect your local Emacs to a remote swank-clojure.