{"action":"created","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1615","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1615/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1615/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1615/events","html_url":"https://github.com/phusion/passenger/issues/1615","id":107422271,"number":1615,"title":"Whitespace after Passenger processes in ps ","user":{"login":"mwpastore","id":8540936,"avatar_url":"https://avatars.githubusercontent.com/u/8540936?v=3","gravatar_id":"","url":"https://api.github.com/users/mwpastore","html_url":"https://github.com/mwpastore","followers_url":"https://api.github.com/users/mwpastore/followers","following_url":"https://api.github.com/users/mwpastore/following{/other_user}","gists_url":"https://api.github.com/users/mwpastore/gists{/gist_id}","starred_url":"https://api.github.com/users/mwpastore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwpastore/subscriptions","organizations_url":"https://api.github.com/users/mwpastore/orgs","repos_url":"https://api.github.com/users/mwpastore/repos","events_url":"https://api.github.com/users/mwpastore/events{/privacy}","received_events_url":"https://api.github.com/users/mwpastore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-20T22:39:49Z","updated_at":"2015-09-23T04:20:43Z","closed_at":"2015-09-20T22:46:14Z","body":"Cosmetic issue with Passenger 5.0.18 running standalone on Ubuntu 14.04 LTS: I'm seeing a ton of extra whitespace after the processes in the output of `ps` (make sure to scroll all the way to the right to see how far out—literally and metaphorically—the line terminators are):\r\n\r\n```\r\n$ ps axfwww | grep Passenge[r] | cat -vet\r\n 9516 ?        Ssl    0:00 Passenger watchdog                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         $\r\n 9518 ?        Sl     0:05  \\_ Passenger core                                                      $\r\n 9523 ?        Sl     0:00  \\_ Passenger ust-router                                                      $\r\n 9540 ?        Ss     0:00 /home/xxxx/.passenger/support-binaries/5.0.18/PassengerAgent temp-dir-toucher /tmp/passenger-standalone.1yco6lj --cleanup --daemonize --pid-file /tmp/passenger-standalone.1yco6lj/temp_dir_toucher.pid --log-file /srv/rack/xxxx/yyyy/log/passenger.log$\r\n 9566 ?        Sl     0:00 Passenger RubyApp: /srv/rack/xxxx/yyyy/xxxx                                                                  $\r\n```\r\n\r\nHappy to show whatever diagnostic information might help track this down. Let me know.\r\n\r\n```\r\n$ uname -a\r\nLinux zzzz 4.1.5-x86_64-linode61 #7 SMP Mon Aug 24 13:46:31 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n$ bin/passenger-status\r\nVersion : 5.0.18\r\nDate    : 2015-09-20 17:32:54 -0500\r\nInstance: uqmDhWDH (Phusion_Passenger/5.0.18)\r\n\r\n----------- General information -----------\r\nMax pool size : 6\r\nApp groups    : 1\r\nProcesses     : 1\r\nRequests in top-level queue : 0\r\n\r\n----------- Application groups -----------\r\n/srv/rack/xxxx/yyyy/xxxx:\r\n  App root: /srv/rack/xxxx/yyyy/xxxx\r\n  Requests in queue: 0\r\n  * PID: 9566    Sessions: 0       Processed: 1       Uptime: 2h 2m 36s\r\n    CPU: 0%      Memory  : 36M     Last used: 2h 2m 36s\r\n$ ruby --version\r\nruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]\r\n$ bundle show\r\nGems included by the bundle:\r\n  * addressable (2.3.8)\r\n  * backports (3.6.6)\r\n  * bundler (1.10.6)\r\n  * dalli (2.7.4)\r\n  * faraday (0.9.1)\r\n  * hashie (3.4.2)\r\n  * json (1.8.3)\r\n  * jwt (1.5.1)\r\n  * koala (2.2.0)\r\n  * multi_json (1.11.2)\r\n  * multipart-post (2.0.0)\r\n  * mysql2 (0.3.20)\r\n  * oauth (0.4.7)\r\n  * omniauth (1.2.2)\r\n  * omniauth-oauth (1.1.0)\r\n  * omniauth-twitter (1.2.1)\r\n  * passenger (5.0.18)\r\n  * rack (1.6.4)\r\n  * rack-protection (1.5.3)\r\n  * rack-test (0.6.3)\r\n  * rake (10.4.2)\r\n  * redis (3.2.1)\r\n  * sequel (4.25.0)\r\n  * sinatra (1.4.6)\r\n  * sinatra-contrib (1.4.6)\r\n  * sinatra-sequel (0.9.0)\r\n  * tilt (2.0.1)\r\n```"},"comment":{"url":"https://api.github.com/repos/phusion/passenger/issues/comments/142486593","html_url":"https://github.com/phusion/passenger/issues/1615#issuecomment-142486593","issue_url":"https://api.github.com/repos/phusion/passenger/issues/1615","id":142486593,"user":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T04:20:43Z","updated_at":"2015-09-23T04:20:43Z","body":"This blog post explains the gory details behind process title memory management: http://stupefydeveloper.blogspot.nl/2008/10/linux-change-process-name.html\r\n\r\nAs for the specific lines in Passenger that are responsible for setting process titles:\r\nhttps://github.com/phusion/passenger/blob/ec9a58409c1ce782774b998676b20c0c80d364e6/src/agent/Watchdog/CoreWatcher.cpp#L45-L47\r\nhttps://github.com/phusion/passenger/blob/ec9a58409c1ce782774b998676b20c0c80d364e6/src/agent/Shared/Base.cpp#L1533-L1541"}}