class PhusionPassenger::AdminTools::MemoryStats

def apache_processes

not running. If the Apache executable name is unknown then nil will be returned.
Returns a list of Apache processes, which may be the empty list if Apache is
def apache_processes
  @apache_processes ||= begin
    if PlatformInfo.httpd
      processes = list_processes(:exe => PlatformInfo.httpd)
      if processes.empty?
        # On some Linux distros, the Apache worker processes
        # are called "httpd.worker"
        processes = list_processes(:exe => "#{PlatformInfo.httpd}.worker")
      end
      processes
    else
      nil
    end
  end
end