New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passenger-memory-stats does not list jruby application processes #1878
Comments
…loses GH-1878. Extends the regex that selects relevant proceses to also search for `rack_loader.rb`.
Normally that process renames itself to something like |
I do not know why the process is failing to rename itself. What is responsible for the proccess re-naming? AFAIK, we aren't doing anything custom to run it. Our Nginx config to wire Passenger to Jruby looks like this:
We install JRuby using the tarball download from jruby.org. The applications config.ru is the standard one from Rails 3. |
@bbergstrom Is it possible to try with 5.0.30? |
It is still running on 5.0.16 and I'm not sure when we will get time to upgrade. |
Are you launching passenger as an unprivileged user or root? Which OS and version are you using? Which JVM are you using? |
Nginx is started by root. Nginx workers run under the
OS: Amazon Linux (RHEL) JVM
|
…loses GH-1878. Extends the regex that selects relevant proceses to also search for `rack_loader.rb`.
…loses GH-1878. Extends the regex that selects relevant proceses to also search for `rack_loader.rb`.
…loses GH-1878. Extends the regex that selects relevant proceses to also search for `rack_loader.rb`.
Issue report
passenger-memory-stats
is failing to report memory usage of the app/rails/rack processes when using JRuby. I believe this is because the matchers at https://github.com/phusion/passenger/blob/master/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb#L93 do not find the java processes.The java rails process look like this:
I believe if we update the expression to also match on
rack-loader.rb
it will resolve the issue.For example, current expression match:
New expression match:
The text was updated successfully, but these errors were encountered: