Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

96
Views
conhost.exe seemingly leaking memory

I have a .NET Framework ASP.NET application running in IIS. The application launches a long-lived sub-process but is otherwise unremarkable (just one endpoint which effectively proxies requests to the sub-process).

While the system is serving requests, the memory usage for conhost.exe on the machine steadily rises (~linear growth); after about a day it will be consuming .5-1 GB. Every 29 hours, the IIS application pool automatically recycles itself; at this point the conhost usage drops back to zero but then starts steadily growing again.

What could cause conhost to use this much memory?

UPDATE:

I saw that the settings for Console.BufferWidth and Console.BufferHeight can lead to more memory usage in conhost.exe. Therefore, I added logging for these values. However, my app shows a constant small buffer width and height.

UPDATE:

Per @simon-mourier's comment we pulled the dlls attached to the conhost process. All are in System32. The list is: conhost, ntdll, kernel32, kernelbase, msvcrt, Conhostv2, combase, ucrtbase, RPCRT4, bcryptPrimitives, GDI32, gdi32full, USER32, win32u, IMM32, OLEAUT32, msvcp_win, PROPSYS, sechost, shcore, SHELL32, cfgmgr32, windows.storage, powerprof, advapi32, shlwapi, kernel.appcore, and profapi.

UPDATE:

Seems similar to (if not the same as) ASP.NET Core ILogger Memory Leak on Windows 10 (1607) / Windows Server 2016 . Unfortunately that also lacks answers.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This turned out to be a Windows OS bug. We contacted Microsoft support about the issue and received a patch (likely the same patch mentioned by @sky in stackoverflow.com/a/68577179/779506).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!