title: Rails Elastic Search Error "The stack size specified is too small, Specify at least 160k Error: Could not create the Java Virtual Machine. "
body: <p>I'm working on a Rails3 Project using Elasticsearch and Tire. After installing Elastic-search when I try to run it, it gives me the following error:</p>
  
  <pre><code>The stack size specified is too small, Specify at least 160k
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>
  
  <p>I have Java 7 and my OS is Ubuntu 12.04. How do I resolve this error? </p>
  
  <p>Do I need to install Java 6, and if so, how do I do that?</p>