Examples of MemoryPoolUtilization


Examples of org.rioproject.system.measurable.memory.pool.MemoryPoolUtilization

        checkValue();
        super.start();
    }   

    public void checkValue() {
        MemoryPoolUtilization mRes = monitor.getMeasuredResource();
        double utilization = calculateUtilization(mRes);
        long now = System.currentTimeMillis();
        addWatchRecord(new CalculableMemoryPool(getId(), utilization, now, mRes));
        setLastMeasuredResource(mRes);
    }
View Full Code Here

Examples of org.rioproject.system.measurable.memory.pool.MemoryPoolUtilization

    public MemoryPoolUtilization getMeasuredResource() {
        getMemoryPoolMXBean();
        if(memoryPoolBean==null)
            return null;
        double utilization = (double)memoryPoolBean.getUsage().getUsed()/(double)memoryPoolBean.getUsage().getMax();
        return new MemoryPoolUtilization(getId(),
                                         utilization,
                                         memoryPoolBean.getUsage().getCommitted(),
                                         memoryPoolBean.getUsage().getInit(),
                                         memoryPoolBean.getUsage().getMax(),
                                         memoryPoolBean.getUsage().getUsed(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.