title: Can't Connect to Elasticsearch (through Curl)
body: <p>I've recently installed Elasticsearch and everything was working well for the first few days, but somehow today it stopped working</p>
  
  <p>When I start the service, it claims to be fine...</p>
  
  <pre><code>sudo /etc/init.d/elasticsearch start
  * Starting Elasticsearch Server
  ...done.
  </code></pre>
  
  <p>But then I get<br>
  <code>curl -GET http://127.0.0.1:9200</code><br>
  <code>curl: (7) couldn't connect to host</code></p>
  
  <p>Looking at the elasticsearch logs:</p>
  
  <pre><code>[WARN ][bootstrap                ] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line
  </code></pre>
  
  <p>Looks like there is a warning regarding the Java VM; could that be the problem? What else should I try/look at?</p>