Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FreePhysicalMemorySize (0.3 sec)

  1. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MBeanOsMemoryInfo.java

            long total = mBeanAttributeProvider.getMbeanAttribute("java.lang:type=OperatingSystem", totalMemoryAttribute, Long.class);
            long free = mBeanAttributeProvider.getMbeanAttribute("java.lang:type=OperatingSystem", "FreePhysicalMemorySize", Long.class);
            if (total == -1) {
                throw new UnsupportedOperationException("Unable to retrieve total physical memory from MBean");
            }
            if (free == -1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 21:48:34 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MBeanOsMemoryInfoTest.groovy

        private static final TestMBeanAttributeProvider.AttributeKey FREE_MEMORY_KEY = new TestMBeanAttributeProvider.AttributeKey(MBEAN_OS, "FreePhysicalMemorySize", Long.class)
    
        private enum MemoryAvailability {
            AVAILABLE,
            UNAVAILABLE,
            INVALID_VALUE,
            ;
    
            String toString() {
                switch (this) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top