Monitoring a jar application without servlet container

18 views
Skip to first unread message

Blanca Hernández

unread,
Jan 21, 2015, 4:11:12 AM1/21/15
to java...@googlegroups.com
Hi all!

I am trying to integrate javaSimon in my application, but it is not a war, but a jar application. I would like to be able to send and show the results of the javaSimon measures in an interface, even if it is running in a tomcat (another JVM).
Is this possible at all? How could I build this connections?
Can I just set up the interface so it reads the javaSimon measures in my application?

Any help or ideas would be really appreciated!

Thanks!

Richard Richter

unread,
Jan 22, 2015, 3:12:48 AM1/22/15
to java...@googlegroups.com
Hi Blanca

This is not possible out of the box. Web console works on top of Simon
Manager. Depending on what you want to do you may still use JMX to get
the metrics out of any process using Java Simon (in container or
standalone), see this page:
https://code.google.com/p/javasimon/wiki/JMX

That means it is possible to read Simons from another process, but
there is currently no simple way how to run console above these data.
You can also use JMX console (like jconsole) to check Simon's MX
beans, but obviously it doesn't offer the same comfort like web
console (sorting, etc).

Virgo
> --
> You received this message because you are subscribed to the Google Groups
> "javasimon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to javasimon+...@googlegroups.com.
> To post to this group, send email to java...@googlegroups.com.
> Visit this group at http://groups.google.com/group/javasimon.
> For more options, visit https://groups.google.com/d/optout.

Gérald Quintana

unread,
Jan 22, 2015, 7:42:22 AM1/22/15
to java...@googlegroups.com

Hello,

You can embed the web console in a simple app using Jetty, there is an exemple in the source code.

As Richard explains it, you can expose Simons in JMX. You can then use Jolokia's JVM agent to expose REST services instead of RMI.

Gérald

Reply all
Reply to author
Forward
0 new messages