You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cranking up the size of LinkedBlockingQueueo fixes this. I've got a local copy of this fix, this issue is my "todo" reminder to submit the pr. I think moving from the 10000 below to 100000 (adding a zero) did the trick.
public class SocketLogSender implements Runnable, LogSender {
private final static Logger LOGGER2 = Logger.getLogger(SocketLogSender.class);
private final BlockingQueue<LogMessage> logsToSend = new LinkedBlockingQueue<LogMessage>(10000);
The text was updated successfully, but these errors were encountered:
+1 to make the queue size configurable (at least statically)
I wonder if in your use case we should not slow down the producer threads by using queue.put(..) instead of queue.offer(..). This could also be configurable.
When testing with 100's of SQL per second (and more), I get this message, repeatedly, in the stdout of my spring boot stdout:
2017-10-03 07:19:02.147 WARN 9934 --- [tp1768882706-66] c.s.j.logger.SocketLogSender : queue full, dropping remote log of statement
Cranking up the size of LinkedBlockingQueueo fixes this. I've got a local copy of this fix, this issue is my "todo" reminder to submit the pr. I think moving from the 10000 below to 100000 (adding a zero) did the trick.
The text was updated successfully, but these errors were encountered: