# OH3 on Synology in Docker. too many open files

**URL:** <https://community.openhab.org/t/oh3-on-synology-in-docker-too-many-open-files/135536>\
**Category:** Installation\
**Created:** [April 28, 2022, 6:55am UTC](https://community.openhab.org/t/oh3-on-synology-in-docker-too-many-open-files/135536 "2022-04-28T06:55:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gezuppe](https://community.openhab.org/letter_avatar_proxy/v4/letter/g/58f4c7/32.png) [@gezuppe](https://community.openhab.org/u/gezuppe)\
**Post date:** [April 28, 2022, 6:55am UTC](https://community.openhab.org/t/oh3-on-synology-in-docker-too-many-open-files/135536/1 "2022-04-28T06:55:10Z")

</div>

- Platform information:
  - Hardware: Synology DS218+
  - OS: 6.2.4
  - Java Runtime Environment: ?
  - openHAB version: 3.2.0

- Issue of the topic:  
Recently my OH stopped working. It turned out the there where too many open files which stoped more or less all services on the Synology.  
Checking with

> lsof -p 17417 | wc -l

gives me a fast growing number  
most lsof outputs are like.

> java 17417 9001 \*704u REG 0,53 0 17932 /run/lock/tmpj8Um1P (deleted)

OH log files does not show anything that points to this issue…

- Please post configurations (if applicable):  
Running the official OH 3.2.0 Docker on a Synology NAS.

Any ideas?

Seb

---

<div class="post-metadata">

**Author:** ![Wolfgang\_S](https://community.openhab.org/user_avatar/community.openhab.org/wolfgang_s/32/52719_2.png) [@Wolfgang\_S](https://community.openhab.org/u/Wolfgang_S)\
**Post date:** [April 28, 2022, 6:10pm UTC](https://community.openhab.org/t/oh3-on-synology-in-docker-too-many-open-files/135536/2 "2022-04-28T18:10:42Z")

</div>

Too many items to be written to persistence ?  
How many files are you allowed to open ( ulimit -n ) ?

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [April 28, 2022, 6:41pm UTC](https://community.openhab.org/t/oh3-on-synology-in-docker-too-many-open-files/135536/3 "2022-04-28T18:41:32Z")

</div>

> [@gezuppe](#):
>
> java 17417 9001 \*704u REG 0,53 0 17932 /run/lock/tmpj8Um1P (deleted)

Looks like [NeuronRobotics/nrjavaserial#111](https://github.com/NeuronRobotics/nrjavaserial/issues/111) which is fixed in 3.3.0-SNAPSHOT with:

> <https://github.com/openhab/openhab-core/pull/2899>
>
> Uses an openHAB 5.2.1.OH1 build based on the latest changes in the nrjavaserial …master branch (\[7aa21d1\](https://github.com/NeuronRobotics/nrjavaserial/tree/7aa21d1dc8cecdc8daad3ebc40273cfb8179e9d2)).
> When there is an official release containing those changes we can upgrade to that.
> 
> Most importantly this fixes a file descriptor leak when checking lock dir permissions.
> It also adds FreeBSD aarch64 (ARM64) support.
> 
> Fixes #1842
> 
> \---
> 
> Can you add the JAR/POM in https://github.com/wborn/nrjavaserial/releases/tag/5.2.1.OH1 to the openHAB Maven repository @kaikreuzer?
