{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/2426","repository_url":"https://api.github.com/repos/sbt/sbt","labels_url":"https://api.github.com/repos/sbt/sbt/issues/2426/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/2426/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/2426/events","html_url":"https://github.com/sbt/sbt/issues/2426","id":129320858,"number":2426,"title":"Better control over memory usage","user":{"login":"jroper","id":105833,"avatar_url":"https://avatars.githubusercontent.com/u/105833?v=3","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-28T03:25:39Z","updated_at":"2016-02-19T22:41:13Z","closed_at":"2016-02-19T22:41:13Z","body":"If I want to change the `MaxMetaspaceSize` used by sbt to be 1GB on every invocation, currently, I have two options:\r\n\r\n1. Configure all memory options using the `-mem` flag - so if I want 1GB of metaspace, I have to give 4GB of heap to my process, because that's the way `-mem` works.  This is not an option, I want 1GB of metaspace, but 4GB of heap space is far too much.\r\n2. Configure the `JAVA_OPTS` environment variable so that *every* java process (or at least, every java process that uses the very well supported `JAVA_OPTS` environment variable) on my system gets 1GB of metaspace too.  This is also not an option.\r\n\r\nSetting `-J-XX:MaxMetaspaceSize` in my `sbtopts` file doesn't work because when the `-mem` processing checks to see whether it should set the memory options, it only checks `JAVA_OPTS`.  An ideal solution would be for it to check both `JAVA_OPTS` and the `-J` arguments."},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/186437917","html_url":"https://github.com/sbt/sbt/issues/2426#issuecomment-186437917","issue_url":"https://api.github.com/repos/sbt/sbt/issues/2426","id":186437917,"user":{"login":"eed3si9n","id":184683,"avatar_url":"https://avatars.githubusercontent.com/u/184683?v=3","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T22:41:13Z","updated_at":"2016-02-19T22:41:13Z","body":"Moving this to https://github.com/sbt/sbt-launcher-package/issues/104"}}