<div dir="ltr">Hi,<div><br><div>I am using syslog-ng version 3.6.2:<br><br>syslog-ng --version<br>syslog-ng 3.6.2<br>Installer-Version: 3.6.2<br>Revision: <br>Compile-Date: May  2 2019 01:20:32<br>Available-Modules: afmongodb,afstomp,afuser,csvparser,afprog,afamqp,cryptofuncs,afsocket,graphite,dbparser,affile,syslogformat,afsocket-notls,system-source,confgen,pseudofile,linux-kmsg-format,basicfuncs<br>Enable-Debug: off<br>Enable-GProf: off<br>Enable-Memtrace: off<br>Enable-IPv6: on<br>Enable-Spoof-Source: off<br>Enable-TCP-Wrapper: off<br>Enable-Linux-Caps: off<br><br><br>I initialised syslog-ng with the following configuration:<br><br>int initialize_engine(const gchar* filename, const gchar* _module_path)<br>{<br>  module_path = _module_path;<br>  app_startup();<br>  msg_init(TRUE);<br><br>  configuration = cfg_new(0x0302);<br>  plugin_load_module("basicfuncs", configuration, NULL);<br>  plugin_load_module("syslogformat", configuration, NULL);<br><br>  pattern_db_global_init();<br>  return 0;<br>  }<br><br>  int reload_pattern_db(const gchar* filename, key_value_cb cb)<br>{<br>  if(patterndb!= NULL){<br>    pattern_db_free(patterndb);<br>  }<br>  patterndb = pattern_db_new();<br>  pattern_db_reload_ruleset(patterndb, configuration, filename);<br>  pattern_db_set_emit_func(patterndb, pdbtool_pdb_emit_accumulate, cb);<br>  return 0;<br>}<br><br>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.<br>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 ?<br><br>Thanks,</div><div>Nitish<br><br></div></div></div>