Hiram, The Apollo REST API is superior to JMX because it has a better and finer grain security model. However, it currently does not report JVM information so one may have to use JMX to monitor things like #threads or memory.
Would it be possible to return JVM information via REST (e.g. /broker/jvm)? Here is the kind of information I have in mind: Memory: Heap-Memory used : 3157 MB Heap-Memory alloc : 8143 MB Heap-Memory max : 14563 MB NonHeap-Memory max : 132 MB Classes: Classes loaded : 6455 Classes total : 8152 Threads: Threads current : 6758 Threads peak : 9065 OS: CPU Arch : amd64 CPU OS : Linux 2.6.18-238.5.1.el5 Memory total : 1643 MB Memory free : 1643 MB Swap total : 8189 MB Swap free : 8189 MB FileDesc Open : 674 FileDesc Max : 131072 Runtime: Name : 14680@localhost JVM : 16.3-b01 Java HotSpot(TM) 64-Bit Server VM Sun Microsystems Inc. Uptime : 77 d, 4 h, 5 m, 39 s Starttime : Wed Mar 23 13:36:00 2011 Cheers, Lionel
