directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Hoffstaette" <>
Subject Warning: serious VM leak/bug with BlockingQueue & polling timeouts
Date Wed, 22 Nov 2006 16:30:01 GMT
[sorry if this is a duplicate - the first one did not seem to make it?]

Here's a heads up for those of you who have the Mina source handy to check.

Both JDK 1.5 and 1.6 have serious confirmed bugs that leak unreclaimable
memory and will bring *idle* servers down, e.g. during the night or over
the weekend when load is low or nonexistent. For more information see and related.

In a nutshell BlockingQueue.poll(duration, TimeUnit) will leak *when that
wait times out*; it will not leak when something is returned from the
queue, as is the case with uninterrupted non-timed polling.

The bug is confirmed and serious because it triggers extremely nasty GC
panic that has the potential to bring the whole machine down due to
excessive CPU spinning and unresponsiveness of the VM to external signals.

I think it would be good if someone with the source would do a quick "find
all references to method" to see if and how Mina is affected by this. I
would not be surprised if this is the reason behind some reported leaks -
polling with timeout is extremely useful for service scheduling in various
forms and generally preferrable to complete blocking.

hope this helps :)

View raw message