Skip to content

Commit 82a0e7f

Browse files
committed
engine: fix high memory usage in FluentLogEventRouter
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 8769b57 commit 82a0e7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/fluent/engine.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ def now
153153

154154
def run
155155
begin
156+
@fluent_log_event_router.start
157+
156158
$log.info "starting fluentd worker", pid: Process.pid, ppid: Process.ppid, worker: worker_id
157159
@root_agent_mutex.synchronize do
158160
start
159161
end
160162

161-
@fluent_log_event_router.start
162-
163163
$log.info "fluentd worker is now running", worker: worker_id
164164
sleep MAINLOOP_SLEEP_INTERVAL until @engine_stopped
165165
$log.info "fluentd worker is now stopping", worker: worker_id

0 commit comments

Comments
 (0)