Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Question about VBCSCompiler.dll process lifetime#11010

AnsweredbyKalleOlaviNiemitalo
am11 asked this question inQ&A
Discussion options

I was doing some investigation of issue discussed indotnet/sdk#44922 and found the following comment:

// If a process exits but its child processes survive, Tracker waits 30 seconds by default to wait for this process to exit.
// This slows down C++ builds in which mspdbsrv.exe doesn't exit when it's parent exits. Set this time to 0.
info.NestedProcessTerminationTimeout=TimeSpan.Zero;

but in reality,VBCSCompiler.dll process keeps running after executingdotnet msbuild (ordotnet build), we get:

$ rm -r obj bin# evict cache$ dotnet build$ ps -e -o pid,ppid,args| grep -i vbcs| fold -6571304     1 /Users/am11/.dotnet10/dotnetexec /Users/am11/.dotnet10/sdk/10.0.100-alpha.1.24567.3/Roslyn/bincore/VBCSCompiler.dll -pipename:_UckHksr8RUqDGzqnwgGw7cOMBqfRYBBs8oEnOvtDzY

It does go away on its own after exactly 600 seconds (10 minutes). If this is by design:

  1. where is this timeout specified?
  2. is there any user-facing configuration to change it (make it zero)?
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Perhapsdotnet build --disable-build-servers; I did not test.

Also,dotnet build-server shutdown --vbcscompiler; but seedotnet/sdk#20183.

The 10-minute timeout seems to be athttps://github.com/dotnet/roslyn/blob/9bea39d29a00719039d0d3705a15d384bdc385da/src/Compilers/Server/VBCSCompiler/ServerDispatcher.cs#L43-L46. It would be configurable in appsettingshttps://github.com/dotnet/roslyn/blob/9bea39d29a00719039d0d3705a15d384bdc385da/src/Compilers/Server/VBCSCompiler/BuildServerController.cs#L64 but the configuration is only read on .NET Frameworkhttps://github.com/dotnet/roslyn/blob/9bea39d29a00719039d0d3705a15d384bdc385da/src/Compilers/Server/VBCSCompiler/VBCSCompiler.cs#L25-L30.

You must be logged in to vote
1 reply
@am11
Comment options

Nice! I knew about build-server shutdown, but--disable-build-servers (or-p:UseSharedCompilation=false) does not spawn it (or shutdown the server after build completion). 👍

Answer selected byam11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@am11@KalleOlaviNiemitalo

[8]ページ先頭

©2009-2025 Movatter.jp