title: Linux :Can't start up: not enough memory
body: <p>I wrote a small java application and also wrote a small linux script to execute this Java program under Linux server .</p>
  
  <p>But when ever i am trying to run this linux script  , i am getting this Error </p>
  
  <p><strong>Can't start up: not enough memory</strong></p>
  
  <p>Could anybody please help me in how to resolve this ??</p>
  
  <p>This is my Script </p>
  
  <pre><code>echo "Start time: " `date`
  
  SERVER_HOME=$HOME/
  
  export CLASSPATH=.:
  
  export CLASSPATH=$CLASSPATH$SERVER_HOME/home/kiran/apiToplist/lib/*:
  
  echo $CLASSPATH
  
  
  java -cp $CLASSPATH -Xmx2G com.tata.samples.QuoteData
  echo "End time: " `date`
  </code></pre>