title: Elasticsearch error to start service
body: <p>I have problems starting elasticsearch, the command to start is:</p>
  
  <p><code>cd /etc/init.d &amp;&amp; ./elasticsearch start</code></p>
  
  <p>Out put.</p>
  
  <pre><code>/opt/jdk1.8.0_77 uno
  JAVA /opt/jdk1.8.0_77/bin/java
  Starting elasticsearch:                                    [  OK  ]
  </code></pre>
  
  <p>but executed status I get: "<em>elasticsearch dead but subsys locked</em>"</p>
  
  <p>I tried deleting "elasticsearch", in /var/lock/subsys but, this file is generated again.</p>
  
  <p>In the log says.</p>
  
  <pre><code>java.lang.RuntimeException: Java version: 1.7.0_40 suffers from critical bug https://bugs.openjdk.java.net/browse/JDK-8024830 which can cause data corruption.
  Please upgrade the JVM, see http://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html for current recommendations.
  If you absolutely cannot upgrade, please add -XX:-UseSuperWord to the JVM_OPTS environment variable.
  Upgrading is preferred, this workaround will result in degraded performance.
  </code></pre>
  
  <p>But the process is started with java 8,</p>
  
  <pre><code>elasticsearch      26918  0.8  1.0 30526952 724324 ?     Sl   Jul03   1:29 /opt/jdk1.8.0_77/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Delasticsearch -Des.foreground=yes -Des.path.home=/opt/elasticsearch -cp :/opt/elasticsearch/lib/elasticsearch-1.7.0.jar:/opt/elasticsearch/lib/*:/opt/elasticsearch/lib/sigar/* org.elasticsearch.bootstrap.Elasticsearch
  </code></pre>
  
  <p>Any help would be appreciated.</p>