<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Interestingly I commented out
<div class="">
<div class="">#modparam("proto_tls", "trace_destination", "hid")</div>
<div class="">#modparam("proto_tls", "trace_on", 1)</div>
<div class=""><br class="">
</div>
<div class="">And now the memory errors have stopped</div>
<div class=""><br class="">
</div>
<div class="">James</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
    <br>
    <p style="font-family: Open Sans,sans-serif;">
    <b><span style="font-family: Open Sans,sans-serif; font-size:10.0pt;color:#888888">James Hogbin</span></b>
    <b><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#888888;"><br>Director</span></b>
    </p>
    <table border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://ip-sentinel.com"><IMG border="0" alt="IP Sentinel Logo" src="cid:120051209462300995@uk-mta-12.uk.mimecast.lan" ></A></td></tr></table>
                <span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222;"><br>t. <a href="tel:+442030114150" target="_blank">020 3011 4150</a><br></span><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222;">m. +44 7786910895<br></span><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222">w. <a href="https://www.ip-sentinel.com/" target="_blank">https://www.ip-sentinel.com</a><br></span><table>
                <tbody><tr>
                        </tr>
                <tr>
                        
                </tr>
                <tr>
                        
                </tr>
                <tr>
                        
                </tr>
    </tbody></table>
    <br>
    
On 12 May 2020, at 07:57, Vasilios Tzanoudakis <<a href="mailto:vasilios.tzanoudakis@voiceland.gr" class="">vasilios.tzanoudakis@voiceland.gr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi James,
<div class=""><br class="">
</div>
<div class="">Make sure you are calling those ENVs in the ExecStart like this:</div>
<div class="">ExecStart=/usr/local/opensips/sbin/opensips -m $S_MEMORY -M $P_MEMORY -P /var/run/opensips_edge.pid -f /etc/opensips/edge/opensips.cfg</div>
<div class=""><br class="">
</div>
<div class="">Regards<br clear="all" class="">
<div class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="color:rgb(102,102,102);font-stretch:normal;font-family:Arial,sans-serif;margin-bottom:3px" class="">
<div style="font-stretch:normal;line-height:18px;padding-top:5px" class=""><br class="">
<br class="">
<table style="background:rgba(0,0,0,0) none repeat scroll 0% 0%;border-collapse:collapse;border-spacing:0px;color:rgb(85,85,85);font-family:proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;border:0px none;margin:0px;padding:0px" cellspacing="0" cellpadding="0" border="0" class="">
<tbody class="">
<tr class="">
<td style="padding:0px 7px 0px 0px;border-top:0px none;border-right:3px solid rgb(51,51,51)" valign="top" class="">
<font size="2" class=""><br class="">
<br class="">
<img src="https://drive.google.com/uc?id=0B-vM3smbJoi8VnlXeGZERDVGdms" style="border:0px none;max-width:100%" width="200" height="53" class=""></font></td>
<td style="padding:0px 0px 0px 12px" class="">
<table style="border-collapse:collapse;border-spacing:0px;background:rgba(0,0,0,0) none repeat scroll 0% 0%;border:0px none;margin:0px;padding:0px" cellspacing="0" cellpadding="0" border="0" class="">
<tbody class="">
<tr class="">
<td colspan="2" style="font-family:Arial,Helvetica,sans-serif;padding-bottom:5px;color:rgb(51,51,51)" class="">
<font size="2" class="">Vasilios Tzanoudakis</font></td>
</tr>
<tr class="">
<td colspan="2" style="font-family:Arial,Helvetica,sans-serif;color:rgb(51,51,51)" class="">
<i class=""><font size="2" class="">Technology Director & Co-Founder</font></i></td>
</tr>
<tr class="">
<td colspan="2" style="font-family:Arial,Helvetica,sans-serif;color:rgb(51,51,51)" class="">
<span style="font-weight:700" class=""><font size="2" class="">VOICELAND S.A.</font></span></td>
</tr>
<tr class="">
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;width:20px;color:rgb(51,51,51)" width="20" valign="top" class="">
<font size="2" class="">p:</font></td>
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;color:rgb(51,51,51)" valign="top" class="">
<a href="tel:+30%2021%202222%208000" value="+302122228000" style="color:rgb(17,85,204)" target="_blank" class=""><font size="2" class="">+302122228000</font></a></td>
</tr>
<tr class="">
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;width:20px;color:rgb(51,51,51)" width="20" valign="top" class="">
<font size="2" class="">f:</font></td>
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;color:rgb(51,51,51)" valign="top" class="">
<a href="tel:+30%2021%202222%208001" value="+302122228001" style="color:rgb(17,85,204)" target="_blank" class=""><font size="2" class="">+302122228001</font></a></td>
</tr>
<tr class="">
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;width:20px;color:rgb(51,51,51)" width="20" valign="top" class="">
<font size="2" class="">a:</font></td>
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;color:rgb(51,51,51)" valign="top" class="">
<font size="2" class="">2, Klisthenous Str., Metamorfosi, 14452, Attica, Greece</font></td>
</tr>
<tr class="">
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;width:20px;color:rgb(51,51,51)" width="20" valign="top" class="">
<font size="2" class="">w:</font></td>
<td style="font-family:Arial,Helvetica,sans-serif;vertical-align:top;color:rgb(51,51,51)" valign="top" class="">
<font size="2" class=""><a href="http://www.voiceland.gr/" style="color:rgb(51,51,51)" target="_blank" class="">www.voiceland.gr</a>  e: <a href="mailto:vasilios.tzanoudakis@voiceland.gr" style="color:rgb(51,51,51)" target="_blank" class="">vasilios.tzanoudakis@voiceland.gr</a></font></td>
</tr>
<tr class="">
<td colspan="2" style="padding-top:5px" class=""><font size="2" class=""><a href="https://www.facebook.com/vtzan.tzanou" style="color:rgb(29,161,219);border:0px none" target="_blank" class=""><img src="http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/facebook_sig.png" style="border:medium none;width:25px;height:25px;max-width:25px;max-height:25px" width="25" height="25" class=""></a>  <a href="https://www.linkedin.com/in/vtzan/" style="color:rgb(29,161,219);border:0px none" target="_blank" class=""><img src="http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png" style="border:medium none;width:25px;height:25px;max-width:25px;max-height:25px" width="25" height="25" class=""></a></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div style="font-size:11px;padding-top:15px;font-stretch:normal;color:rgb(153,153,153)" class="">
This email communication (and any attachments) are confidential and are intended only for the individual(s) or entity named above and others who have been specifically authorized to receive it. If you are not the intended recipient, please do not read, copy,
 use or disclose the contents of this communication to others. Please notify the sender that you have received this email in error by replying to the email or by telephoning <a href="tel:+30%2021%202222%208000" value="+302122228000" style="color:rgb(17,85,204)" target="_blank" class="">+30-212-222-8000</a>.
 Please then delete the email and any copies of it. This information may be subject to legal professional or other privilege or may otherwise be protected by work product immunity or other legal rules. Thank you.</div>
<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px" class="">
<div style="font-size:12px;font-family:arial,sans-serif;margin:0px;color:rgb(0,153,0)" class="">
<b class="">Think Green // Print if only necessary</b></div>
</div>
<div style="padding-top:5px" class="">
<div class=""><span lang="EN-US" class=""> </span><br class="webkit-block-placeholder">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, May 12, 2020 at 2:07 AM James Hogbin <<a href="mailto:james@ip-sentinel.com" class="">james@ip-sentinel.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">I’m getting<br class="">
<br class="">
May 11 22:54:15 sbc opensips[11302]: May 11 22:54:15 [11338] INFO:proto_tls:tls_connect: New TLS connection to
<a href="http://52.114.75.24:5061/" target="_blank" class="">52.114.75.24:5061</a> established<br class="">
May 11 22:54:15 sbc opensips[11302]: May 11 22:54:15 [11338] ERROR:core:fm_malloc: not enough free pkg memory (524933432 bytes left, need 18446744071987018544), please increase the "-M" command line parameter!<br class="">
May 11 22:54:15 sbc opensips[11302]: May 11 22:54:15 [11338] INFO:core:fm_malloc: attempting defragmentation...<br class="">
May 11 22:54:15 sbc opensips[11302]: May 11 22:54:15 [11338] INFO:core:fm_malloc: unable to alloc a big enough fragment!<br class="">
May 11 22:54:15 sbc opensips[11302]: May 11 22:54:15 [11338] ERROR:proto_hep:add_hep_payload: no more pkg mem!<br class="">
<br class="">
It doesn’t seem to matter what I put in the /lib/systemd/system/opensips.service<br class="">
Environment=P_MEMORY=512 S_MEMORY=2048<br class="">
<br class="">
I’ve tried P_MEMORY = 32, 64, 128, 256 and now 512.<br class="">
<br class="">
I’ve tried rebooting but no difference<br class="">
<br class="">
How do I work out what’s eating the memory?<br class="">
<br class="">
James<br class="">
<br class="">
<p style="font-family:"Open Sans",sans-serif" class=""><b class=""><span style="font-family:"Open Sans",sans-serif;font-size:10pt;color:rgb(136,136,136)" class="">James Hogbin</span></b>
<b class=""><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(136,136,136)" class=""><br class="">
Director</span></b> </p>
<table border="0" cellspacing="0" cellpadding="0" class="">
<tbody class="">
<tr class="">
<td class=""><a href="http://ip-sentinel.com/" target="_blank" class=""><span id="cid:17207ab98247f8c8e1a1"><120051200064600639.png></span></a></td>
</tr>
</tbody>
</table>
<span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)" class=""><br class="">
t. <a href="tel:+442030114150" target="_blank" class="">+44 (0)20 3011 4150</a><br class="">
</span><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)" class="">m. +44 7786910895<br class="">
</span><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)" class="">w.
<a href="https://www.ip-sentinel.com/" target="_blank" class="">https://www.ip-sentinel.com</a><br class="">
</span>
<table class="">
<tbody class="">
<tr class="">
</tr>
<tr class="">
</tr>
<tr class="">
</tr>
<tr class="">
</tr>
</tbody>
</table>
<br class="">
<p style="font-family:"Open Sans",Arial,sans-serif;padding:5px;background:rgb(213,234,255)" class="">
<span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:red" class="">IP Sentinel Disclaimer
<br class="">
</span><span style="font-family: "Open Sans", sans-serif; font-size: 6pt;" class="">The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the
 e-mail or any attachment, or any information contained therein, by any other person is not authorized. Unintended recipients are prohibited from taking action on the basis of information in this e-mail. If you are not the intended recipient or have received
 this email in error, please notify the sender immediately by return email and delete the email from your computer. E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted
 or interfered with without the knowledge of the sender or the intended recipient. We do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of computer viruses or other defects. . IP Sentinel Ltd is a limited
 company registered in England and Wales under Registered Number 08648097. Registered Office: Newnhams Wood, Horsted Keynes, West Sussex, RH17 7BT.
</span></p>
<span style="font-size:1pt;color:white" class="">Q3dhRSrm_disclaimer</span> </div>
_______________________________________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" target="_blank" class="">Users@lists.opensips.org</a><br class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br class="">
</blockquote>
</div>
_______________________________________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" class="">Users@lists.opensips.org</a><br class="">
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>



 </body></html>