Skip to content

Some code to trigger garbage collection in Erlang and Elixir.

License

Notifications You must be signed in to change notification settings

digimondo/elixir-garbage-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GarbageMan

Some code to trigger garbage collection in Erlang and Elixir.

Installation

The package is published in hex.pm can be installed with:

  1. Add garbage_man to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:garbage_man, "~> 0.1.0"}]
end
```
  1. Ensure garbage_man is started before your application:
```elixir
def application do
  [applications: [:garbage_man]]
end
```

Usage

ProcessCollector

According to this resource, some long running processes can occupy a large amount of binary memory.

This module contains some Macros that try to handle that scenario.

See example/my_long_running_process.exs for demonstration code.

About

Some code to trigger garbage collection in Erlang and Elixir.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages