Posted by: fijiaaron | August 14, 2008

Process Explorer = lsof for Windows

I’m messing around with Sprout still, and looking onto windows compatability.

win32-open3 0.2.5 is required for sprout, but the latest is win32-open3 0.2.6

The main difference I see in the changelog is:

Fixed RubyForge bug #20455 (closed IO stream)

[by the way, is there anyway to search Rubyforge for a bug by ID?]

So I’m looking to see how many file handles I can open in one (ruby) process on Windows, and seeing it it matches up with the 170 listed in the bug.

Anyway, while I’m investigating that, I found a really cool tool that is essentially lsof for windows.  The command line version is “handle” but there’s a cool GUI version called “Process Explorer“.

Just thought I’d share in case anyone else is looking for something like it (most likely meaning “me” at some point in the future.)


Responses

  1. Okay, process explorer isn’t exactly the same as handle, it’s got a lot more. Think of it more like a task manager on roids.

  2. On the process explorer page is another nice link, to PSTools.

    http://technet.microsoft.com/en-us/sysinternals/bb896682.aspx

    PSList is like PS for unix, and there’s a bunch more.
    PSKill, etc.

  3. Windows Sysinternals
    http://technet.microsoft.com/en-us/sysinternals/default.aspx

    File and Disk Utilities
    http://technet.microsoft.com/en-us/sysinternals/bb545046.aspx
    Junction — Symbolic links for windows

    Network Utilities
    http://technet.microsoft.com/en-us/sysinternals/677683af-3f5e-42ea-8116-9c92acd2c271.aspx
    Whois

    Process Utilities
    http://technet.microsoft.com/en-us/sysinternals/cb56073f-62a3-4ed8-9dd6-40c84cb9e2f5.aspx
    PortMon – Monitor Ports
    Process Monitor
    ShellRunAs – sudo
    PSTools – pslist, pskill
    ListDLLs

    Security Tools
    http://technet.microsoft.com/en-us/sysinternals/25e27bed-b251-4af4-b30a-c2a2a93a80d9.aspx

    PsExec – like chroot, I wouldn’t really trust this though.

    System Information
    http://technet.microsoft.com/en-us/sysinternals/86a95979-23f8-45f5-9480-f4ed9dab3aab.aspx

    Very interesting stuff. Of course I haven’t done that much on Windows (not that I’m a unix guru either, but at least the tools are a bit more publicized — and used to be installed by default on Linux)

  4. Okay, finally found the whole sysinternals suite. Just download this, unzip, and add to your path.

    http://technet.microsoft.com/en-us/sysinternals/0e18b180-9b7a-4c49-8120-c47c5a693683.aspx


Leave a response

Your response:

Categories