title: In Java, is it possible to increase the JVM's available memory and/or kill other Java programs?
body: <p>I'm inexperienced with advanced Java so please bear with me.</p>
  
  <p>I'm curious about Java's ability to implement features that may be termed "autonomic". Say we have two Java programs running. And one program determines that the other one is hogging memory, and thus kills that program and/or allocates more memory to the JVM.</p>
  
  <p>I know in Java you can see what the available memory is (see <a href="https://stackoverflow.com/questions/74674/how-to-do-i-check-cpu-and-memory-usage-in-java">How to do I check CPU and Memory Usage in Java?</a>), but what if we want to dig deeper?</p>
  
  <p>Thank You.</p>