When I run 'passenger-memory-stats' on my ubuntu server as root I get the following error :
-bash: passenger-memory-stats: command not found
If I run this command as a user ('deploy' in my case) I get the passenger results but I get the following warning:
*** WARNING: Please run this tool as root. Otherwise the private dirty RSS of processes cannot be determined.
So what I need to know is how can I get 'passenger-memory-stats' to run as root. Any pointers would be greatly appreciated.
* ERROR MESSAGE *
/home/deploy/.rvm/rubies/ruby-1.9.2 p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError) from /home/deploy/.rvm/rubies/ruby-1.9.2- p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /home/deploy/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `gem' from /home/deploy/.rvm/gems/ruby-1.9.2-p290/bin/passenger-memory-stats:18:in `<main>'