title: changing java heap size globally on Ubuntu?
body: <p>Oracle java process on my Linux Ubuntu only sets min. heap size</p>
  
  <p>jps -lvm
  2639 sun.tools.jps.Jps -lvm -Dapplication.home=/usr/lib/jvm/java-8-oracle -Xms8m</p>
  
  <p>I am trying to set maximum heap size by setting JAVA_OPTS in /etc/environment, of /home/me/.profile</p>
  
  <pre><code>JAVA_OPTS="-Xms128m -Xmx1024m"
  </code></pre>
  
  <p>but it doesn't seem to work: after the reboot i still have the same opts</p>
  
  <p>jps -lvm
  sun.tools.jps.Jps -lvm -Dapplication.home=/usr/lib/jvm/java-8-oracle -Xms8m</p>