# TAILPIPE_MEMORY_MAX_MB

# TAILPIPE_MEMORY_MAX_MB

Set a soft memory limit for the `tailpipe` process.  Tailpipe sets `GOMEMLIMIT` for the `tailpipe` process to the specified value.  The Go runtime does not guarantee that the memory usage will not exceed the limit, but rather uses it as a target to optimize garbage collection.

## Usage 

Set the memory soft limit to 2GB:
```bash
export TAILPIPE_MEMORY_MAX_MB=2048
```