# OpenZiti router stuck at 100% CPU

**URL:** <https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152>\
**Category:** Ziti Overlay\
**Created:** [September 30, 2026, 5:52pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152 "2026-09-30T17:52:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishopper](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Krishopper](https://openziti.discourse.group/u/Krishopper)\
**Post date:** [September 30, 2026, 5:52pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/1 "2026-09-30T17:52:12Z")

</div>

I'm seeing an issue where one of my OpenZiti routers periodically gets stuck using 100% of one CPU core.

I'm running OpenZiti 2.0.6.

I caught it while it was happening and took a 30-second CPU pprof. Almost all of the CPU time was here:

```auto
github.com/openziti/ziti/v2/common/metrics.(*controllersReporter).AcceptMetrics
github.com/openziti/metrics.(*usageRegistryImpl).sendMsgs

```

The Go stack at the same time showed:

```auto
goroutine 114 [runnable]:

github.com/openziti/ziti/v2/common/metrics.(*controllersReporter).AcceptMetrics
    common/metrics/ctrl_reporter.go:36

github.com/openziti/metrics.(*usageRegistryImpl).sendMsgs
    usage_registry.go:292

```

The router logs also have messages like:

```auto
no controllers available to notify of link

```

and:

```auto
no controller available, cannot create circuit

```

I took a look at `common/metrics/ctrl_reporter.go`, and I think there may be a tight loop when there are queued metrics but no controllers available.

The code loops while `reporter.msgs` isn't empty, but if `reporter.ctrls.GetAll()` returns no controllers, nothing removes the first message or exits the outer loop.

That seems to match what I'm seeing: once the router gets into this state, one thread stays at basically 100% CPU.

I checked the 2.0.7 source as well and it looks like this part of `AcceptMetrics()` is still the same.

I have the full CPU pprof, Go stack dump, router logs, and diagnostics from while it was happening if those would be useful.

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [September 30, 2026, 5:54pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/2 "2026-09-30T17:54:47Z")

</div>

I'm sure @plorenz will be interested. Thanks for capturing that. You can send DMs here on discourse if you want else we can figure out some way to get them to us.

---

<div class="post-metadata">

**Author:** ![Krishopper](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Krishopper](https://openziti.discourse.group/u/Krishopper)\
**Post date:** [September 30, 2026, 7:36pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/3 "2026-09-30T19:36:40Z")

</div>

I DM'd @plorenz with a diag log package.

---

<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:** [October 1, 2026, 5:46pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/4 "2026-10-01T17:46:11Z")

</div>

Thank you for reporting the issue (and digging in). I'm taking a look.

Paul

---

<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:** [October 1, 2026, 11:20pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/5 "2026-10-01T23:20:06Z")

</div>

Fix plus backports are up. The 2.0 backport is here: [[Backport-2.0] Stop the router spinning on metrics while no controller is registered by plorenz · Pull Request #4507 · openziti/ziti · GitHub](https://github.com/openziti/ziti/pull/4507) and should be in the 2.0.8 release.

Thanks again for reporting!  
Paul

---

<div class="post-metadata">

**Author:** ![Krishopper](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Krishopper](https://openziti.discourse.group/u/Krishopper)\
**Post date:** [October 2, 2026, 9:46pm UTC](https://openziti.discourse.group/t/openziti-router-stuck-at-100-cpu/6152/6 "2026-10-02T21:46:18Z")

</div>

Thank you for the attention and super fast fix! I'll wait until the 2.0.8 GA release to test.
