# balenaOS 2.46.1+rev1 crashed with pthread\_create failed: Resource temporarily unavailable

**URL:** <https://forums.balena.io/t/balenaos-2-46-1-rev1-crashed-with-pthread-create-failed-resource-temporarily-unavailable/203121>\
**Category:** Product support\
**Tags:** raspberrypi3\
**Created:** [October 26, 2020, 9:18am UTC](https://forums.balena.io/t/balenaos-2-46-1-rev1-crashed-with-pthread-create-failed-resource-temporarily-unavailable/203121 "2020-10-26T09:18:38Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [November 2, 2020, 1:20pm UTC](https://forums.balena.io/t/balenaos-2-46-1-rev1-crashed-with-pthread-create-failed-resource-temporarily-unavailable/203121/34 "2020-11-02T13:20:32Z")

</div>

Hi, thanks for the stack trace. This looks to be the same problem we have been debugging before. In summary, there are two things that can cause it:

- Reaching the maximum number of threads. For a balena application container this is actually around 4915.
- Insufficient memory (less likely)  
As it seems you are not able to easily reproduce this I would suggest you setup a test system where the problem can be reproduced and you remove the system wide thread limit by configuring `/etc/systemd/system.conf` with:

```auto
DefaultTasksMax=infinity

```

---

_[View the full topic](https://forums.balena.io/t/balenaos-2-46-1-rev1-crashed-with-pthread-create-failed-resource-temporarily-unavailable/203121)._
