[syslog-ng] Memory not freeing up in syslog-ng-3.6.2 during reload

Nitish Saboo nitish.saboo55 at gmail.com
Tue Jan 7 09:05:43 UTC 2020


Hi,

I am using syslog-ng version 3.6.2:

syslog-ng --version
syslog-ng 3.6.2
Installer-Version: 3.6.2
Revision:
Compile-Date: May  2 2019 01:20:32
Available-Modules:
afmongodb,afstomp,afuser,csvparser,afprog,afamqp,cryptofuncs,afsocket,graphite,dbparser,affile,syslogformat,afsocket-notls,system-source,confgen,pseudofile,linux-kmsg-format,basicfuncs
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: off
Enable-TCP-Wrapper: off
Enable-Linux-Caps: off


I initialised syslog-ng with the following configuration:

int initialize_engine(const gchar* filename, const gchar* _module_path)
{
  module_path = _module_path;
  app_startup();
  msg_init(TRUE);

  configuration = cfg_new(0x0302);
  plugin_load_module("basicfuncs", configuration, NULL);
  plugin_load_module("syslogformat", configuration, NULL);

  pattern_db_global_init();
  return 0;
  }

  int reload_pattern_db(const gchar* filename, key_value_cb cb)
{
  if(patterndb!= NULL){
    pattern_db_free(patterndb);
  }
  patterndb = pattern_db_new();
  pattern_db_reload_ruleset(patterndb, configuration, filename);
  pattern_db_set_emit_func(patterndb, pdbtool_pdb_emit_accumulate, cb);
  return 0;
}

When I reload the syslog-ng, the memory keeps on increasing.Looks like
syslog-ng is not freeing up the memory.It continues to occupy the memory
unless the process is restarted.
Just want to understand if it is a sign of memory leak or default behavior
of syslog-ng to not free-up memory during reload ?

Thanks,
Nitish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200107/b2adc3f4/attachment.html>


More information about the syslog-ng mailing list