question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dotnet.exe spawning multiple dotnet instances when running dotnet.exe <application.dll>

See original GitHub issue

Steps to reproduce

set UseSharedCompilation=false Follow instructions in https://github.com/aspnet/JitBench to run MusicStore Check task manager to see number of dotnet.exe processes.

Expected behavior

Once MusicStore/your application has finished, there should be no zombie dotnet processes hanging around. Setting UseSharedCompilation to false used to get us this behavior but not longer does. This is a problem for our automation when we want to clean up after ourselves.

Actual behavior

There are something like 12 dotnet.exe processes still running in the background

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json): Version: 2.2.100-preview1-009013 Commit: 7794eed633

Runtime Environment: OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\sdk\2.2.100-preview1-009013\

Host (useful for support): Version: 2.2.0-preview1-26613-01 Commit: 8e71e96724

.NET Core SDKs installed: 2.2.100-preview1-009013 [C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.0-preview1-34355 [C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.0-preview1-34355 [C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.0-preview1-26609-02 [C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.0-preview1-26613-01 [C:\michelm\optimization\output\CLRx64WINmas\IBC\cli\x64\shared\Microsoft.NETCore.App]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
peterhuenecommented, Aug 15, 2018

I think an option to disable the servers for restore/build/publish would be a good addition. I would probably name it something along the lines of --no-servers though.

1reaction
livarcocccommented, Aug 15, 2018

UseRazorBuildServer and UseSharedCompilation.

Not sure if there is a place where all of them are documented together.

cc @KathleenDollard for documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotnet.exe spawning multiple dotnet instances when ...
Check task manager to see number of dotnet.exe processes. Expected behavior. Once MusicStore/your application has finished, there should be no ...
Read more >
Debugging multiple dotnet programs with same dotnet.exe ...
The easiest way I can think of is to look at the command line info for the process. In powershell that would be...
Read more >
Is there any way to distinguish between multiple dotnet.exe ...
I have one for a Discord bot I'm running, one for an ASP.NET Core app I'm trying to debug, and another one for...
Read more >
dotnet-counters diagnostic tool - .NET CLI
Learn how to install and use the dotnet-counter CLI tool for ad-hoc health monitoring and first-level performance investigation.
Read more >
dotnet-trace diagnostic tool - .NET CLI
Learn how to install and use the dotnet-trace CLI tool to collect .NET traces of a running process without the native profiler, by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found