Display the basic Online reconfiguration results of the Zorka Monitoring Platform

Source: Internet
Author: User

Display the basic Online reconfiguration results of the Zorka Monitoring Platform

In the previous article (), I briefly introduced how to use the Online reconfiguration of Zorka, but I didn't explain how to see the Online changes.

Take tomcat as an example. We can see tomcat. bsh in the directory zorka \ scripts \ apache, that is, the beanshell file corresponding to tomcat. When we click listTracerIncludes, we can see the following:

When we open the tomcat. bsh file, we can see that its row 100 starts with the following content:

If (zorka. boolCfg ("tracer ")){
Tracer. exclude (
"Org. apache. naming. NamingContextBindingEnumeration ",
"Org. apache. tomcat. jdbc. pool .**",
"Org. apache. juli. logging .**"
);
}

Obviously, it corresponds to the results in the above interface. If we comment out the middle line, save it, Click reload, and then click listTracerIncludes, the previous content becomes as follows:

We can see that the org. apache. tomcat. jdbc. pool. ** line does not exist. We use this method to verify that Online reconfiguration can be implemented. A small problem. What if I comment out the last line? We can find that it does not work, but the reason is actually very simple: if you comment out the last line and add a comma to the last line in the brackets, the Beanshell syntax rules should be broken, therefore, Zorka chooses not to parse this bsh file. So much.

If we want to learn about Zorka's Online reconfiguration function, where should we start? Let's take a look at how Zorka responds to the Reload MBean method and push it up step by step.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.