Skip to content

Commit

Permalink
FLUME-681: high msg rate syslogTcpThreadSource threads can lead to OOM
Browse files Browse the repository at this point in the history
- Put limit on queue.
  • Loading branch information
chetan authored and Jonathan Hsieh committed Jul 1, 2011
1 parent bef14eb commit c266dd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class SyslogTcpSourceThreads extends EventSource.Base {

final public static int SYSLOG_TCP_PORT = 514;
final int port;
final LinkedBlockingQueue<Event> eventsQ = new LinkedBlockingQueue<Event>();
final LinkedBlockingQueue<Event> eventsQ = new LinkedBlockingQueue<Event>(100000);
final List<ReaderThread> readers = Collections
.synchronizedList(new ArrayList<ReaderThread>());
final AtomicLong rejects = new AtomicLong();
Expand Down

0 comments on commit c266dd8

Please sign in to comment.