not finished, see mhash
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
views
README.md
config.ru
wanderer_web.rb

README.md

Wanderer: The Rack & Passenger monitor

the project is a bit old but it contains a nice ruby prototyping util, Mhash: https://github.com/makevoid/wanderer/blob/master/lib/mhash.rb

TODO: Features:

  • web UI

  • monitors passenger apps (via ps and passenger-status, passenger-memory-stats)

  • monitors rack apps (via ps)

  • crontab

  • daemon

under the hood, a simple

ps aux | grep -E 'Rack|Passenger|rackup|thin|shotgun'

********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session OR by effective group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)
r  only running processes             U  processes for specified users
x  processes w/o controlling ttys     t  by tty
*********** output format **********  *********** long options ***********
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy


USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
www-data 26658  0.3  1.1 128300 46440 ?        Sl   04:15   0:02 Passenger ApplicationSpawner: /www/trysinatra/current                                                                                                                      
www-data 26679  0.1  1.9 249224 78008 ?        Sl   01:28   0:10 Rack: /www/wsroomers/current                                                                                                                                               
www-data 26814  0.1  1.1 137912 47224 ?        Sl   04:15   0:00 Rack: /www/trysinatra/current                                                                                                                                              
www-data 31401  0.1  1.6 235660 63428 ?        Sl   Oct01   2:56 Rack: /www/thorrents/current                                                                                                                                               
root     32361  0.0  0.0  98184  2552 ?        Ssl  Sep21   0:00 PassengerWatchdog