a Mission Control plug-in to control JMC agents
The JMC Agent Plugin is implemented as an Eclipse platform plug-in, thus, you'll need to the latest Eclipse for Committers and a JDK of your choice.
Alpha pre-leases are available for downloading from the release page
Since Java Mission Control (JMC) agent is not currently published, the Maven build process expects to be able to find the agent artifacts in the local Maven repository. You'll need to build these artifacts yourself and install them to your local repository.
- Clone the openjdk/jmc repository.
- Navigate to
agent
sub-directory. - Run
mvn install
.
Confirm org.openjdk.jmc.agent
now exists in your local maven repository.
The JMC Agent Plugin is implemented as an Eclipse platform plug-in, thus, you'll need to the latest Eclipse for Committers and a JDK of your choice.
- Import the JMC project into Eclipse. See this blog post for detailed instructions.
- Clone this repository.
- In Eclipse, use the File -> Import -> Existing Projects into Workspace wizard to import the
org.openjdk.jmc.feature.console.ext.agent
sub-folder. - In Eclipse, use the File -> Import -> Existing Maven Project wizard to import the
org.openjdk.jmc.console.ext.agent
sub-folder. - In Eclipse, go to Run -> Run Configurations and right click to duplicate JMC RPC entry. In the newly created configuration, enable
org.openjdk.jmc.feature.console.ext.agent
feature in Plug-ins tab. - Launch JDK Mission Control with this new configuration.
First, clone the JMC source tree:
$ git clone https://github.com/openjdk/jmc.git
Then, clone the JMC Agent Plugin source tree:
$ git clone https://github.com/rh-jmc-team/jmc-agent-plugin.git
Copy the agent plugin and feature folds from the JMC Agent Plugin source tree to JMC:
$ cp -r jmc-agent-plugin/org.openjdk.jmc* jmc/application
Apply the patch to JMC's root directory:
$ cd jmc
$ git apply ../jmc-agent-plugin/scripts/diff.patch
Get third party dependencies into a local p2 repo and make it available on localhost:
$ cd releng/third-party && mvn p2:site && mvn jetty:run
Finally, in another terminal, compile and package JMC:
$ cd jmc/core && mvn install && cd .. && mvn package
Find the built artifacts in target/products
directory.