title: How to allocate space to JAVA using command line
body: <p>I have come across heap errors while loading a large dataset into Jena. `Is there some way by which I may allocate the JVM(Java) a large heap space. </p>
  
  <p>I know I can achieve this by making changes into eclipse.ini. But is there some way by which I may increase the Java heap size using command line in linux (I using a 64GB RAM server: running 12.04 Ubuntu LTS server)?</p>
  
  <p>The error which I am getting due to less heap space is: exception in thread main gc overhead limit exceeded.</p>
  
  <p>Also how can I find the maximum amount of heap space which I can set for my systems</p>
  
  <p>I tried export JAVA_OPTS= -Xms4096m -Xmx4096m but ended up getting the error:
  bash: export: <code>-Xms4096m': not a valid identifier
  bash: export:</code>-Xmx4096m': not a valid identifier</p>