Get free memory in Erlang

Here is how you get the amount of free memory available in Erlang:

17> application:start(os_mon).
...
18> memsup:get_system_memory_data().
[{total_memory,2125283328},
 {free_memory,188440576},
 {system_total_memory,2125283328}]

Inga kommentarer:

Bloggarkiv