<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    EvictionTimer Thread disapears with no log - nodeEventQueue_ growth to 100%
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/redbox">Redbox Capgemini</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/573426#573426">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It's been two weeks that I have a problem with the jboss cache library.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I don't know why but it seems that one of my <strong>EvictionTimer's Thread</strong> just disapears without logging anything.</p><p>Normally, this thread has to empty an nodeEventQueue_ (BoundedLinkedQueue class) every N seconds.</p><p>This queue reaches 100% occupation (static int <strong>200 000</strong>) and then, all the threads of my application are <strong>blocked </strong>due to the fact that one thread tries to put an event in this already full queue and is stuck in the <strong>Timed_Waiting</strong> status.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This things appears several time per day, I can see that the thread is working by checking his log and sometimes, it just stops logging and if I do a Thread Dump, the thread is no more in the Thread Dump. I have noticed that each day I have the problem, this is always the&#160; same thread that disapears (in my cas Timer-10).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've tried to tune my log4j to log some INFO and WARN but I didn't get anything interesting so far.</p><p>I've tried to put a Try Catch (RunTimeException) in the Run() method of&#160; the EvictionTimerTask but it didn't catch anything.</p><p><span style="text-decoration: underline;"><br/></span></p><p><span style="color: #333333; text-decoration: underline; ">Stack of the thread that wants to put an event in this full queue :</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thread: http-0.0.0.0-8080-4 : priority:5, demon:true, threadId:1800, threadState:WAITING, lockName:EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue@249c4a</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; java.lang.Object.wait(Native Method)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; java.lang.Object.wait(Object.java:485)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue.put(BoundedLinkedQueue.java:303)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.eviction.Region.putNodeEvent(Region.java:141)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.EvictionInterceptor.doEventUpdatesOnRegionManager(EvictionInterceptor.java:149)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.EvictionInterceptor.updateNode(EvictionInterceptor.java:122)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.EvictionInterceptor.invoke(EvictionInterceptor.java:97)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:206)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:379)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:174)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:138)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5919)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Do you have any ideas why the EvictionTimer Thread just stop working ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Jboss : 4.2.3 GA</strong></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/573426#573426">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>