Skip to content

Commit e59fbe1

Browse files
authored
Use LiteBlockingWaitStrategy (#319)
With multiple threads involved, the disruptor's BlockingWaitStrategy causes quite some contention when signalling the publish of a new sequence
1 parent e6de679 commit e59fbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apm-agent-core/src/main/java/co/elastic/apm/report/ApmServerReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Thread newThread(Runnable r) {
8989
thread.setName("apm-reporter");
9090
return thread;
9191
}
92-
}, ProducerType.MULTI, PhasedBackoffWaitStrategy.withLock(1, 10, TimeUnit.MILLISECONDS));
92+
}, ProducerType.MULTI, PhasedBackoffWaitStrategy.withLiteLock(1, 10, TimeUnit.MILLISECONDS));
9393
this.reportingEventHandler = reportingEventHandler;
9494
disruptor.setDefaultExceptionHandler(new IgnoreExceptionHandler());
9595
disruptor.handleEventsWith(this.reportingEventHandler);

0 commit comments

Comments
 (0)