Tracks Phusion Passenger’s VM size, process count, and the amount of private memory it has squirreled away. You can also elect to be emailed if any of these statistics crosses a line you indicate. As an added bonus, this plugin also tracks the same statistics for the Apache instance managing Passenger.



The passenger-memory-stats program recommends that you run it would super user privileges to gain more information. This plugin is usable without the extra access rights, but you will need to add them if you want the full details.



It’s important to note though that it is not safe for you to transmit your super user password to us. You will need to address this access issue on your server.


Our recommended procedure to handle this is:



  1. Edit the sudoers file on your server to allow the user that runs the scout client listed in your crontab to be able to run passenger-memory-stats without a password
  2. Login into Scout and edit your plugin settings to add sudo in front of the command name

2 Comments Comment

I was having trouble with this plugin until I realized it was an issue with passenger and my OS.

For those on CentOS/RHEL change line 107 in /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.2/bin/passenger-memory-stats from:
apache_processes = list_processes(:exe => PlatformInfo::HTTPD)
to
apache_processes = list_processes(:exe => ‘httpd.worker’)

I found this info here

I had to make a small change to this process on CentOS 4×64_64 – instead of ‘httpd.workier’, I had to use just ‘httpd’ to get it to work

Leave a Comment
You must be logged in to your Scout account to leave a comment. Don't have a Scout Account?
Rating:
1 star2 star3 star4 star5 star
(0 votes)
You must have a Scout Account to vote.
Installs: 52
Tested On: linux
Source: View Source
All plugins listed in the directory are open source.
Already have a Scout account?   Where do I login? Highgroove Studios Powered By Rails Machine