Giter VIP home page Giter VIP logo

custis-public / procinsp Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 3.0 701 KB

Windows process explorer with web UI. Shows list of running processes on multiple (remote) servers. Allows to watch thread stacks of running CLR processes. Allows to watch current executing requests on w3wp workers.

License: MIT License

C# 47.60% JavaScript 4.06% HTML 2.38% TypeScript 45.74% CSS 0.21%
process-explorer stacktrace ram-cpu-usage kibana web-request thread windows call-stack

procinsp's Introduction

ProcInsp is windows process and stack explorer with web UI. ProcInsp shows list of running processes on multiple (remote) servers. You can drill down into the CLR-process and watch running threads with their stacktraces. ProcInsp also allows to watch current executing requests on IIS AppPools (w3wp workers).

Servers and procs

Servers and processes info

Features

  • Displays RAM and CPU usage of connected servers
  • Displays info about running processes on all connected servers (RAM, CPU, start time etc)
  • For IIS processes - the name of apppool is displayed
  • Kibana integration - user can view logs of desired process (logs are filtered by host name and process id; Kibana url in configurable)

Threads and requests

Threads and requests info

Features

  • Displays currently running requests (only for IIS processes)
  • Displays all running threads of process
  • App's entry point in stacktrace is shown as thread's name (which frame should be considered as entry point is configurable)
  • If exception in thread occured, exception info is displayed (exception type, message and stacktrace)
  • Kibana integration - user can view logs of desired thread (logs are filtered by host name, process and thread ids; Kibana url in configurable)

Stacktrace

Stacktrace info

Features

  • Highlight app's entry point in stacktrace (which frame should be considered as entry point is configurable)

API

ProcInsp has public API, which returns results in JSON.

Verb URL Description
GET /Process Get the list of running processes
GET /Process/{pid} Get information about specific process
GET /Process/usage Get resource usages (CPU/RAM) by processes
GET /Process/machine Get total resource usage (CPU/RAM) on machine
GET /Process/{pid}/threads Get threads of CLR process
GET /Process/{pid}/threadSizes Calculate threads' sizes of CLR process (WARNING: doesn't work correct)
GET /Process/{pid}/requests Get web-requests serving by specific process. Works only if process is w3wp worker (IIS AppPool)

Full documentation is available at /swagger/index.html (after app is started).

Known limitations

  • Shows threads and stacktraces only for CLR processes with the same bitness as running web api server
  • Shows only thread IDs and some other basic info for non CLR processes
  • Web-requests are shown only for IIS web server

Repository structure

  • ProcInsp - web application and api's
  • ProcInsp.Tests - tests
  • Other projects are just for testing purposes

Run

  • You can run application from VS Code (F5)
  • Or dotnet run .ProcInsp/ProcInsp.csporj

Publish

  • Change version in globalConfig.js
  • Run from git root directory:
    • dotnet publish ProcInsp\ProcInsp.csproj
    • npm i
    • npm run zip
  • Create new release at GitHub

Deploy

procinsp's People

Contributors

ishatalkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

procinsp's Issues

Cannot get process details

I have managed to get the process list and RAM/CPU usage estimates. However, after clicking the process name, I get the following error message:

Error while data fetch http://localhost:5000/Process/6504/threadSizes: SyntaxError: Unexpected token < in JSON at position 0

No process info is displayed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.