{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3315","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3315/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3315/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3315/events","html_url":"https://github.com/elastic/logstash/issues/3315","id":80991307,"number":3315,"title":"duplicate JAVA_OPTS in logstash launch command line arguments","user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"labels":[{"id":90997092,"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21","default":true},{"id":206628312,"url":"https://api.github.com/repos/elastic/logstash/labels/packaging","name":"packaging","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"assignees":[{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2015-05-26T14:36:56Z","updated_at":"2016-12-01T17:03:28Z","closed_at":null,"body":"`JAVA_OPTS` are repeated on the command line when logstash is launched. This has been seen in a .deb package context:\n\n``` sh\n# ps --cols 1000 -o cputime,etime,rss,vsz,args, -u logstash\n    TIME     ELAPSED   RSS    VSZ COMMAND\n01:06:30    04:00:06 96836 267932 /usr/bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=/var/lib/logstash -Xmx128m -Xss2048k -Djffi.boot.library.path=/opt/logstash/vendor/jruby/lib/jni -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=/var/lib/logstash -Xbootclasspath/a:/opt/logstash/vendor/jruby/lib/jruby.jar -classpath : -Djruby.home=/opt/logstash/vendor/jruby -Djruby.lib=/opt/logstash/vendor/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main --1.9 /opt/logstash/lib/bootstrap/environment.rb logstash/runner.rb agent -f /etc/logstash/conf.d -l /var/log/logstash/logstash.log\n```\n\nI do not know if this is the case in all launch contexts.\n\nThis has been reported in #3287\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/264230707","html_url":"https://github.com/elastic/logstash/issues/3315#issuecomment-264230707","issue_url":"https://api.github.com/repos/elastic/logstash/issues/3315","id":264230707,"user":{"login":"gquintana","id":755587,"avatar_url":"https://avatars.githubusercontent.com/u/755587?v=3","gravatar_id":"","url":"https://api.github.com/users/gquintana","html_url":"https://github.com/gquintana","followers_url":"https://api.github.com/users/gquintana/followers","following_url":"https://api.github.com/users/gquintana/following{/other_user}","gists_url":"https://api.github.com/users/gquintana/gists{/gist_id}","starred_url":"https://api.github.com/users/gquintana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gquintana/subscriptions","organizations_url":"https://api.github.com/users/gquintana/orgs","repos_url":"https://api.github.com/users/gquintana/repos","events_url":"https://api.github.com/users/gquintana/events{/privacy}","received_events_url":"https://api.github.com/users/gquintana/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T17:03:28Z","updated_at":"2016-12-01T17:03:28Z","body":"I can also reproduce it with the tarball just doing:\r\n\r\n```\r\nexport JAVA_HOME=...\r\nbin/logstash -f /opt/logstash/logstash.conf\r\n```\r\n\r\n```\r\n /opt/logstash/java/current/bin/java \r\n -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError \r\n -Xmx1g -Xss2048k -Djffi.boot.library.path=/opt/logstash/logstash-2.4.1/vendor/jruby/lib/jni \r\n -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError \r\n -XX:HeapDumpPath=/opt/logstash/logstash-2.4.1/heapdump.hprof -Xbootclasspath/a:/opt/logstash/logstash-2.4.1/vendor/jruby/lib/jruby.jar -classpath : -Djruby.home=/opt/logstash/logstash-2.4.1/vendor/jruby -Djruby.lib=/opt/logstash/logstash-2.4.1/vendor/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main --1.9 /opt/logstash/logstash-2.4.1/lib/bootstrap/environment.rb logstash/runner.rb agent -f /opt/logstash/logstash.conf\r\n```"}}
{"actor":{"display_login":"gquintana"}}