title: How to use the Xmx command? (JVM Heap memory)
body: <p>I'm new in the Oracle world and I'm working with Oracle Identity Analytics (OIA). In the test environment everything is ok, but in production environment i'm getting an "java.lang.OutOfMemoryError", so when I checked the Xmx and Xms I saw that I had Xmx:512m and Xms:512m, that's why I'm trying to modify the Xmx value.</p>
  
  <p>I want to modify the Xmx and Xms values so I wrote the following line in my PuTTY:</p>
  
  <blockquote>
    <p>$ java -Xmx1024m</p>
  </blockquote>
  
  <p>But the PuTTY shows me the following:</p>
  
  <blockquote>
    <p>Usage: java [-options] class [args...] (to execute a class) or<br>
           java [-options] -jar jarfile [args...] (to execute a jar file)</p>
    
    <p>where options include:...</p>
  </blockquote>
  
  <p>Seems like I'm forgetting something after "Xmx1024m", but what? Well, now I know I'm forgetting Jar file, Class or App name but I have no idea how to get any of those things. I tried putting "$AdminServer" after "Xmx1024m" but it didn't work.</p>
  
  <p>My Java version is 1.6.0_45 Oracle JRockit build R28 and the Operative Systems is Linux Server 6.5.</p>
  
  <p>Regards!</p>