Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #2 from technomancy/json-jmx-objectname

Stringify JMX :ObjectName entries. Fixes #1.
  • Loading branch information...
commit c71e46e84b6622a59c553c8e5366172eb000c276 2 parents e600497 + a0988de
@zoka authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/ringmon/monitor.clj
10 src/ringmon/monitor.clj
@@ -121,6 +121,10 @@
+;; Can't serialize JMX entries without this
+(defn- object-name-str [x]
+ (update-in x [:ObjectName] str))
(defn get-mon-data
[sname client-ip ring-sess]
(let [os (jmx/mbean "java.lang:type=OperatingSystem")
@@ -141,9 +145,9 @@
:AjaxReqsPerSec (format "%7.2f" @ajax-reqs-ps)}
:LeinProject (repl/get-lein-project)
- {:OperatingSystem os
- :Memory mem
- :Threading th}
+ {:OperatingSystem (object-name-str os)
+ :Memory (object-name-str mem)
+ :Threading (object-name-str th)}
:nREPL repl ; nREPL must be before since it carries sid
:ReplSessions sessions
:_replBuf rb ;remote update for REPL input buffer (init conn, invites)

0 comments on commit c71e46e

Please sign in to comment.
Something went wrong with that request. Please try again.