With the new Experimental Update site, there are now PDE plug-ins for extending the JRockit Mission Control Console. The wizards greatly reduces the time needed to start writing your own tabs, actions and constraints.
This is basically a very short tutorial on how to use them.
Install the PDE plug-ins
- First make sure you have Eclipse 3.3 or 3.4 installed.
You will need the plug-in builder edition. - Next make sure that you have installed JRockit Mission Control 3.1.0 into your Eclipse.
The update site is here: http://www.oracle.com/technology/software/products/jrockit/missioncontrol/updates/base/3.1.0/eclipse/index.html - Next install the PDE plug-ins from the experimental update site.
The experimental update site is here:
http://www.oracle.com/technology/software/products/jrockit/missioncontrol/updates/experimental/3.1.0/eclipse/index.html
Worth noting here is that if you fall for the temptation to also include the JConsole meta plug-in from the experimental update site, you need to be running your Eclipse on a JRockit 1.6 based JVM for the plug-in to work.
Creating a JRockit Mission Control Console PDE project
In this example we’ll create an additional tab in the JRockit Mission Control console. The tab will subscribe to one or more values from the JVM, depending on which wizard you choose.
- Create a new Plug-in project by selecting File->New->Project… and then selecting Plug-in Project.
If that alternative is not available to you, ensure that you have installed the Plug-in Builder version of Eclipse. - Name your Plug-In Project by entering the Project Name in the New Plug-in Project Wizard. Then click next.
(e.g. com.example.mc.testtab) - Review the details in the Plug-in Content page and then click next.
- Select either the Mission Control Complex or Simple Tab wizard.
- Review the details in the tab wizard, then click finish.
You now have a project which should compile properly. The plug-in adds a tab to the JRockit Mission Control Console. There are other wizards, for instance one that add actions to the triggers tab in the the JRockit Mission Control Console.