Limit the size of queues

Description

In various parts of Openfire, queues are in use to (temporarily) store data (often Packets). If a bug is introduced where those queues aren't emptied, a memory leak occurs.

Queues should all get a defined capacity, smaller than the maximum integer value. The capacity should be set in such a way that it will not be reached under extreme, but valid circumstances.

If a queue reaches capacity (runtime) exceptions will be thrown and logged, which will make the source of the problem very visible.

Environment

None

Activity

Show:

Guus der Kinderen November 7, 2009 at 6:47 PM

Most of the BlockingQueues in use have now been capped at 10,000 elements.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 7, 2009 at 5:56 PM
Updated February 1, 2010 at 3:15 AM
Resolved January 3, 2010 at 1:15 AM