---
title: "Discussion on \"The exception in the hot loop — how a caught exception ate our CPU\" | Hashnode"
description: "Discussion on \"The exception in the hot loop — how a caught exception ate our CPU\". A production incident where a caught exception in a hot loop ate 87% of CPU — how I found it with async-profiler and fixed it with a 15-line cache."
url: "https://hashnode.com/posts/exception-in-the-hot-loop/6a8f3d6b3406a8d47664479e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The exception in the hot loop — how a caught exception ate our CPU](https://alambda.hashnode.dev/exception-in-the-hot-loop?utm_source=hashnode&utm_medium=feed)

A production incident where a caught exception in a hot loop ate 87% of CPU — how I found it with async-profiler and fixed it with a 15-line cache.

Aug 26 · 11 min read · alambda.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#jvm](https://hashnode.com/tag/jvm)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#backend](https://hashnode.com/tag/backend)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[Md Sharique Alam](https://hashnode.com/@alambda)

@alambda · Bangalore, India

  
[View profile](https://hashnode.com/@alambda)

Senior Backend Engineer • Mentor • Writes what actually breaks in production

Senior Backend Engineer at JFrog. 11+ years in Java and Go, mostly spent making distributed systems behave or figuring out why they didn't. I write about whatever's worth chasing. Mostly the plumbing, mostly things that only make sense once you've actually broken them. These days I mentor engineers, occasionally win against the JVM, and go on enough road trips that "wrong turn" and "production incident" have started to feel like the same kind of adrenaline. New to writing. Old to debugging.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
