Enabling plugins for the WebConsole

34 views
Skip to first unread message

luis soares

unread,
Nov 22, 2012, 11:06:06 AM11/22/12
to java...@googlegroups.com
Hi guys,

Wanted to start by saying thank for JavaSimon, I've been enjoying it a lot and it was super easy to integrate in my application. The only part so far which I could not get working at all has been the plugins for the web console.

So, I have a couple of classes with stopwatches and I added the Quantiles plugin as instructed in the WebConsolePlugins wiki page (http://code.google.com/p/javasimon/wiki/WebConsolePlugins): 
- Added the init params to the JavaSimon servlet in web.xml;
- Registered the callback at construction time for one of my classes.

Now, when I go to the console, there's nothing new there. There's also no error though...

Is there anything else that needs to be done to use web plugins?


Thanks,
L.

Gérald

unread,
Nov 23, 2012, 6:11:32 AM11/23/12
to java...@googlegroups.com
Hi Luis,

Which variant of QuantilesCallback are you using? In 3.2 there is only Auto, in 3.3 there are Auto, Fixed and Properties variants.
If you're using the AutoQuantilesCallback there is a warmup period used to compute the best buckets size.

Look here

Then for the WebConsole plugin, in the detail view, do you have a "Quantiles" section?
  • If the section is present but empty, it's because you don't have data yet (QuantilesCallback is not present or warming up)
  • If the section is not present, then your plugin is not properly registered.
To avoid warm up, you can use Fixed and Properties variants but it's not very easy to manually configure properly buckets, read:
http://javasimon.googlecode.com/svn/javadoc/api-3.3/org/javasimon/callback/quantiles/Buckets.html
to understand Buckets configuration

I'll document this a bit more.

Hope it help,
Gérald

luis soares

unread,
Nov 23, 2012, 9:15:24 AM11/23/12
to java...@googlegroups.com
Hi Gérald,

Thank for the info.

I found out what the problem was: when I first searched http://mvnrepository.org/ for org.javasimon artifacts, the latest version there was 3.2.1 (actually it still is). Then, on the code.google.com I saw that your latest version was 3.3.0 and I updated it on my POM *but* only for the core artifact.

So, my web.xml line including the plugin was not doing anything at all. :-$ Weird that it also didn't complain that it couldn't find that class though...

Anyways, I updated all the artifacts I was using to 3.3.0 and I can now see the Quatiles screen after clicking on any of Simons.

One more thing, should we not rely on http://mvnrepository.org/ for the latest versions available through Maven Central? Should we only look at http://code.google.com/p/javasimon ?


Thanks once again,
L.

Richard Richter

unread,
Nov 23, 2012, 9:26:33 AM11/23/12
to java...@googlegroups.com
Hi Luis

It seems you can't rely on mvnrepository.org

http://search.maven.org/#search|ga|1|javasimon

This shows 3.3.0 as the latest version - and of course you can use it
in your POMs without downloading anything. I don't know what
mvnrepository is, who is responsible for it, but it's definitely good
to know (for me) that I can't rely on it that much. :-)

Virgo
> --
> You received this message because you are subscribed to the Google Groups
> "javasimon" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/javasimon/-/Sb4qD-Z9k0wJ.
>
> To post to this group, send email to java...@googlegroups.com.
> To unsubscribe from this group, send email to
> javasimon+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javasimon?hl=en.
Reply all
Reply to author
Forward
0 new messages