# getMemoryStat {#getmemorystat}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getMemoryStat()`

## Arguments {#arguments}

None

## Details {#details}

Return the allocated memory and the unused memory. It returns a dictionary with the following keys:

-   freeBytes: the allocated memory \(in Bytes\) for the current node.

-   allocatedBytes: the unused memory \(in Bytes\) for the current node.


## Examples {#examples}

```
getMemoryStat();
/* output:
freeBytes->6430128
allocatedBytes->35463168
*/
```

