public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Memory statistics tool: warn if not on Linux.
Hongli Lai (Phusion) (author)
Wed Apr 23 01:55:41 -0700 2008
commit  2cbd4debcb83c562a454e239a9b65ad3c19e2bba
tree    925ae4e51d7b9a0a0279b7522fade05462ef15d6
parent  81a485007231a067c1d4e0e4088520a9a3863710
...
93
94
95
96
 
 
 
 
 
97
98
99
...
93
94
95
 
96
97
98
99
100
101
102
103
0
@@ -93,7 +93,11 @@
0
     passenger_processes = list_processes(:match => /(^Passenger |^Rails:|ApplicationPoolServerExecutable)/)
0
     print_process_list("Passenger processes", passenger_processes, :show_ppid => false)
0
     
0
- if ::Process.uid != 0 && (apache_processes + passenger_processes).any?{ |p| p.private_dirty_rss.nil? }
0
+ if RUBY_PLATFORM !~ /linux/
0
+ puts
0
+ puts "*** WARNING: The private dirty RSS can only be displayed " <<
0
+ "on Linux. You're currently using '#{RUBY_PLATFORM}'."
0
+ elsif ::Process.uid != 0 && (apache_processes + passenger_processes).any?{ |p| p.private_dirty_rss.nil? }
0
       puts
0
       puts "*** WARNING: Please run this tool as root. Otherwise the " <<
0
         "private dirty RSS of processes cannot be determined."

Comments

    No one has commented yet.