Package org.rioproject.impl.system.measurable.memory

Examples of org.rioproject.impl.system.measurable.memory.ProcessMemoryMonitor


    private void createSystemWatches() {
        if(sigar!=null) {
            int pidToUse = (int)(actualPID==-1?processManager.getPid():actualPID);
            memory = new Memory(config);
            ProcessMemoryMonitor memMonitor =
                (ProcessMemoryMonitor)memory.getMeasurableMonitor();
            memMonitor.setPID(pidToUse);
            if(mbsc!=null) {
                MemoryMXBean memBean =
                    getPlatformMXBeanProxy(mbsc,
                                           ManagementFactory.MEMORY_MXBEAN_NAME,
                                           MemoryMXBean.class);
                memMonitor.setMXBean(memBean);
            } else {
                memMonitor.setMXBean(null);
            }

            memory.start();

            cpu = new CPU(config, SystemWatchID.PROC_CPU, true);
View Full Code Here

TOP

Related Classes of org.rioproject.impl.system.measurable.memory.ProcessMemoryMonitor

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.