title: LinkedBlockingQueue alternatives for JDK 6
body: <p>I am using <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/LinkedBlockingQueue.html" rel="nofollow">LinkedBlockingQueue</a> for my threadPool </p>
  
  <pre><code>new ThreadPoolExecutor(20, 
                         21, 
                         10,
                         TimeUnit.SECONDS, 
                         new LinkedBlockingQueue&lt;Runnable&gt;())
  </code></pre>
  
  <p>and i suffer from the memory leak <a href="http://bugs.sun.com/view_bug.do?bug_id=6805775" rel="nofollow">Bug</a> (the memory is full of LinkedBlockingQueue Nodes , slowing down gradually), which is fixed in JDK 7. </p>
  
  <p>I dont want to change the run time environment or my JDK for now.</p>
  
  <p>LinkedBlockingQueue has no size limit , unlike the other implementations of BlockingQueue Interface. Can you suggest any alternative queue ? </p>