# Memory leak in Ziti router

**URL:** <https://openziti.discourse.group/t/memory-leak-in-ziti-router/5534>\
**Category:** Uncategorized\
**Created:** [January 31, 2026, 11:06am UTC](https://openziti.discourse.group/t/memory-leak-in-ziti-router/5534 "2026-01-31T11:06:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joost](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@joost](https://openziti.discourse.group/u/joost)\
**Post date:** [January 31, 2026, 11:06am UTC](https://openziti.discourse.group/t/memory-leak-in-ziti-router/5534/1 "2026-01-31T11:06:08Z")

</div>

See this graph of memory usage past month. I need to restart the ziti-router.service to release the memory.

 ![CleanShot 2026-01-31 at 11.57.44](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/1/1eac18fa77d930833a2e0037f40a058ab8e1f9a6.png)

This is v1.6.12 on Linux Ubuntu (LXC guest on Proxmox host). I’m going to need to schedule a cron based restart of the router service….

---

<div class="post-metadata">

**Author:** ![plorenz](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/plorenz/32/54_2.png) [@plorenz](https://openziti.discourse.group/u/plorenz)\
**Post date:** [January 31, 2026, 4:16pm UTC](https://openziti.discourse.group/t/memory-leak-in-ziti-router/5534/2 "2026-01-31T16:16:37Z")

</div>

There is one memory leak that's been fixed, if you want try the 1.8.0-pre5 release.

- [github.com/openziti/metrics:](http://github.com/openziti/metrics:) [v1.4.2 -\> v1.4.3](https://github.com/openziti/metrics/compare/v1.4.2...v1.4.3)
  - [Issue #56](https://github.com/openziti/metrics/issues/56) - underlying resources of reference counted meters are not cleaned up when reference count hits zero

If you want to verify that it's the same bug, or just dig in and see what's going on, I would grab a pprof heap (see [How To Gather OpenZiti Diagnostics · openziti/ziti Wiki · GitHub](https://github.com/openziti/ziti/wiki/How-To-Gather-OpenZiti-Diagnostics)) for instructions. If you want to dig into it yourself, and share the result, or if you want to send me the pprof, I'd be happy to look at it.

Thank you,  
Paul
