# FLOWPIPE_MEMORY_MAX_MB


# FLOWPIPE_MEMORY_MAX_MB
Set a soft memory limit for the `flowpipe` process. Flowpipe sets `GOMEMLIMIT` for the `flowpipe` 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.

Set the `FLOWPIPE_MEMORY_MAX_MB` to `0` to disable the soft memory limit.

## Usage 

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

Disable the memory soft limit:
```bash
export FLOWPIPE_MEMORY_MAX_MB=0
```