Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MemInfoOsMemoryInfo (0.32 sec)

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

    import java.io.File;
    import java.io.IOException;
    import java.nio.charset.Charset;
    import java.util.List;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    public class MemInfoOsMemoryInfo implements OsMemoryInfo {
        // /proc/meminfo is in kB since Linux 4.0, see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/proc/task_mmu.c?id=39a8804455fb23f09157341d3ba7db6d7ae6ee76#n22
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfoTest.groovy

    import spock.lang.Specification
    
    class MemInfoOsMemoryInfoTest extends Specification {
        def "parses memory from /proc/meminfo on Linux 3.x"() {
            given:
            def snapshot = new MemInfoOsMemoryInfo().getOsSnapshotFromMemInfo(meminfoLinux3())
    
            expect:
            snapshot.physicalMemory.free == 32_343_658_496L
            snapshot.physicalMemory.total == 50_650_296_320L
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/DefaultOsMemoryInfo.java

            }
        }
    
        private OsMemoryInfo getLinuxDelegate() {
            OsMemoryInfo cGroupDelegate = new CGroupMemoryInfo();
            OsMemoryInfo memInfoDelegate = new MemInfoOsMemoryInfo();
    
            OsMemoryStatus cGroupSnapshot;
            OsMemoryStatus memInfoSnapshot;
    
            try {
                cGroupSnapshot = cGroupDelegate.getOsSnapshot();
            } catch (UnsupportedOperationException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 21:48:34 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MBeanOsMemoryInfo.java

     * On Linux or MacOs, the free memory metric doesn't include reclaimable file system caches and will thus always report that the system is almost out of memory.
     * Use {@link MemInfoOsMemoryInfo} and {@link NativeOsMemoryInfo} instead.
     * On Windows, this doesn't include the secondary commit limit, which is the maximum amount of virtual memory that can be allocated.
     * Use {@link WindowsOsMemoryInfo} instead.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 21:48:34 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.process.internal.health.memory.MemInfoOsMemoryInfo$Meminfo> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (MemInfoOsMemoryInfo.java:0)
    Class <org.gradle.process.internal.health.memory.MemInfoOsMemoryInfo> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (MemInfoOsMemoryInfo.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top