<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-7">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial size=2>We have exactly the
same problem. Openser after a few hours starts loging "out of memory" errors and
soon after that it cannot process any messages. I am using 1.2 branch from SVN
and the last export that I got was at the begining of June, the revision number
was 2333. Today I was able to catch the problem while it is happening and I did
a memory dump on the process that run out of memory (process 4197). ps shows
that this process is a receiver with id=1 and child=0. I have not restarted
the server yet, but pretty soon I will have to restart because more processes
will run out of memory. If there is some additional information (statistics,
ngrep etc) that I could gather while the server is still running, please let me
know. I don't have quick access to a public ftp site<SPAN
class=419420708-12062007>, so if someone can take a look at the log
file and the memory dump, please let me know and I
will email it (1MB)</SPAN>.</FONT></SPAN></DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial size=2>thank you for any
help.</FONT></SPAN></DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2>George</FONT></SPAN></DIV>
<DIV><SPAN class=031364407-12062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Date: Mon, 11 Jun 2007 17:52:08 +0200</FONT></DIV>
<DIV><FONT face=Arial size=2>From: Klaus Darilion
<klaus.mailinglists@pernau.at></FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [Users] Memory issues</FONT></DIV>
<DIV><FONT face=Arial size=2>To: Christian
<mailing-lists@switzernet.com></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: users@openser.org</FONT></DIV>
<DIV><FONT face=Arial size=2>Message-ID:
<466D6FA8.9010201@pernau.at></FONT></DIV>
<DIV><FONT face=Arial size=2>Content-Type: text/plain; charset=ISO-8859-1;
format=flowed</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Christian wrote:</FONT></DIV>
<DIV><FONT face=Arial size=2>> Thank you Bogdan,</FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>> For the moment I am not very sure to switch to
SVN branch (this is a </FONT></DIV>
<DIV><FONT face=Arial size=2>> production server, so every minor bug can be
dramatic)</FONT></DIV>
<DIV><FONT face=Arial size=2>SVN != unstable</FONT></DIV>
<DIV><FONT face=Arial size=2>SVN is the code repository. In the repository there
are different branches. E.g. there is</FONT></DIV>
<DIV><FONT face=Arial size=2>1.1: openser 1.1 branch</FONT></DIV>
<DIV><FONT face=Arial size=2>1.2: openser 1.2 branch</FONT></DIV>
<DIV><FONT face=Arial size=2>trunk: openser development branch</FONT></DIV>
<DIV><FONT face=Arial size=2>Thus, you should update to the 1.2 branch from SVN.
This is the currents table release with all bugfixes:</FONT></DIV>
<DIV><FONT face=Arial size=2>> But I will at least upgrade to 1.2.1 asap, and
see if the issue gets </FONT></DIV>
<DIV><FONT face=Arial size=2>> solved.</FONT></DIV>
<DIV><FONT face=Arial size=2>1.2.1 is a snapshot taken from 1.2
branch</FONT></DIV>
<DIV><FONT face=Arial size=2>regards</FONT></DIV>
<DIV><FONT face=Arial size=2>klaus</FONT></DIV>
<DIV><FONT face=Arial size=2>> The main issue here is that the memory leak
doesn't crash openser, but </FONT></DIV>
<DIV><FONT face=Arial size=2>> puts it in a state where messages are accepted
but not relayed.</FONT></DIV>
<DIV><FONT face=Arial size=2>> Shouldn't it rather send a SIP error reply
(500 I guess), so that </FONT></DIV>
<DIV><FONT face=Arial size=2>> handover on other servers gets properly
handled?</FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>> Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>> Christian</FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>> Bogdan-Andrei Iancu a écrit :</FONT></DIV>
<DIV><FONT face=Arial size=2>>> it looks like PKG memory
problem.</FONT></DIV>
<DIV><FONT face=Arial size=2>>> Christian, try to update to the latest 1.2
version from SVN and see </FONT></DIV>
<DIV><FONT face=Arial size=2>>> if the problem disappears - there were
some pkg mem leak fixed </FONT></DIV>
<DIV><FONT face=Arial size=2>>> since the 1.2 release.</FONT></DIV>
<DIV><FONT face=Arial size=2>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>> regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>>> bogdan</FONT></DIV>
<DIV><FONT face=Arial size=2>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>> Klaus Darilion wrote:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> </FONT><A
title=http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory
href="http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory"><U
title=http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory><FONT
title=http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory
color=#0000ff><FONT
title=http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory face=Arial
size=2>http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory</FONT></U></FONT></A></DIV>
<DIV><FONT face=Arial size=2>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>> Make sure to use newest 1.2 (make a
SVN checkout of /branches/1.2/ )</FONT></DIV>
<DIV><FONT face=Arial size=2>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>> regards</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> klaus</FONT></DIV>
<DIV><FONT face=Arial size=2>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>> Christian wrote:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> I have a recurrent memory problem
with openser 1.2.0. In this case </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> it only acts as a SIP router. No
registration, accounting etc. and </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> only approx. 20 simultaneous
calls.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Here is the problem: everything
works fine (calls from/to PSTN </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> through different SIP servers),
but after a few days, "out of </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> memory" errors start to occur.
After this, calls don't work </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> anymore, even if openser continues
to run.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Here is a part of the log, showing
the first errors:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:25:43 localhost
SER[27772]: ERROR: </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:25:43 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:tm:relay_reply:
no mem for outbound reply buffer </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:25:43 localhost
SER[27772]: ERROR: via_builder: out of </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> memory Jun 5 17:25:43 localhost
SER[27772]: ERROR: build_local: no </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> via header got from builder Jun 5
17:25:43 localhost SER[27772]: </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> ERROR: attempt to build a CANCEL
failed Jun 5 17:25:50 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:25:50 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:tm:relay_reply:
no mem for outbound reply buffer </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:25:50 localhost
SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_req: out of
memory ; needs 410 Jun 5 </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 17:26:11 localhost SER[27772]:
ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:26:11 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:tm:relay_reply:
no mem for outbound reply buffer </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:26:11 localhost
SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_req: out of
memory ; needs 404 Jun 5 </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 17:26:25 localhost SER[27772]:
eval_elem: no more memory Jun 5 </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 17:26:25 localhost SER[27772]:
do_assign: no value in right </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> expression Jun 5 17:26:25
localhost SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:26:25 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:tm:relay_reply:
no mem for outbound reply buffer </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:26:25 localhost
SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_req: out of
memory ; needs 420 Jun 5 </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 17:26:25 localhost SER[27771]:
ERROR:forward_reply: no 2nd via </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> found in reply Jun 5 17:26:31
localhost SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:26:31 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:forward_reply:
building rpl from req failed Jun </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 5 17:26:33 localhost SER[27772]:
ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_res: out of
mem Jun 5 17:26:33 localhost </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SER[27772]: ERROR:forward_reply:
building rpl from req failed Jun </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 5 17:26:38 localhost SER[27772]:
ERROR: insert_new_lump_after:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> out of memory</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:26:38 localhost
SER[27772]: ERROR: insert_new_lump_before: </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> out of memory</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:26:38 localhost
SER[27772]: insert_RR(): Error while </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> inserting conditional lump Jun 5
17:26:38 localhost SER[27772]: </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> ERROR: subst_str:
mem.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> allocation error
(res->s)</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Jun 5 17:26:38 localhost
SER[27772]: ERROR: do_action: memory </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> allocation failure Jun 5 17:26:38
localhost SER[27772]: ERROR:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> build_res_buf_from_sip_req: out of
memory ; needs 375 Jun 5 </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> 17:26:38 localhost SER[27772]:
ERROR: mk_proxy: memory allocation </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> failure Jun 5 17:26:38 localhost
SER[27772]: </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>>
ERROR:tm:t_forward_nonack:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> failure to add
branches</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> At this point, similar errors
continue to appear and the only way </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> to recover is to restart
openser.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Nothing unusual seems to cause the
initial error. The output of </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> "top" appears to be fine after the
"crash", and there is still </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> plenty free memory on the
server.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Could anybody give me some hints
on how to solve the problem? I </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> suspect a portion of the config
file where the record-route headers </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> are split on multiple lines (for
compatibility issues with another </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> SIP proxy). It's the only place
where variables are used. You can </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> find it here:</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> </FONT><A
title=http://switzernet.com/people/christian-lathion/files/070605-openser
href="http://switzernet.com/people/christian-lathion/files/070605-openser"><U
title=http://switzernet.com/people/christian-lathion/files/070605-openser><FONT
title=http://switzernet.com/people/christian-lathion/files/070605-openser
color=#0000ff><FONT
title=http://switzernet.com/people/christian-lathion/files/070605-openser
face=Arial
size=2>http://switzernet.com/people/christian-lathion/files/070605-openser</FONT></U></FONT></A></DIV>
<DIV><FONT face=Arial size=2>>>>> -config-part.txt</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Otherwise the config file is quite
usual, with basic processing and </FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> routing of SIP
packets.</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Christian</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>>
_______________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Users mailing list</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> Users@openser.org</FONT></DIV>
<DIV><FONT face=Arial size=2>>>>> </FONT><A
title=http://openser.org/cgi-bin/mailman/listinfo/users
href="http://openser.org/cgi-bin/mailman/listinfo/users"><U
title=http://openser.org/cgi-bin/mailman/listinfo/users><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users color=#0000ff><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users face=Arial
size=2>http://openser.org/cgi-bin/mailman/listinfo/users</FONT></U></FONT></A></DIV>
<DIV><FONT face=Arial size=2>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>
_______________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> Users mailing list</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> Users@openser.org</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> </FONT><A
title=http://openser.org/cgi-bin/mailman/listinfo/users
href="http://openser.org/cgi-bin/mailman/listinfo/users"><U
title=http://openser.org/cgi-bin/mailman/listinfo/users><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users color=#0000ff><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users face=Arial
size=2>http://openser.org/cgi-bin/mailman/listinfo/users</FONT></U></FONT></A></DIV>
<DIV><FONT face=Arial size=2>>>></FONT></DIV>
<DIV><FONT face=Arial size=2>>></FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT></DIV>
<DIV><FONT face=Arial size=2>>
_______________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>> Users mailing list</FONT></DIV>
<DIV><FONT face=Arial size=2>> Users@openser.org</FONT></DIV>
<DIV><FONT face=Arial size=2>> </FONT><A
title=http://openser.org/cgi-bin/mailman/listinfo/users
href="http://openser.org/cgi-bin/mailman/listinfo/users"><U
title=http://openser.org/cgi-bin/mailman/listinfo/users><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users color=#0000ff><FONT
title=http://openser.org/cgi-bin/mailman/listinfo/users face=Arial
size=2>http://openser.org/cgi-bin/mailman/listinfo/users</FONT></U></FONT></A></DIV><FONT
face=Arial size=2>
<DIV> </DIV></FONT></DIV></BODY><!--[object_id=#altectelecoms.gr#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<H1><FONT face="Arial Greek" color=#c0c0c0 size=2><SPAN lang=EN-GB>Disclaimer</SPAN></FONT></H1>
<P class=MsoNormal style="MARGIN: 5pt 0cm; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are </SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US">the</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US"> intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">guaranteed to be secure or error-free as information could be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.</SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></FONT></FONT></HTML>