tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

Session variable leak in in_secure_forward #11

Closed tagomoris closed 9 years ago

tagomoris commented 9 years ago

Session instances should be removed from @sessions after it is expired or disconnected. https://github.com/tagomoris/fluent-plugin-secure-forward/blob/master/lib/fluent/plugin/in_secure_forward.rb#L194

It makes memory leak in short keep-alive time configuration.

ghost commented 9 years ago

更新されたソース (in_secure_forward.rb input_session.rb) にて 11/05 3:00, 6:00, 9:00 の三回にわけ、数百万レコードの送信試験を行いました。

そのときの受信側サーバ機の mrtg グラフを添付させて頂きました。

以前あったような残スワップ量の減少が発生しなくなりました。 ご対応頂きありがとうございました。

[CPU] 127 0 0 1_cpu-day

[MEMORY] 127 0 0 1_mem-day

tagomoris commented 9 years ago

Thank you for testing! I'll release this commit as next version.

tagomoris commented 9 years ago

Fixed at ef55aa4d2867d94b4a7599032f730968bc143cc2 and released as v0.2.4.