Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I stop/restart agent remotely?/ Can I change agents port number at runtime?/ Can I change agents loggers logging level at runtime?

0
Posted

Can I stop/restart agent remotely?/ Can I change agents port number at runtime?/ Can I change agents loggers logging level at runtime?

0

A. Yes to all these questions. First, you need to start a server which makes MBeans remotely accessible. One approach is to start an http adaptor such as HttpAdaptor (included in MX4J) or HtmlAdaptor (included in SUN’s JMX RI), so you can use a web browser to remotely manage agents. Check out AgentMX4J.java and JMXAdaptor.java examples for details. Another approach is to start JRMP of MX4J (startJRMPAdaptor method in AgentMX4J.java) , and you can use a client such as MC4J to monitor and control agent via RMI. A screenshot of MC4J is shown below.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123