Sometimes mBeans produce errors when scraped by the JMX exporter. Being able to look at detailed logs can help you figure out exactly which mBean is having issues and why.

Create a file called with this content:


Add the following flag to your Java invocation:


If you run your application you'll now see logs on standard error.

If you already have a log handler such as logback, log4j or slf4j you should adjust their configs along the lines shown.