[syslog-ng] syslog-ng with sqlite 100% cpu
balazs.scheidler at balabit.com
Tue Feb 14 15:53:45 UTC 2017
It might be because of transaction size. Sqlite is very inefficient if the
transaction size is small.
Newer syslog-ng versions support batching, set flush-lines to something
like 100 and it would improve a lot.
On Feb 14, 2017 06:31, "Fekete, Róbert" <robert.fekete at balabit.com> wrote:
> It is not normal, it might be a bug. However, version 3.2 is ancient, I'd
> recommend upgrading to a newer version. You can find release tarballs on
> github, or links to binaries here: https://syslog-ng.org/
> On Tue, Feb 14, 2017 at 3:19 PM, work ran <work.greeran at gmail.com> wrote:
>> i am running syslog-ng with sqlite
>> i am sending 50 logs per second and i am getting 80% cpu usage.
>> could someone tell me how i can fix this or is it normal
>> syslog-ng 3.2.5
>> Installer-Version: 3.2.5
>> Revision: ssh+git://firstname.lastname@example.org//var/scm/git/syslog-ng/syslog-ng
>> Compile-Date: Jul 25 2014 15:20:50
>> Enable-Threads: on
>> Enable-Debug: off
>> Enable-GProf: off
>> Enable-Memtrace: off
>> Enable-Sun-STREAMS: off
>> Enable-IPv6: on
>> Enable-Spoof-Source: on
>> Enable-TCP-Wrapper: on
>> Enable-SSL: off
>> Enable-SQL: on
>> Enable-Linux-Caps: off
>> Enable-Pcre: on
>> Enable-Pacct: off
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation: http://www.balabit.com/support/documentation/?product=
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the syslog-ng