<div dir="ltr">Hi Team, I&#39;ve found an issue when I reload regular expresion file for opensips 1.11.5.<div><br></div><div>After executing a few &quot;opensipsctl fifo regex_reload&quot;, the fifo process runs out of pkmem. This is a small loop where I do a regex_reload and then I print the pkmem for MI FIFO processs:</div><div><br></div><div><div>root@toro:~# sudo -u gc /home/gc/local/opensips/sbin/opensipsctl fifo ps | grep &quot;ID=4 &quot;</div><div>Process::  ID=4 PID=11040 Type=MI FIFO</div><div>root@toro:~# while [ 1 -eq 1 ] ; do sudo -u gc /home/gc/local/opensips/sbin/opensipsctl fifo regex_reload; sudo -u gc /home/gc/local/opensips/sbin/opensipsctl fifo get_statistics pkmem: |grep &quot;pkmem:4-free_size::&quot;  ; done</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 3353184</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 1466776</div><div>pkmem:4-free_size:: 140696</div><div>500 Server Internal Error</div><div>pkmem:4-free_size:: 140696</div><div>500 Server Internal Error</div><div>pkmem:4-free_size:: 140696</div><div>500 Server Internal Error</div><div>pkmem:4-free_size:: 140696</div><div>500 Server Internal Error</div><div>^C</div><div>root@toro:~#</div><div><br></div><div>For the following regex_reload commands the error in the syslog file is this :</div><div><br></div><div><div>2015-09-04T11:56:05.645485-03:00 toro /home/gc/local/opensips/sbin/opensips[11040]: ERROR:regex:load_pcres: no more memory for patterns[11]</div><div>2015-09-04T11:56:05.645567-03:00 toro /home/gc/local/opensips/sbin/opensips[11040]: ERROR:regex:mi_pcres_reload: failed to reload pcres</div></div><div><br></div><div>The only way to recover from this is to restart opensips.</div><div><br></div><div>I&#39;ve pasted the syslog (compiled with DBG_QM_MALLOC option) when the command is succesfull: <a href="http://pastebin.com/VnMZrYrh" target="_blank">http://pastebin.com/VnMZrYrh</a></div></div><div><br></div><div><br></div><div>I tyied to increase the pkmem for the process, but sooner or later the error came up</div><div><br></div><div>Thanks in advance!</div><div>Federico</div><div><br></div><div><br></div></div>