Description:
Stats is responsible for calculating the load and health of a given server.
It uses tomcat's status servlet results. A schema was generated for the XML
output and JAXB was used to generate classes.
The equations are:
memory weight = (int)(50 * (free/max))
thread weight = (int)(50 * (current/max))
The load factors are stored in the properties files. Simply change the values
in the properties to change how load is calculated. The defaults values are
memory (50) and threads (50). The sum of the factors must equal 100.
|