Monday 27 April 2015

Installing JVisualVM plugins manually

Today I had an annoying problem. We have some network restrictions at work, which mean that we cannot access a large number of sites nor download certain file types from the internet.

I had to run JVisualVM to fiddle a few MBeans in a running app. Nowadays, JVisualVM doesn't include the MBean browser, as it's included in the MBean tab plugin, which can be downloaded automatically... unless you don't have access to the internet (like all those guys working on super secret projects) or you have some other odd network restrictions.

To install the plugins manually, I had to try to download them from inside JVisualVM, as the error message shows the url from where it's trying to download it (I couldn't find anywhere a list of all the plugins and their download urls... it looks like they are distributed in the JVisualVM download area inside different releases).

After getting the files, I was able to ask someone to download them for me, and last I was able to import them in JVisualVM from Tools -> plugins (Downloaded tab). There had to "Add plugins" and once they were added, click on install.

Easy peasy... 1/2 hour gone in something that should have taken 1 minute :(.