<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Ok <font style="font-size:11pt" face="Calibri, sans-serif" color="#000000">Răzvan</font>.</p>
<p><br>
</p>
<p>Thank you very much!</p>
<p>I will take a look.</p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> Users <users-bounces@lists.opensips.org> em nome de Răzvan Crainea <razvan@opensips.org><br>
<b>Enviado:</b> quarta-feira, 22 de março de 2017 10:24<br>
<b>Para:</b> users@lists.opensips.org<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] OpenSIPS and 256 MByte of RAM.</font>
<div> </div>
</div>
<div><tt>Hi, Rodrigo!<br>
<br>
OpenSIPS by itself performs very well :). However, in a call, OpenSIPS is not all by itself: you need SIP clients, databases, DNS, and so forth and so on. In order to have better performance, you have to increase performance for each of these components. So
 you need to define what exactly is drawing OpenSIPS back: is it the processing itself, is it the database, is it the DNS and so on.<br>
<br>
In order to pinpoint the components that have poor performance, OpenSIPS provides some thresholds that you can use to measure different stuff in the script, such as DNS queries[1], message processing [2] or mysql queries[3]. You should try to profile each of
 these and figure out what exactly is happening in your platform, to find out what exactly you can/should improve.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc59" id="LPlnk247830" previewremoved="true">
http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc59</a>
<div id="LPBorder_GT_14901789729260.7688028320299577" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14901789729100.880680332607401" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14901789729240.5273365490177148" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14901789729240.5180580204388765"></div>
<div id="LPTitle_14901789729240.38869304470289656" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14901789729250.456786112733261" style="text-decoration: none;" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc59" target="_blank">openSIPS | Documentation / Core Parameters - 2.3</a></div>
<div id="LPMetadata_14901789729250.56233855454898" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.opensips.org</div>
<div id="LPDescription_14901789729260.7032179912086234" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
3. Core parameters. Global parameters that can be set in configuration file. Accepted values are, depending on the actual parameters strings, numbers and yes/ no.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
[2] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc60" id="LPlnk511382" previewremoved="true">
http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc60</a>
<div id="LPBorder_GT_14901789734680.95854248119009" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14901789734640.139842661682283" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14901789734650.18782587019480945" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14901789734650.27889364594463373"></div>
<div id="LPTitle_14901789734650.4469413687321345" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14901789734660.6919301354364875" style="text-decoration: none;" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-3#toc60" target="_blank">openSIPS | Documentation / Core Parameters - 2.3</a></div>
<div id="LPMetadata_14901789734670.18284963709070146" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.opensips.org</div>
<div id="LPDescription_14901789734670.19852394657238193" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
3. Core parameters. Global parameters that can be set in configuration file. Accepted values are, depending on the actual parameters strings, numbers and yes/ no.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
[3] <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/db_mysql.html#id248019" id="LPlnk468789" previewremoved="true">
http://www.opensips.org/html/docs/modules/2.3.x/db_mysql.html#id248019</a>
<div id="LPBorder_GT_14901790317660.1270259242970303" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14901790317610.543208762862875" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14901790317630.721482044295633" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14901790317630.30202990815400965"></div>
<div id="LPTitle_14901790317630.3795993611722409" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14901790317640.5803081653143725" style="text-decoration: none;" href="http://www.opensips.org/html/docs/modules/2.3.x/db_mysql.html#id248019" target="_blank">mysql Module - opensips.org</a></div>
<div id="LPMetadata_14901790317640.433034367942992" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.opensips.org</div>
<div id="LPDescription_14901790317650.12834520835368946" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
This is a module which provides MySQL connectivity for OpenSIPS. It implements the DB API defined in OpenSIPS.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" id="LPlnk402010" previewremoved="true">www.opensips-solutions.com</a></pre>
<div id="LPBorder_GT_14901790318590.3986260659011853" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14901790318360.6301870917168705" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="ImageCell_14901790318370.8041460932387559" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" colspan="1">
<div id="LPImageContainer_14901790318370.6903386551286588" style="background-color: rgb(255, 255, 255); height: 99px; position: relative; margin: auto; display: table; width: 250px;">
<a id="LPImageAnchor_14901790318400.26539838197387355" style="display: table-cell; text-align: center;" href="http://www.opensips-solutions.com/" target="_blank"><img style="display: inline-block; max-width: 250px; max-height: 250px; height: 99px; width: 250px; border-width: 0px; vertical-align: bottom;" aria-label="Imagem de visualização com link selecionado. Toque duas vezes para abrir o link." id="LPThumbnailImageID_14901790318410.7014884874673861" width="250" height="99" src="http://www.opensips-solutions.com/imgs/slideshow/slide1.jpg"></a></div>
</td>
<td id="TextCell_14901790318410.44998116935654897" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14901790318410.6781053194845132"></div>
<div id="LPTitle_14901790318410.6022945630500468" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14901790318560.4503089636886377" style="text-decoration: none;" href="http://www.opensips-solutions.com/" target="_blank">Home — OpenSIPS Solutions</a></div>
<div id="LPMetadata_14901790318570.8315597184859315" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.opensips-solutions.com</div>
<div id="LPDescription_14901790318580.7456610470706251" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
OpenSIPS is a mature Open Source implementation of a SIP server. OpenSIPS is more than a SIP proxy/router as it includes application-level functionalities.</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="moz-cite-prefix">On 03/22/2017 03:12 PM, Rodrigo Pimenta Carvalho wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>
<p>Hi.</p>
<p><br>
</p>
<p>I was getting some problems with OpenSIPS and its performance in a hardware with 1 CPU and 256 MByte of RAM.</p>
When I moved my OpenSIPS to another hardware with 2 CPUs and 516 MByte of RAM it became working very well !<br>
<br>
But, I have to move back my OpenSIPS to the 'poor' hardware!<br>
</div>
<p><br>
</p>
<p>So, what configurations in OpenSIPS files should I set, to get better performance?</p>
<p><br>
</p>
<p>Any suggestion will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>