From 6354da0f49b56225f204fd653ba1d7218250982b Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 6 Jun 2023 09:18:45 +0200 Subject: [PATCH] seems to work well with 4 workers... consider to add to 1.6 --- .../session/impl/SEBClientEventBatchService.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java index 1a2d8f76..3a3852b0 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java @@ -135,9 +135,9 @@ public class SEBClientEventBatchService { private void processEvents(final String workerName, final Collection events) { long start = 0L; - //if (log.isDebugEnabled()) { - start = Utils.getMillisecondsNow(); - //} + if (log.isDebugEnabled()) { + start = Utils.getMillisecondsNow(); + } final int size = this.eventDataQueue.size(); if (size > 1000) { @@ -182,10 +182,6 @@ public class SEBClientEventBatchService { size, start - Utils.getMillisecondsNow()); } - log.info("SEBClientEventBatchService worker {} processes batch of size {} in {} ms", - workerName, - size, - start - Utils.getMillisecondsNow()); } catch (final Exception e) { log.error("Failed to process SEB events from eventDataQueue: ", e);