aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

After running debuging/testing in VS2015 multiple dotnet.exe exists after stopping the debug or test is ended. #537

Closed Tasteful closed 7 years ago

Tasteful commented 8 years ago

I have one Visual Studio 2015 instance running, using https://github.com/aspnet/EntityFramework code (EntityFramework-xproj.sln) and after running test and test with debug I can find out that the dotnet.exe process not is closed down correctly and leave a lot of processes running in the background. I haven't seen this behavior before RC2 (but will not say that is introduced in RC2 either).

Every time I start a test 2 new processes is created, when test is finishing one process is shutting down and leaving one process.

Processlist for dotnet process

Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id  SI ProcessName                                              
-------  ------    -----      ----- -----   ------     --  -- -----------                                              
    733      54    27360      30724   548     1,20  13080   1 dotnet                                                   
    745      55    28840      31792   555     2,13  13728   1 dotnet                                                   
    733      55    31508      32200   555     1,25  14940   1 dotnet                                                   
    751      54    28576      31892   553     2,19  15816   1 dotnet                                                   
    732      55    28516      31584   553     1,41  15928   1 dotnet                                                   
    747      54    27792      30668   552     1,09  16080   1 dotnet                                                   
    701      54    27840      31932   550     1,22  17812   1 dotnet                                                   
    674      53    26140      31804   545     1,27  18584   1 dotnet                                                   
    684      54    27792      31904   550     2,44  18612   1 dotnet                                                   
    753      55    33804      31684   553     1,69  18732   1 dotnet                                                   
    682      54    29740      31728   546     1,77  22644   1 dotnet                                                   
    592      55    96920      33812   550   177,48  23328   1 dotnet                                                   
    733      54    30492      31868   553     1,34  24716   1 dotnet                                                   
    760      54    34012      32004   550     1,69  24732   1 dotnet                                                   
    666      48    26740      29576   532     2,14  25480   1 dotnet                                                   
    756      54    27772      31168   553     1,36  25900   1 dotnet                                                   
    687      54    29516      31952   549     1,30  26604   1 dotnet                                                   
    725      54    27716      31992   554     1,34  27144   1 dotnet                                                   
    785      54    28524      32524   550     2,02  27628   1 dotnet                                                   
    683      54    29368      31932   549     1,38  28400   1 dotnet                                                   
    732      54    32156      32332   553     1,28  31568   1 dotnet                                                   
    709      54    28136      32592   550     1,63  35752   1 dotnet                                                   
    733      54    32956      32400   550     1,83  37256   1 dotnet                                                   
    713      49    27536      29588   535     1,22  38872   1 dotnet                                                   
    727      54    32852      32108   553     1,41  41640   1 dotnet                                                   
    727      54    27380      31332   554     1,16  43308   1 dotnet                                                   
    764      54    29804      32196   553     1,38  44320   1 dotnet                                                   
    703      54    28708      31480   550     2,16  44424   1 dotnet                                                   
    605      52    31448      32380   551     0,98  44812   1 dotnet                                                   
    701      54    30108      32364   546     1,67  45160   1 dotnet                                                   
    728      54    31388      32116   553     1,25  46684   1 dotnet                                                   
    753      55    29616      32576   553     1,27  47508   1 dotnet                                                   
    751      55    32704      32960   553     1,44  48484   1 dotnet                                                   
    706      55    30416      31664   550     1,81  49848   1 dotnet                                                   
    712      49    32096      30032   538     1,66  52320   1 dotnet                                                   
    727      54    28096      32028   553     1,80  52388   1 dotnet                                                   
    794      54    28992      32520   550     2,19  53204   1 dotnet                                                   
    740      55    28692      31816   553     2,00  53472   1 dotnet                                                   
    757      54    29492      32100   548     1,55  54160   1 dotnet                                                   
    709      49    39976      29804   540     2,34  54300   1 dotnet                                                   
    731      54    29176      32176   549     1,39  54692   1 dotnet                                                   
    738      54    31588      32120   552     1,31  56088   1 dotnet                                                   
    729      54    29264      32192   553     1,33  60920   1 dotnet                                                   
    724      54    29524      32068   549     1,44  61560   1 dotnet                                                   
    686      53    31680      31988   549     1,36  61580   1 dotnet                                                   
    707      49    32368      29604   538     1,80  69048   1 dotnet                                                   
    735      54    27804      31952   553     1,42  70820   1 dotnet                                                   
    747      55    29648      32856   553     1,42  72952   1 dotnet                                                   
    757      54    29132      32000   554     1,34  73628   1 dotnet                                                   
    743      55    29580      31748   555     2,00  73840   1 dotnet                                                   
    748      55    29536      32988   554     1,41  74152   1 dotnet                                                   
    725      54    27468      32100   549     1,34  74788   1 dotnet                                                   
    717      55    27972      32660   550     1,44  75744   1 dotnet                                                   
    728      54    27288      31668   554     1,30  81244   1 dotnet                                                   
    737      55    28164      31584   553     1,19  83140   1 dotnet                                                   
    732      54    27436      30748   549     1,19  83780   1 dotnet                                                   
    746      54    30464      32040   553     1,47  85144   1 dotnet                                                   
    713      49    28748      29808   535     1,20  86456   1 dotnet                                                   
    764      54    30900      32060   553     1,36  86780   1 dotnet                                                   
    715      49    29124      29868   540     1,20  87388   1 dotnet                                                   
    698      54    32652      31908   550     2,02  90192   1 dotnet                                                   
    707      49    30816      29776   539     1,33  91240   1 dotnet                                                   
    754      55    30164      32700   553     1,38  92880   1 dotnet                                                   
    664      48    28092      29756   532     3,84  93764   1 dotnet                                                   
    730      54    31184      32008   554     1,64  94036   1 dotnet                                                   
    650      48    23548      29352   533     3,14  96436   1 dotnet                                                   
    721      54    25660      32304   554     1,33  98252   1 dotnet                                                   
    683      54    27828      31832   550     2,67  99628   1 dotnet                                                   
    705      49    27708      29692   536     1,38 100124   1 dotnet                                                   
    732      54    27628      30656   554     1,31 106472   1 dotnet                                                   
    747      55    29212      32344   555     2,17 112412   1 dotnet                                                   
    633      52    28780      32608   551     1,92 113260   1 dotnet                                                   
    713      49    31484      29628   535     1,31 114288   1 dotnet                                                   
    758      54    32688      31904   550     1,78 115832   1 dotnet                                                   
    756      54    27668      31964   553     1,44 116408   1 dotnet                                                   
    726      54    29396      31872   552     1,27 116648   1 dotnet                                                   
    758      54    31804      32004   549     1,30 116820   1 dotnet                                                   
    759      54    41692      31952   549     2,28 118824   1 dotnet                                                   
    732      54    28808      30892   550     1,30 119948   1 dotnet                                                   
    744      55    28152      36932   553     1,42 121200   1 dotnet                                                   

VS Version info (running Windows 10)

Microsoft Visual Studio Enterprise 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA094
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA094
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA094
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA094
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   5.206.60517.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.20512.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

AttachTo   1.0
Adds "Attach to IIS" and "Attach to NUnit" Tools menu commands.

Azure App Service Tools v2.9   14.0.20316.0
Azure App Service Tools v2.9

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.0.6000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

DataFactoryProject   1.0
Microsoft Data Factory Package

GhostDoc   5.1.16036.0
GhostDoc automatically generates XML documentation comments.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 2016.1.2    Build 105.0.20160522.80219
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Microsoft .NET Core Tools (Preview 1)   14.1.20512.0
Microsoft .NET Core Tools (Preview 1)

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.6000.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.6000.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.7
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.7.30818.1601

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.40211.2

Microsoft Team Foundation Server 2015 Power Tools   14.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.

Microsoft Visual Studio Process Editor   1.0
Process Editor for Microsoft Visual Studio Team Foundation Server

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Open Command Line   2.1.169
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

RoamedExtensionVSPackage Extension   1.0
RoamedExtensionVSPackage Visual Studio Extension Detailed Info

SQL Server Data Tools   14.0.60311.1
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   1.8.31.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25219.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
sayedihashimi commented 8 years ago

TFS: 225791 I've added this to our internal TFS, we will reply back here soon.

balachir commented 8 years ago

@Tasteful, can you show the command-line of the dotnet processes? That way we can try to see what they are being used for.

Tasteful commented 8 years ago

@balachir I'm not able to run the official entity framework due to some broken dependency on my computer but have my own version https://github.com/Tasteful/EntityFramework/tree/local-rc2 that got the error.

Was usinsg the following test when reproduced and run it multiple times

Test Name:  Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.GraphUpdatesWithSequenceSqlServerTest.Save_removed_optional_many_to_one_dependents_with_alternate_key(changeMechanism: 2)
Test FullName:  Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.GraphUpdatesWithSequenceSqlServerTest.Save_removed_optional_many_to_one_dependents_with_alternate_key(4e4737089a10aec26e18105ca3b0f4bb0cf2a5ef)
Test Source:    C:\git\EntityFramework\test\Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests\Utilities\TestSqlServerModelSource.cs : line 23
Test Outcome:   Passed
Test Duration:  0:00:13,823

Copy of project.json.lock project.lock.json.zip

2016-06-04_2142 2016-06-04_2142_001

Have created full dump of dotnet and conhost but dont want to put them here, if you need them you can send me an email and I will return with links for download.

niemyjski commented 8 years ago

I'm also seeing this exact behavior when running the tests for Foundatio: https://github.com/exceptionless/Foundatio

Windows 10 RTM x64 (RTM VS2015 + Update 3)

rrymar commented 8 years ago

+1, has same issue

"C:\Program Files\dotnet\dotnet.exe" test "xxx\project.json" --output "xxx\bin\Debug\netcoreapp1.0" --port 60066 --parentProcessId 16308 --no-build

sayedihashimi commented 7 years ago

Should be fixed now