|
List Info
Thread: org.jboss.util.threadpool.BasicThreadPool issue
|
|
| org.jboss.util.threadpool.BasicThreadPo
ol issue |

|
2007-09-11 09:57:51 |
Adrian,
with some progressive changes in my AS5 trunk workspace,
while
running one of the tests in the test suite, the server log
is filling up
with the following exception (it is reaching something like
800MB in log
size)
=================
2007-09-11 09:40:10,843 DEBUG
[org.jboss.util.threadpool.BasicThreadPool] Timeou
t monitor saw unexpected error
java.util.NoSuchElementException
at
java.util.AbstractQueue.remove(AbstractQueue.java:80)
at
org.jboss.util.threadpool.BasicThreadPool.getNextTimeout(Bas
icThreadPool.java:475)
at
org.jboss.util.threadpool.BasicThreadPool$TimeoutMonitor.run
(BasicThreadPool.java:593)
at java.lang.Thread.run(Thread.java:595)
=====================
I am still checking why this issue is happening. But I see
that you are
making use of a PriorityQueue and whose remove is supposed
to be safe
from any exception.
Regards,
Anil
_______________________________________________
jboss-development mailing list
jboss-development lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
|
|
| Re:
org.jboss.util.threadpool.BasicThreadPoo
l issue |

|
2007-09-11 10:24:02 |
I'm not making use of anything, Scott wrote this code.
The issue looks to be related to the conversion
of the code from using Heap (which returns null when empty)
to PriorityQueue.
http://vie
wvc.jboss.org/cgi-bin/viewvc.cgi/common/common-core/trunk/sr
c/main/java/org/jboss/util/threadpool/BasicThreadPool.java?v
iew=diff&r1=2390&r2=2391
Contrary to your comment, PriorityQueue throws an Exception
when empty on the remove() as opposed to remove(Object):
http://java.sun.com/j2se/1.5.0/docs/a
pi/java/util/AbstractQueue.html#remove()
A simple check for isEmpty() and return null
(assuming the code is already thread safe) should stop the
logging?
On Tue, 2007-09-11 at 09:57 -0500, Anil Saldhana wrote:
> Adrian,
> with some progressive changes in my AS5 trunk
workspace, while
> running one of the tests in the test suite, the server
log is filling up
> with the following exception (it is reaching something
like 800MB in log
> size)
> =================
> 2007-09-11 09:40:10,843 DEBUG
> [org.jboss.util.threadpool.BasicThreadPool] Timeou
> t monitor saw unexpected error
> java.util.NoSuchElementException
> at
java.util.AbstractQueue.remove(AbstractQueue.java:80)
> at
>
org.jboss.util.threadpool.BasicThreadPool.getNextTimeout(Bas
icThreadPool.java:475)
> at
>
org.jboss.util.threadpool.BasicThreadPool$TimeoutMonitor.run
(BasicThreadPool.java:593)
> at java.lang.Thread.run(Thread.java:595)
>
> =====================
>
> I am still checking why this issue is happening. But I
see that you are
> making use of a PriorityQueue and whose remove is
supposed to be safe
> from any exception.
>
> Regards,
> Anil
>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Chief Scientist
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
jboss-development mailing list
jboss-development lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
|
|
| Re:
org.jboss.util.threadpool.BasicThreadPoo
l issue |

|
2007-09-11 10:38:16 |
Sorry to have pointed at you. Scott has a nice comment
also:
-------
/**
* A basic thread pool.
* TODO: this port to jdk concurrent still needs to be
tested.
*
* author <a href="mailto:adrian jboss.org">Adrian Brock</a>
* author Scott.Stark jboss.org
* version $Revision$
*/
-------
A combination of head, tail, cat, vi were needed to see
through the maze
of the logging - 900MB of server.log is not easy to deal
with.
So should I make the fix to this class and do a snapshot
release for
common-core? What should it be 2.2.2-SNAPSHOT?
Adrian wrote:
> I'm not making use of anything, Scott wrote this code.
>
> The issue looks to be related to the conversion
> of the code from using Heap (which returns null when
empty)
> to PriorityQueue.
> http://vie
wvc.jboss.org/cgi-bin/viewvc.cgi/common/common-core/trunk/sr
c/main/java/org/jboss/util/threadpool/BasicThreadPool.java?v
iew=diff&r1=2390&r2=2391
>
> Contrary to your comment, PriorityQueue throws an
Exception
> when empty on the remove() as opposed to
remove(Object):
> http://java.sun.com/j2se/1.5.0/docs/a
pi/java/util/AbstractQueue.html#remove()
>
> A simple check for isEmpty() and return null
> (assuming the code is already thread safe) should stop
the logging?
>
> On Tue, 2007-09-11 at 09:57 -0500, Anil Saldhana
wrote:
>
>> Adrian,
>> with some progressive changes in my AS5 trunk
workspace, while
>> running one of the tests in the test suite, the
server log is filling up
>> with the following exception (it is reaching
something like 800MB in log
>> size)
>> =================
>> 2007-09-11 09:40:10,843 DEBUG
>> [org.jboss.util.threadpool.BasicThreadPool] Timeou
>> t monitor saw unexpected error
>> java.util.NoSuchElementException
>> at
java.util.AbstractQueue.remove(AbstractQueue.java:80)
>> at
>>
org.jboss.util.threadpool.BasicThreadPool.getNextTimeout(Bas
icThreadPool.java:475)
>> at
>>
org.jboss.util.threadpool.BasicThreadPool$TimeoutMonitor.run
(BasicThreadPool.java:593)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> =====================
>>
>> I am still checking why this issue is happening.
But I see that you are
>> making use of a PriorityQueue and whose remove is
supposed to be safe
>> from any exception.
>>
>> Regards,
>> Anil
>>
_______________________________________________
jboss-development mailing list
jboss-development lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
|
|
| Re:
org.jboss.util.threadpool.BasicThreadPoo
l issue |

|
2007-09-11 10:41:08 |
Yea, move it to 2.2.2-snapshot, as we may be having more
fixes in common-core.
Anil Saldhana wrote:
> Sorry to have pointed at you. Scott has a nice comment
also:
> -------
>
> /**
> * A basic thread pool.
> * TODO: this port to jdk concurrent still needs to be
tested.
> *
> * author <a href="mailto:adrian jboss.org">Adrian Brock</a>
> * author Scott.Stark jboss.org
> * version $Revision$
> */
> -------
>
>
> A combination of head, tail, cat, vi were needed to see
through the maze
> of the logging - 900MB of server.log is not easy to
deal with.
>
> So should I make the fix to this class and do a
snapshot release for
> common-core? What should it be 2.2.2-SNAPSHOT?
>
>
> Adrian wrote:
>> I'm not making use of anything, Scott wrote this
code.
>>
>> The issue looks to be related to the conversion
>> of the code from using Heap (which returns null
when empty)
>> to PriorityQueue.
>> http://vie
wvc.jboss.org/cgi-bin/viewvc.cgi/common/common-core/trunk/sr
c/main/java/org/jboss/util/threadpool/BasicThreadPool.java?v
iew=diff&r1=2390&r2=2391
>>
>>
>> Contrary to your comment, PriorityQueue throws an
Exception when empty
>> on the remove() as opposed to remove(Object):
>> http://java.sun.com/j2se/1.5.0/docs/a
pi/java/util/AbstractQueue.html#remove()
>>
>>
>> A simple check for isEmpty() and return null
>> (assuming the code is already thread safe) should
stop the logging?
>>
>> On Tue, 2007-09-11 at 09:57 -0500, Anil Saldhana
wrote:
>>
>>> Adrian,
>>> with some progressive changes in my AS5
trunk workspace, while
>>> running one of the tests in the test suite, the
server log is filling
>>> up with the following exception (it is reaching
something like 800MB
>>> in log size)
>>> =================
>>> 2007-09-11 09:40:10,843 DEBUG
>>> [org.jboss.util.threadpool.BasicThreadPool]
Timeou
>>> t monitor saw unexpected error
>>> java.util.NoSuchElementException
>>> at
java.util.AbstractQueue.remove(AbstractQueue.java:80)
>>> at
>>>
org.jboss.util.threadpool.BasicThreadPool.getNextTimeout(Bas
icThreadPool.java:475)
>>>
>>> at
>>>
org.jboss.util.threadpool.BasicThreadPool$TimeoutMonitor.run
(BasicThreadPool.java:593)
>>>
>>> at
java.lang.Thread.run(Thread.java:595)
>>>
>>> =====================
>>>
>>> I am still checking why this issue is
happening. But I see that you
>>> are making use of a PriorityQueue and whose
remove is supposed to be
>>> safe from any exception.
>>>
>>> Regards,
>>> Anil
>>>
> _______________________________________________
> jboss-development mailing list
> jboss-development lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
_______________________________________________
jboss-development mailing list
jboss-development lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-develop
ment
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|