The Memory Leak That Survived the Fix: Entity Framework, Factories, and ContinueWith
I fixed the HTTP disposal leaks. Memory dropped 70%. Then the 499s came back. The culprit: a factory pattern that created DbContexts but never properly...
Technical notes, project documentation, and lessons learned across software, DIY, writing, and more.
I fixed the HTTP disposal leaks. Memory dropped 70%. Then the 499s came back. The culprit: a factory pattern that created DbContexts but never properly...
Returning Task<HttpResponseMessage> from Web API controllers leaks memory. We had 200+ controllers doing it. Here's the fix.
Our high-volume API threw timeouts for two years. External consultants missed it. Infrastructure upgrades didn't fix it.
I asked two AIs to help debug performance issues. One maintained context and found the root cause.