GithubHelp home page GithubHelp logo

alefais / net-man Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6 KB

Final project of the Network Management course of the Computer Science Bachelor's Degree @ University of Pisa

Lua 100.00%
sysdig chisel lua system-events monitoring

net-man's Introduction

net-man

Final project of the Network Management course of the Computer Science Bachelor's Degree @ University of Pisa.

Language Description
Lua A Sysdigโ€™s chisel (little script that analyzes and extracts useful informations from the sysdig event stream) capable of monitoring the processes currently executed on the machine. By executing the script it is possible to analyze at regular time intervals the execution time and the number of opened and closed sockets for one specified process (or for all the processes in execution). By monitoring the number and type of system calls executed we are able to measure the performance of an application, to check if the QoS requirements are satisfied (and if not why), and to analyze the amount of resources requested.

SockClosePercPar - A tool to check unclosed socket FDs

SockClosePercPar is a Lua script that intercepts the socket system calls made by active processes (one in particular, or all of them) and for each process it checks if the relative file descriptors are eventually closed.

Requirements

The following tools are required in order to use the script:

  • Sysdig
  • Lua 5.2

Using the script

Open a terminal session and navigate to the script's directory. The script can be run with the following command:

sysdig -c SockClosePercPar.lua param

The param parameter can be either all or the desired process' name.

NOTE: In order to run the script, you must have superuser privilegies.

Results

SockClosePercPar outputs how many system calls (socket or close) were made by the process since the script's execution and during the last update interval, as well as the number of file descriptors closed after a socket syscall. Both socket and close are classified by type (tcp, udp, other): every output column contains the whole number of socket or close and their subdivision between families. The script outputs new data every 7 seconds.

net-man's People

Contributors

alefais avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.