Access a running Clojure system via remote REPL
I have a web server running in a JVM which us开发者_如何学运维es 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
You can include nREPL in your code. If you just want to look into JVM heap and other statistics you can use jconsole.
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.
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.
精彩评论