<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi again,<br>
<br>
I missed the part where you said you increased the private memory to
100M :) . <br>
The dr_reload command fetches one chunk at a time - you can modify
the number of rows fetched by setting fetch_rows parameter in
dr_module .But there could also be a leak if you say that this
happens after a couple of reloads. <br>
I suggest you to do a monitoring of the private memory for the FIFO
process. You can use the following command:<br>
<br>
<i>opensipsctl fifo get_statistics pkmem: | grep pkmem:1-</i><br>
<br>
and run this with a script and collect the data. <br>
You can also use OpenSIPS-CP to monitor the pkgmem_real_used
statistic.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
OpenSIPS Developer</pre>
<br>
<br>
On 04/21/2011 04:56 PM, thrillerbee wrote:
<blockquote
cite="mid:BANLkTi=MNNK=1Tu=epkfEPEQB+KJm5aCdw@mail.gmail.com"
type="cite">
<div>I'm trying to track down the source of the following errors
in syslog:</div>
<div><br>
</div>
<div>/usr/local/sbin/opensips[25490]: WARNING:core:fm_malloc: Not
enough free memory, will atempt defragmenation </div>
<div>
/usr/local/sbin/opensips[25490]: ERROR:core:db_allocate_rows: no
memory left </div>
<div>/usr/local/sbin/opensips[25490]:
ERROR:db_postgres:db_postgres_convert_rows: no private memory
left</div>
<div><br>
</div>
<div>What makes this even more unusual is that it will print these
errors at almost exactly 30-min intervals for several hours and
then just stop. For example, last night, it printed the above
errors at:</div>
<div>23:56:00</div>
<div>00:26:08</div>
<div>00:56:08</div>
<div>01:26:03</div>
<div>01:56:05</div>
<div>02:26:03</div>
<div>02:56:01</div>
<div>03:26:02</div>
<div>and then it stopped...</div>
<div><br>
</div>
<div>I see no errors in postgresql logs and I haven't yet found
any issues with the actual performance of OpenSIPS. I have
increased private memory to 100MB and continue to see this
randomly. This OpenSIPS instance is using drouting module with
about 16,000 lines in the dr_rules table.</div>
<div><br>
</div>
<div>Any advice would be appreciated to help narrow down the
source of these messages.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ryan</div>
<br>
</blockquote>
<br>
</body>
</html>