Code Monkey home page Code Monkey logo

puma-status's Introduction

puma-status

Command-line tool for puma to display information about running request/process.

Install

Install with:

gem install puma-status

Usage

$ puma-status path/to/puma.state

For continuous monitoring:

$ watch --interval 0.1 --color puma-status path/to/puma.state

Output examples

Clustered mode:

16723 (/tmp/puma.state) Version: 5.6.4/ruby2.5.3p105 | Uptime:  1m50s | Phase: 0 | Load: 2[██░░      ]10 | Req: 936
 └ 16827 CPU:  93.3% Mem:  140 MB Uptime:  1m50s | Load: 1[█░   ]5 | Req: 469
 └ 16833 CPU: 106.7% Mem:  145 MB Uptime:  1m50s | Load: 1[█░   ]5 | Req: 467

Single mode:

18847 (/tmp/puma.state) Version: 5.6.4/ruby2.5.3p105 | Uptime:  0m 3s | Load: 1[█░░  ]5 | Req: 672
 └ 18847 CPU: 120.0% Mem:  143 MB Uptime:  0m 3s | Load: 1[█░░  ]5 | Req: 672

Known issues

Uptime will shows --m --s for older versions of puma (< 4.1.0): puma/puma#1844

puma-status's People

Contributors

cisolarix avatar lzap avatar misdoro avatar mmotherwell avatar rjw1 avatar vizcay avatar ylecuyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

puma-status's Issues

Methods added at root level

When I add this gem to my gemfile, a number of methods are introduced at the root level. In version 1.5 of this gem, this caused to overwrite the Kernel warn method.

Is there a reason this gem is set up this way? Would it be possible to put all methods in one or more Ruby classes?

Make compatible with Ruby 2.2

I get the following when I install it:
Gem::RuntimeRequirementNotMetError: puma-status requires Ruby version >= 2.3.0

(I know Ruby 2.2 is EOL)

puma.state doesn't exists masquerading Errno::ENOENT error

While trying to debug a puma server problem found your tool but I wasn't unable to use it in my server:

deploy@xxx:~/applications/xxx/shared/tmp/pids$ puma-status puma.state

puma.state doesn't exists
deploy@xxx:~/applications/xxx/shared/tmp/pids$ cat puma.state
---
pid: 1727
control_url: unix://tmp/sockets/pumactl.sock
control_auth_token: '12345'
deploy@xxx:~/applications/xxx/shared/tmp/pids$ ls -l puma.state
-rw-r--r-- 1 deploy sudo 87 May 18 01:52 puma.state
deploy@xxx:~/applications/xxx/shared/tmp/pids$

But I'm sure the file exists and is readable so I think that

rescue Errno::ENOENT
is getting the Errno::ENOENT from another source.

Any ideas? Thanks

Wrong worker status

Hi

puma-monitor shows all workers as killed but they are working.

azpHEcH

Status was displayed properly for couple of hours.

Ruby: 2.5.7p206
Puma 4.3.5

Rails .state file

Im a little confused, where i can find the .state file generated by rails (or sidekiq) to monitor it?

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.