Package org.jahia.utils

Examples of org.jahia.utils.RequestLoadAverage


        outputSystemInfo(strOut, true, true, true, true, true, true, true);
    }
   
    public static void outputSystemInfoConsiderLoad(PrintWriter strOut) {
        boolean highLoad = false;
        RequestLoadAverage loadAverage = RequestLoadAverage.getInstance();
        highLoad = loadAverage != null && loadAverage.getOneMinuteLoad() > 10;
        outputSystemInfo(strOut, true, true, true, true, !highLoad, !highLoad, true);
    }
View Full Code Here


        if (loadAverage) {
            strOut.println();
            strOut.println("Request load average:");
            strOut.println("---------------------");
            RequestLoadAverage info = RequestLoadAverage.getInstance();
            if (info != null) {
                strOut.println("Over one minute=" + info.getOneMinuteLoad() + " Over five minute="
                        + info.getFiveMinuteLoad() + " Over fifteen minute="
                        + info.getFifteenMinuteLoad());
            } else {
                strOut.println("not available");
            }
            strOut.println();
        }
View Full Code Here

TOP

Related Classes of org.jahia.utils.RequestLoadAverage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.