---
title: Your self-hosted model server is fine for single requests, but under concurrent load some requests hang at zero…
url: https://gurkanozkan.ai/learn/questions/applied-llm-dbg-07/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-dbg-07.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Hard
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-dbg-07.json
robots: noindex
---

# Your self-hosted model server is fine for single requests, but under concurrent load some requests hang at zero throughput while others finish. How do you investigate?

Applied LLM · Technical · Hard

## Answer

*Model answer, written in a candidate's voice*

### In short

- Lead with engine telemetry and per-request logs, not guesses
- Check KV exhaustion, preemption thrash, and long-prompt scheduler starvation
- Check adapter/batch slots below concurrency, experimental features, retry pile-ups, and leaked workers
- Reproduce under load; compare fresh vs long-running server; test warm-up
- Bisect configuration one flag at a time
- Mitigate with timeouts, health checks/auto-restart, lower concurrency, upgrade/patch

### In full

I would start by looking at the engine's live metrics and per-request logs rather than guessing: running/waiting/preempted counts, KV cache usage, generation throughput, and which requests are stuck versus finishing. That points to the likely failure modes: KV exhaustion causing preemption thrash, long prompts starving the scheduler, adapter or batch slots being fewer than the concurrency so requests wait or deadlock, experimental features such as prefix caching on an unusual architecture, client retries piling up, or leaked worker processes holding memory. I would reproduce it with a controlled load test, then compare a freshly started server against a long-running one and check whether warm-up changes the behaviour. Next I would bisect the configuration one flag at a time, keeping the load test fixed, until the hang disappears or the offending flag is isolated. In parallel I would add request timeouts, health checks with auto-restart, and lower concurrency as a safety valve, and I would upgrade or patch the server if the bisect points to a known bug or unsupported feature. I would not call it fixed until the same load test passes repeatedly on the patched/configured server, including after a long-running period.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Engine metrics: running/waiting/preempted counts, KV usage, generation throughput; per-request logs
- Hypotheses: KV exhaustion with preemption thrash; long prompts starving the scheduler; adapter or batch slots fewer than concurrency (deadlock); experimental features (e.g. prefix caching on unusual architectures); client retries piling up; leaked worker processes holding memory
- Bisect configuration one flag at a time; load-test reproduction; compare fresh vs long-running server; warm-up
- Mitigate: request timeouts, health checks with auto-restart, lower concurrency, upgrade/patch

## Common mistakes

- Only increasing client timeouts
- changing many flags at once

## Topic guides

- [Debugging ML and LLM systems](https://gurkanozkan.ai/learn/topics/debugging.md)
- [LLM serving: latency, throughput and operations](https://gurkanozkan.ai/learn/topics/serving.md)
- [Reliability engineering for ML and LLM systems](https://gurkanozkan.ai/learn/topics/systems-reliability.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
