Hello,
I do not see any Apache Processes, after running:
$ sudo /usr/sbin/passenger-memory-stats
I've checked the FAQ and troubleshooting guides but I do not found any hints, would you please help me find out what may be going on? Thank you very much in advance.
The output of the command is:
#############
Version: 5.1.5
Date : 2017-07-17 11:55:35 -0300
------- Apache processes --------
### Processes: 0
### Total private dirty RSS: 0.00 MB
-------- Nginx processes --------
### Processes: 0
### Total private dirty RSS: 0.00 MB
----- Passenger processes ------
PID VMSize Private Name
--------------------------------
11741 441.1 MB 1.3 MB Passenger watchdog
11744 1692.1 MB 7.7 MB Passenger core
11752 449.5 MB 1.4 MB Passenger ust-router
### Processes: 3
### Total private dirty RSS: 10.33 MB
I`ve started apache with:
sudo systemctl start apache2.service
and:
sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since lun 2017-07-17 14:52:08 ART; 19h ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/apache2.service
├─2526 /usr/sbin/apache2 -k start
├─2529 Passenger watchdog
├─2532 Passenger core
├─2609 Passenger ust-router
├─2647 /usr/sbin/apache2 -k start
├─2648 /usr/sbin/apache2 -k start
├─2650 /usr/sbin/apache2 -k start
├─2652 /usr/sbin/apache2 -k start
├─2653 /usr/sbin/apache2 -k start
├─2927 /usr/sbin/apache2 -k start
├─3189 /usr/sbin/apache2 -k start
├─3190 /usr/sbin/apache2 -k start
├─3490 /usr/sbin/apache2 -k start
├─3491 /usr/sbin/apache2 -k start
├─3493 /usr/sbin/apache2 -k start
├─3494 /usr/sbin/apache2 -k start
The web app I am executing is called sequenceserver:
and I have it online @:
ruby and passenger were installed with:
sudo apt-get install ruby-full build-essential ruby-dev
sudo apt-get install -y libapache2-mod-passenger
I am under Ubuntu Xenial 16.04 x86_64
Thank you very much for any help,
Best regards!
/usr/bin/apxs2: apache2
/usr/bin/apxs: apache2
Looking for possible Apache installations...
--> Looking for /usr/local/sbin/apxs2: not found
--> Looking for /usr/local/bin/apxs2: not found
--> Looking for /usr/sbin/apxs2: not found
--> Looking for /usr/bin/apxs2: found
--> Looking for /sbin/apxs2: not found
--> Looking for /bin/apxs2: not found
--> Looking for /snap/bin/apxs2: not found
--> Looking for /usr/local/maui/bin/apxs2: not found
--> Looking for /usr/local/maui/sbin/apxs2: not found
--> Looking for /usr/local/sbin/apxs: not found
--> Looking for /usr/local/bin/apxs: not found
--> Looking for /usr/sbin/apxs: not found
--> Looking for /usr/bin/apxs: found
--> Looking for /sbin/apxs: not found
--> Looking for /bin/apxs: not found
--> Looking for /snap/bin/apxs: not found
--> Looking for /usr/local/maui/bin/apxs: not found
--> Looking for /usr/local/maui/sbin/apxs: not found
1 symlink duplicate(s) detected; ignoring them.
Analyzing /usr/bin/apxs...
Detecting main Apache executable...
--> Looking for /usr/bin/apache2: not found
--> Looking for /usr/sbin/apache2: found
Detecting version...
--> 2.4.18
Detecting control command...
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
Detecting configuration file location...
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
--> /etc/apache2/apache2.conf
Detecting error log file...
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
--> Attempting to substitute environment variables in Apache config value "${APACHE_LOG_DIR}/error.log"...
--> Substituted "${APACHE_LOG_DIR}" -> "/var/log/apache2"
--> /var/log/apache2/error.log
Detecting a2enmod and a2dismod...
--> Looking for /usr/bin/a2enmod: not found
--> Looking for /usr/sbin/a2enmod: found
--> Looking for /usr/bin/a2dismod: not found
--> Looking for /usr/sbin/a2dismod: found
--> Looking for /usr/bin/apache2ctl: not found
--> Looking for /usr/bin/apachectl2: not found
--> Looking for /usr/bin/apachectl: not found
--> Looking for /usr/sbin/apache2ctl: found
Found a usable Apache installation using /usr/bin/apxs.
Final autodetection results
* Found Apache 2.4.18!
Information:
apxs2 : /usr/bin/apxs
Main executable: /usr/sbin/apache2
Control command: /usr/sbin/apache2ctl
Config file : /etc/apache2/apache2.conf
Error log file : /var/log/apache2/error.log
To install Phusion Passenger against this specific Apache version:
/usr/bin/ruby2.3 /usr/bin/passenger-install-apache2-module --apxs2-path='/usr/bin/apxs'
To start, stop or restart this specific Apache version:
/usr/sbin/apache2ctl start
/usr/sbin/apache2ctl stop
/usr/sbin/apache2ctl restart
To troubleshoot, please read the logs in this file:
/var/log/apache2/error.log
sudo apt-get install -y libapache2-mod-passenger
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/0d2950a9-15d7-4454-a4f3-ddd0df529c3e%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/HBhxA7DtSsg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passenger+unsubscribe@googlegroups.com.
To post to this group, send email to phusion-passenger@googlegroups.com.
Visit this group at https://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/e3eb405a-ed98-42d7-9ae0-40a701fa5b4d%40googlegroups.com.
sudo /usr/sbin/passenger-memory-stats --HTTPD=='/usr/bin/apxs'
HTTPD=`which apache2` sudo -E /usr/sbin/passenger-memory-stats
Version: 5.1.6
Date : 2017-07-24 14:45:38 -0300
------- Apache processes --------
### Processes: 0
### Total private dirty RSS: 0.00 MB
-------- Nginx processes --------
### Processes: 0
### Total private dirty RSS: 0.00 MB
----- Passenger processes ------
PID VMSize Private Name
--------------------------------
32099 441.0 MB 1.2 MB Passenger watchdog
32104 1692.1 MB 7.7 MB Passenger core
32114 449.4 MB 1.3 MB Passenger ust-router
### Processes: 3
### Total private dirty RSS: 10.23 MB
--
You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/HBhxA7DtSsg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passenger+unsubscribe@googlegroups.com.
To post to this group, send email to phusion-passenger@googlegroups.com.
Visit this group at https://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/a1153ec7-f31e-43b7-bf8f-fc067d8a6721%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to phusion-passenger+unsubscribe@googlegroups.com.
To post to this group, send email to phusion-passenger@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/0eb3a992-78cb-434a-8c00-93260b8e676a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/6972c369-279c-4036-b3e2-2d0c64ad2f66%40googlegroups.com.
def list_processes(options)
if options[:exe]
name = options[:exe].sub(/.*\/(.*)/, '\1')
puts "name: #{name}"
puts "os: #{os_name_simple}"
if os_name_simple == "linux"
ps = "ps -C '#{name}'"
else
ps = "ps -A"
options[:match] = Regexp.new(Regexp.escape(name))
end
puts "ps: #{ps}"
elsif options[:name]
if os_name_simple == "linux"
ps = "ps -C '#{options[:name]}'"
else
ps = "ps -A"
options[:match] = Regexp.new(" #{Regexp.escape(options[:name])}")
end
elsif options[:match]
ps = "ps -A"
else
raise ArgumentError, "Invalid options."
end
processes = []
case os_name_simple
when "solaris"
ps_output = `#{ps} -o pid,ppid,nlwp,vsz,rss,pcpu,comm`
threads_known = true
when "macosx"
ps_output = `#{ps} -w -o pid,ppid,vsz,rss,%cpu,command`
threads_known = false
else
ps_output = `#{ps} -w -o pid,ppid,nlwp,vsz,rss,%cpu,command`
threads_known = true
end
puts "ps_output: #{ps_output}"
list = force_binary(ps_output).split("\n")
puts "list: #{list}"
list.shift
list.each do |line|
puts "raw line: #{line}"
line.gsub!(/^ */, '')
line.gsub!(/ *$/, '')
puts "line modded: #{line}"
p = Process.new
if threads_known
p.pid, p.ppid, p.threads, p.vm_size, p.rss, p.cpu, p.name = line.split(/ +/, 7)
else
p.pid, p.ppid, p.vm_size, p.rss, p.cpu, p.name = line.split(/ +/, 6)
end
puts "process: #{p}"
p.name.sub!(/\Aruby: /, '')
p.name.sub!(/ \(ruby\)\Z/, '')
if p.name !~ /^ps/ && (!options[:match] || p.name.match(options[:match]))
# Convert some values to integer.
[:pid, :ppid, :vm_size, :rss].each do |attr|
p.send("#{attr}=", p.send(attr).to_i)
end
p.threads = p.threads.to_i if threads_known
if platform_provides_private_dirty_rss_information?
p.private_dirty_rss = determine_private_dirty_rss(p.pid)
end
processes << p
end
end
return processes
end
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/0eb3a992-78cb-434a-8c00-93260b8e676a%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/HBhxA7DtSsg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at https://groups.google.com/group/phusion-passenger.
To unsubscribe from this group and all its topics, send an email to phusion-passenger+unsubscribe@googlegroups.com.
To post to this group, send email to phusion-passenger@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/9abcfc58-a85f-4e24-804c-07d676ef7294%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/9eecef6b-f7f2-40da-9e7f-d602f051b836%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/1fda950e-953d-4722-82ca-8dedbc8a6e66%40googlegroups.com.