# Performance issue

**URL:** <https://forum.heroiclabs.com/t/performance-issue/4705>\
**Category:** Local Setup\
**Created:** [December 8, 2023, 11:10am UTC](https://forum.heroiclabs.com/t/performance-issue/4705 "2023-12-08T11:10:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![navid](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@navid](https://forum.heroiclabs.com/u/navid)\
**Post date:** [December 8, 2023, 11:10am UTC](https://forum.heroiclabs.com/t/performance-issue/4705/1 "2023-12-08T11:10:56Z")

</div>

Hello , we have a performance problem with nakama and cockroachdb.  
We have 10 thousand concurrent users , after a few hours there are more than 30 thousand ports in wait\_time state.  
we get this message in nakama:  
{“level”:“error”,“ts”:“2023-12-08T14:42:18.971+0330”,“caller”:“server/core\_friend.go:135”,“msg”:“Error retrieving friends.”,“error”:“timeout: context canceled”}

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [December 8, 2023, 1:49pm UTC](https://forum.heroiclabs.com/t/performance-issue/4705/2 "2023-12-08T13:49:32Z")

</div>

We can’t advise on custom deployments because we don’t have access to the infrastructure and there are too many different variants. If you need an easy auto-scalable solution, use Heroic Cloud which will also fund the development of the Open-Source technology.
