title: Thread is in WAITING state: java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method)
body: <p>My application is under heavy load and I am getting below logs for<br>
  <br> <code>sudo -u tomcat jstack &lt;java_process_id&gt;</code></p>
  
  <p>The below thread is consuming the messages from Kafka, and it got stuck. Since this thread is in WAITING state, no more kafka messages are being consumed.  </p>
  
  <pre><code>"StreamThread-3" #91 daemon prio=5 os_prio=0 tid=0x00007f9b5c606000 nid=0x1e4d waiting on condition [0x00007f9b506c5000]
     java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)
      - parking to wait for  &lt;0x000000073aad9718&gt; (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
      at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
      at java.util.concurrent.ArrayBlockingQueue.put(ArrayBlockingQueue.java:353)
      at ch.qos.logback.core.AsyncAppenderBase.put(AsyncAppenderBase.java:160)
      at ch.qos.logback.core.AsyncAppenderBase.append(AsyncAppenderBase.java:148)
      at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
      at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
      at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
      at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
      at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
      at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
      at ch.qos.logback.classic.Logger.error(Logger.java:538)
      at com.abc.system.solr.repo.AbstractSolrRepository.doSave(AbstractSolrRepository.java:316)
      at com.abc.system.solr.repo.AbstractSolrRepository.save(AbstractSolrRepository.java:295)
  </code></pre>
  
  <hr>
  
  <p>I also found this post 
  <a href="https://stackoverflow.com/questions/24241335/waiting-at-sun-misc-unsafe-parknative-method/26239873">WAITING at sun.misc.Unsafe.park(Native Method)</a>
  but it didn't help me in my case.<br><br>
  What else I could investigate to get more details in such case?</p>