-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dotnet-monitor hangs for apps spawned in the background #399
Comments
Example callstack of hang:
This instance of dotnet-monitor is attempting to invoke the ProcessInfo command on process 39. Process 39 is the ps -aux:
This hang would be mitigated if cancellation on the DiangosticsClient was implemented: dotnet/diagnostics#2151 |
Killing the target process (process 39) makes dotnet-monitor return an HTTP status of 500 on the blocked requests. All HTTP requests are blocked by this when running dotnet-monitor in 'connect' mode because all of the requests enumerate the diagnosable processes, which invokes the ProcessInfo command on each process. |
The "dotnet run" process (process 39) is still running however the child process that it spawns to run the built application is zombied (the Z in the STAT column above means it exited but the parent process hasn't observed the exit, so the process block isn't cleaned up yet). |
If I run it with nohup (e.g. |
When creating apps in the background and using the hosting process (e.g.
dotnet run &
), dotnet-monitor will hang when making rest calls. So far, this has been reproduced on WSL2 with Ubuntu 18.04 and 20.04.The text was updated successfully, but these errors were encountered: