-
Enhancement
-
Resolution: Fixed
-
P2
-
9
-
b19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8063859 | 8u45 | Staffan Larsen | P2 | Resolved | Fixed | b01 |
JDK-8049246 | 8u40 | Staffan Larsen | P2 | Closed | Fixed | b06 |
JDK-8070127 | emb-8u47 | Staffan Larsen | P2 | Resolved | Fixed | team |
To be able to remove management-api.jar (see JDK-8043939) we should introduce an API to accomplish the same thing.
The proposed API is:
/**
* Starts the JMX management agent in the target virtual machine.
*
* <p> The configuration properties are the same as those specified on
* the command line when starting the JMX management agent. In the same
* way as on the command line, you need to specify at least the
* {@code com.sun.management.jmxremote.port} property.
*
* <p> See the online documentation for "Monitoring and Management Using
* JMX Technology" for further details.
*
* <p> This method replaces the previous method of loading the
* {@code management-api.jar} agent to start the management agent.
*
* @param agentProperties
* A Properties object containing the configuration properties
* for the agent.
*
* @throws IOException
* If an I/O error occurs
*
* @since 1.9
*/
public abstract void startManagementAgent(Properties agentProperties) throws IOException;
/**
* Starts the local JMX management agent in the target virtual machine.
*
* <p> See the online documentation for "Monitoring and Management Using
* JMX Technology" for further details.
*
* <p> This method replaces the previous method of loading the
* {@code management-api.jar} agent to start the management agent.
*
* @throws IOException
* If an I/O error occurs
*
* @since 1.9
*/
public abstract void startLocalManagementAgent() throws IOException;
The proposed API is:
/**
* Starts the JMX management agent in the target virtual machine.
*
* <p> The configuration properties are the same as those specified on
* the command line when starting the JMX management agent. In the same
* way as on the command line, you need to specify at least the
* {@code com.sun.management.jmxremote.port} property.
*
* <p> See the online documentation for "Monitoring and Management Using
* JMX Technology" for further details.
*
* <p> This method replaces the previous method of loading the
* {@code management-api.jar} agent to start the management agent.
*
* @param agentProperties
* A Properties object containing the configuration properties
* for the agent.
*
* @throws IOException
* If an I/O error occurs
*
* @since 1.9
*/
public abstract void startManagementAgent(Properties agentProperties) throws IOException;
/**
* Starts the local JMX management agent in the target virtual machine.
*
* <p> See the online documentation for "Monitoring and Management Using
* JMX Technology" for further details.
*
* <p> This method replaces the previous method of loading the
* {@code management-api.jar} agent to start the management agent.
*
* @throws IOException
* If an I/O error occurs
*
* @since 1.9
*/
public abstract void startLocalManagementAgent() throws IOException;
- backported by
-
JDK-8063859 Add API to start JMX agent from attach framework
- Resolved
-
JDK-8070127 Add API to start JMX agent from attach framework
- Resolved
-
JDK-8049246 Add API to start JMX agent from attach framework
- Closed
- relates to
-
JDK-8043939 Remove management-agent.jar
- Resolved