Fork me on GitHub
#onyx
<
2018-08-07
>
sreekanth06:08:55

Congratulations onyx team.

kenny19:08:51

I have the Java prop -Daeron.term.buffer.length=536870912 set but Onyx still sends Warning: space is running low in /dev/shm (shm). Is there some other configuration I need to set to get it to pick up the property?

lmergen19:08:37

are you running in a docker container by any chance ?

lucasbradstreet19:08:19

^ if so the shm-size option in docker (or memory containers in your orchestration equivalent) is the way to go

kenny19:08:28

Running with docker-compose. I have shm_size: 1024M in my service. Running df -h shows 1.0G available.

lmergen19:08:56

hmm could or be that the warning is triggered when it gets somewhere near the 512MB free range? have you tried increasing shm size to something larger such as 4GB?

lmergen19:08:46

you’re using the correct docker settings, and this works fine for me in comparable setups

kenny19:08:56

I'll try that. The part that throws me is this message: Warning: space is running low in /dev/shm (shm) threshold=167,772,160 usable=1,372,160. I assume threshold is the max size and it's definitely not set to 167,772,160.

lmergen19:08:07

I think the threshold probably defines when it is supposed to emit the warning, but this is just a guess.

kenny19:08:40

Can't set aeron.term.buffer.length to 4g because that's larger than Integer.MAX_VALUE. Will try something smaller.

lmergen19:08:56

It probably fills up the 512MB quickly. Are you sending large messages by any chance ?

lucasbradstreet19:08:03

Those term buffers are huge. Each connection will create three of them to create a connection

kenny19:08:27

Yes. Setting to 1gb seems to do it.

lmergen19:08:13

I think the default is 16mb

lucasbradstreet19:08:02

Which is arguably too big as it is, as we create a lot of connections to build a job DAG

lmergen19:08:13

point being, 1gb is still too large. @kenny

kenny19:08:56

512mb did not work.

lmergen20:08:44

I think 1gb is unlikely to work either. If you get these warnings, you’ll most likely want to decrease the aeron term buffer length rather than increase it