Skip to content

object.swap() returns not free memory, but occupied memory #42

@rmd13

Description

@rmd13

Hi, I got the following results :
object = com.jezhumble.javasysmon.JavaSysMon;
physicalStr = char(object.physical()); % total: 8096Mb free: 2032Mb
swapStr = char(object.swap()); %total: 16343Mb free: 12052Mb

The swap free space was shown 12052Mb, but infact the swap used was 12052Mb. So there shoud be somewhere wrong.

My computer has 8GB RAM, and 2032 was free.
Swap was assigned another ~8Gb, and total memory used = physical 6Gb + swap 6Gb = 12 Gb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions