# Reduce aeron-udp buffer memory usage

**URL:** <https://discuss.akka.io/t/reduce-aeron-udp-buffer-memory-usage/3351>\
**Category:** Akka Libraries\
**Created:** [February 1, 2019, 2:22am UTC](https://discuss.akka.io/t/reduce-aeron-udp-buffer-memory-usage/3351 "2019-02-01T02:22:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bethunebtj](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bethunebtj](https://discuss.akka.io/u/bethunebtj)\
**Post date:** [February 1, 2019, 2:22am UTC](https://discuss.akka.io/t/reduce-aeron-udp-buffer-memory-usage/3351/1 "2019-02-01T02:22:21Z")

</div>

By default the aeron-udp buffer file size is 48 mb (seems like 16mb \*3) , and when I got about 200+ nodes , the aeron-dir increase its size to about 40GB.  
Usually we put the areon-dir at /dev/shm, and I don’t have enough memory to hold them.

I’ve searched the aeron configuration and it told me to set the `aeron.term.buffer.length` value. I tried `-Daeron.term.buffer.length=1m` but it doesn’t work.

Could someone tell me how to limit the buffer file size? Thx a lot!

---

<div class="post-metadata">

**Author:** ![patriknw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/patriknw/32/89_2.png) [@patriknw](https://discuss.akka.io/u/patriknw)\
**Post date:** [February 1, 2019, 10:53am UTC](https://discuss.akka.io/t/reduce-aeron-udp-buffer-memory-usage/3351/2 "2019-02-01T10:53:38Z")

</div>

It should be possible to set [Aeron properties](https://github.com/real-logic/aeron/wiki/Configuration-Options) with `-D` flags (System properties) when using the embedded media driver. `aeron.term.buffer.length` should be the right property for this. What is it that doesn’t work? Any error message or that it’s not using the property?

---

<div class="post-metadata">

**Author:** ![bethunebtj](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bethunebtj](https://discuss.akka.io/u/bethunebtj)\
**Post date:** [February 22, 2019, 8:14am UTC](https://discuss.akka.io/t/reduce-aeron-udp-buffer-memory-usage/3351/3 "2019-02-22T08:14:33Z")

</div>

@patriknw thanks for reply! I was on vacation recently and missed your message.

I turned on debug log level for `akka.loglevel`, and `akka.actor.debug.receive/event-stream` `akka.artery.log-received/sent-messages`, but found nothing special. It seems like the property `-Daeron.term.buffer.length=1m` is not used at all.
