Fix dotMemory hanging after 'SNAPSHOT #1 READY' in Docker containers. Solutions for .NET 8 applications with memory leaks.