collector.setMinFreePhysMemory(5L); collector.setMaxFreePhysMemory(6L);
collector.setMinFreePhysMemory(5L); collector.setMaxFreePhysMemory(6L);
/** * {@inheritDoc} */ @Override public void reset() { this.memoryInformationData.setCount(0); this.memoryInformationData.setTotalFreePhysMemory(0L); this.memoryInformationData.setMinFreePhysMemory(Long.MAX_VALUE); this.memoryInformationData.setMaxFreePhysMemory(0L); this.memoryInformationData.setTotalFreeSwapSpace(0L); this.memoryInformationData.setMinFreeSwapSpace(Long.MAX_VALUE); this.memoryInformationData.setMaxFreeSwapSpace(0L); this.memoryInformationData.setTotalComittedVirtualMemSize(0L); this.memoryInformationData.setMinComittedVirtualMemSize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedVirtualMemSize(0L); this.memoryInformationData.setTotalUsedHeapMemorySize(0L); this.memoryInformationData.setMinUsedHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxUsedHeapMemorySize(0L); this.memoryInformationData.setTotalComittedHeapMemorySize(0L); this.memoryInformationData.setMinComittedHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedHeapMemorySize(0L); this.memoryInformationData.setTotalUsedNonHeapMemorySize(0L); this.memoryInformationData.setMinUsedNonHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxUsedNonHeapMemorySize(0L); this.memoryInformationData.setTotalComittedNonHeapMemorySize(0L); this.memoryInformationData.setMinComittedNonHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedNonHeapMemorySize(0L); Timestamp timestamp = new Timestamp(Calendar.getInstance().getTimeInMillis()); this.memoryInformationData.setTimeStamp(timestamp); }
this.memoryInformationData.setMinFreePhysMemory(freePhysMemory); } else if (freePhysMemory > this.memoryInformationData.getMaxFreePhysMemory()) { this.memoryInformationData.setMaxFreePhysMemory(freePhysMemory);
newMemoryInformationData.setMinFreePhysMemory(this.memoryInformationData.getMinFreePhysMemory()); newMemoryInformationData.setMaxFreePhysMemory(this.memoryInformationData.getMaxFreePhysMemory());