Coder Social home page Coder Social logo

joshin42 / pmcalculator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spot13/pmcalculator

0.0 0.0 0.0 14 KB

A simple process manager calculator that helps determine the correct values for child processes in PHP-FPM

License: MIT License

JavaScript 30.91% CSS 6.21% HTML 62.89%

pmcalculator's Introduction

pmcalculator ๐Ÿ—๏ธ

A simple process manager calculator that helps determine the correct values for child processes in PHP-FPM.

Usage โœŒ๏ธ

To find the correct process manager values, you will have to measure how much memory the average process consumes. This may not always be possible unless the process uses very stable and repeating memory amounts. For environments with many different processes, such as shared hosting environments, it may be better to monitor the processes, noting peaks every so often in order to calculate an average. Using the process status (ps) command in Linux, sorting by RSS (Resident Set Size) to show the process with the highest memory usage first.

ps -ylC php-fpm --sort:rss
  • The name php-fpm matches your process name. In many cases this will need to be changed to match the actual process such as php7.0-fpm.
  • The column RSS contains the average memory usage in kilobytes per process.
S   UID   PID  PPID  C PRI  NI   RSS    SZ WCHAN  TTY          TIME CMD
S     0 24439     1  0  80   0  6364 57236 -      ?        00:00:00 php-fpm
S    33 24701 24439  2  80   0 61588 63335 -      ?        00:04:07 php-fpm
S    33 25319 24439  2  80   0 61620 63314 -      ?        00:02:35 php-fpm

In this example 61588 kilobytes or converted about +- 60 Mb per process.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Demo: https://spot13.com/pmcalculator

pmcalculator's People

Contributors

spot13 avatar aysadkozanoglu 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.