다음을 통해 공유


Listing of Managed Processes

I just discovered a cool way of listing all processes that run managed code. 

using System.Diagnostics;

using System;

class Program {

    static void Test() {

        PerformanceCounterCategory clr = new PerformanceCounterCategory(".NET CLR Memory");

        foreach(string process in clr.GetInstanceNames()) {

            if(process != "_Global_") {

                Console.WriteLine(process);

            }

        }

    }

}

Does anybody know an easier way to do it?

 

On my machine it prints (but it’s a pretty clean machine):

devenv

OUTLOOK

ConsoleTest.vshost

Anybody wants to share their list?

Comments

  • Anonymous
    November 18, 2004
    devenv
    ConsoleApplicat

    Hhow did you get it to display longer process names?
  • Anonymous
    November 18, 2004
    Cool stuff Here is what is running on my machine..

    ETClient - Internal Telephony app
    TCServer - ?
    FontCacheService - From an early Avalon build I have
    SharpReader you know
    ConsoleApplication1.vshost - this app ;-)
    VCSExpress - VS..
    KeyboardSurrogate - Tablet??
    OUTLOOK - From LookOut
    TabTip - From Tablet??
  • Anonymous
    November 18, 2004
    devenv<br>OUTLOOK.EXE<br>ScrabbleSolver (a little console app I wrote that, given a set of letters, lists all of the legal scrabble word permutations)<br>Reflector<br>RSSBandit
  • Anonymous
    November 18, 2004
    Explorer.EXE#1
    aspnet_wp : Obvious
    Explorer.EXE
    ConsoleApplica : The lister
    OUTLOOK.EXE : News Gator Again
    ReportingServi : Yukon beta
    SQLAGENT90.EXE : Yukon beta
    devenv

    But Explorer? Really? I wonder what that is. Unless it's the newsgator toolbar I have no idea what's going on there.


  • Anonymous
    November 18, 2004
    Home machine:

    vsmsvr
    devenv
    ConsoleApplicat
    aspnet_wp
    Mp3Collector

    Does anyone know what the vsmsvr is?
  • Anonymous
    November 18, 2004
    Reflector (trying to debug 1.1/Whidbey incompatibility)
    ruby (RubyDotNet bridge)
    iexplore (Onfolio add-in)
    VCSExpress
    dexplore (help?)
    firefox (Onfolio add-in)
    devenv
  • Anonymous
    November 18, 2004
    Merge (Some araxis merge plugin)
    Reflector (Lutz's)
    OUTLOOK.EXE (an email reader)
    devenv (an ide to develop apps that print out process lists)
    acad (AutoCAD, a CAD package)
  • Anonymous
    November 18, 2004
    Thanks for the tip.

    My list:

    Reflector
    TimeZone
    OUTLOOK
    nunit-gui
    explorer
    SharpReader
    ConsoleApplication1.vshost
    VCSExpress
    FxCop

    I'm not sure why explorer is there though.
  • Anonymous
    November 18, 2004
    Very boring list from me:
    TimeZone -- From microsoft.com/download. Very useful when living far away from home :)
    dotnetprocs.ex -- this program..
  • Anonymous
    November 18, 2004
    cILli.vshost
    tl
    SharpReader
    Reflector
    VCSExpress
    VCSExpress#1
    OUTLOOK
    Wrox20.vshost
  • Anonymous
    November 18, 2004
    devenv
    TimeZone
    PaintDotNet.ex
    aspnet_wp
    ConsoleApplica
    Imspire GSuite
  • Anonymous
    November 18, 2004
    The comment has been removed
  • Anonymous
    November 18, 2004
    "tasklist /m mscoree.dll" works as well.
  • Anonymous
    November 18, 2004
    What about Win98 and Me? :-(
  • Anonymous
    November 18, 2004
    Not much here, today:

    devenv
    NetApps
    RSSBandit

    (NetApps is the application producing this list, compiled from the code above)

    "tasklist /m mscoree.dll" is not completely equivalent; that one also includes processes that host or monitor managed apps, without being a managed app themselves:

    aspnet_admin.exe
    procexp.exe
    RSSBandit.exe
    devenv.exe

    Note the presence of aspnet_admin and process explorer (free download from http://www.sysinternals.com/ ).

    That being said, recent versions of process explorer highlight .NET applications differently than non-net applications, which makes it a faster way of seeing what processes are .NET applications.
  • Anonymous
    November 19, 2004
    w3wp
    devenv#1
    SPSNotification
    RuleEngineUpdat (BizTalk)
    ENTSSO (Single Sign On)
    mssdmn
    BTSNTSvc (BizTalk)
    mmc
    ConsoleApp
    spsadmin (Sharepoint)
    devenv
  • Anonymous
    November 19, 2004
    NDocGui
    WebHelper (VSIP Plugin I made)
    nunit-gui
    devenv#1 (VS 2)
    SnippetCompiler
    devenv#2 (VS 3)
    output
    SharpReader
    devenv (VS 1)

    Have Biztalk shut down currently because I 2 Virtual Machines running as well. But would have all the standard Biztalk stuff normally as well
  • Anonymous
    November 19, 2004
    program <-- the query
    dsidebar
    TCServer
    TabTip
    KeyboardSurrog
  • Anonymous
    November 20, 2004
    If it's extremely slow, then it is java (sort of managed), if it is a bit faster but uses lots of memory (WinForms), it is .Net and if it's fast but crashes now and then, it's unmanaged.

    Sysinternals Process Explorer does the rest (just take a look at the dlls which are loaded in the process :))
  • Anonymous
    November 21, 2004
    Not an easy way, but can get you process and the AppDomain names and path:

    http://www.bearcanyon.com/dotnet/#corpub
  • Anonymous
    November 30, 2004
    TraceSessionManager
    devenv
    ConsoleApplication4.vshost
    VisualCronService
    aspnet_wp
  • Anonymous
    December 01, 2004
    FontCacheServi
    devenv
    ShowManaged.ex
    dexplore
    aspnet_wp
    SharpReader.ex
  • Anonymous
    December 02, 2004
    The ICorPublishProcess COM interface is a little more "official" way to do it. Chris Sells posted a little utility using it on his site:

    http://www.sellsbrothers.com/tools/#corpub