Search code examples
windowsfile-descriptor

List owner processes of open file handles in Windows?


I'm currently getting an "out of handles" error in my Event Viewer for a program.

What would be a good program to list what processes are using file handles?

An example would be 'lsof' in the *nix world.


Solution

  • Use processexplorer

    http://technet.microsoft.com/en-us/sysinternals/bb896653

    From the introduction:

    The top window always shows a list of the currently active processes, including the names of their owning accounts, whereas the information displayed in the bottom window depends on the mode that Process Explorer is in: if it is in handle mode you'll see the handles that the process selected in the top window has opened

    The handle mode is the one you're interested in.

    For Chrome on my box I see for example:

    PE handlemode spit

    You can also search for a handle by name.