mcmonkey
[Solved] WebApplication.CreateBuilder lockup in some Linux envs
Does anybody know why a basic
Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
call would be terrifyingly slow in certain envs (3-5 minutes for this call alone) while the same code on a different machine is near-instant?
Or if not why, then at least... how to diagnose it? It doesn't emit any debug logs while building as far as I can tell (set loglevel to Trace and nothin).
Only hint I have is that the filesystem in the slow env is pretty high-latency, but it's able to do all other file ops in, well, yknow, seconds or less rather than minutes. The issue isn't replicated on other systems I have that are running the same OS (Ubuntu-ish Linux) but different hardware config.
If it was running locally I'd know how to get a profiler open and figure it out from there, but since I can only replicate on a remote server, I'm a bit stuck on how to diagnose this.33 replies