<HTML><HEAD>
<STYLE id=eMClientCss>BLOCKQUOTE.cite {
        PADDING-LEFT: 10px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 1px solid; PADDING-RIGHT: 0px; MARGIN-RIGHT: 0px
}
.plain PRE {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
.plain TT {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
BODY {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
.plain PRE {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
.plain TT {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
#16ab5ae45d5249acb01e264f96628889 BLOCKQUOTE.cite {
        PADDING-LEFT: 10px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 1px solid; PADDING-RIGHT: 0px; MARGIN-RIGHT: 0px
}
#16ab5ae45d5249acb01e264f96628889 .plain PRE {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
.plain TT {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
#16ab5ae45d5249acb01e264f96628889 {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
UNKNOWN {
        PADDING-LEFT: 10px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 1px solid; PADDING-RIGHT: 0px; MARGIN-RIGHT: 0px
}
#3d30208a17b2451c918331fd8f48337a .plain PRE {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
.plain TT {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
#3d30208a17b2451c918331fd8f48337a {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
#3d30208a17b2451c918331fd8f48337a .plain PRE {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
.plain TT {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
#3d30208a17b2451c918331fd8f48337a #6fa761626cb44a8cb579f4d132bf7a84 BLOCKQUOTE.cite {
        PADDING-LEFT: 10px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 1px solid; PADDING-RIGHT: 0px; MARGIN-RIGHT: 0px
}
#3d30208a17b2451c918331fd8f48337a #6fa761626cb44a8cb579f4d132bf7a84 .plain PRE {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
.plain TT {
        FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal
}
#3d30208a17b2451c918331fd8f48337a #6fa761626cb44a8cb579f4d132bf7a84 {
        FONT-SIZE: 12pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type></HEAD>
<BODY scroll=auto bgColor=#ffffff class>
<DIV>Ja estava me esquecendo!!!</DIV>
<DIV>&nbsp;</DIV>
<DIV><U>(PS: uso o CentOS, para outros SO pode ocorrer variação no caminho dos arquivos!)</U></DIV>
<DIV>&nbsp;</DIV>
<DIV>Pode digitar o comando <STRONG>sysctl -A | grep file-max </STRONG>que vai te retornar o File Descriptor atual no teu Linux.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Para configurar definitivo, edite o arquivo limit.conf (CentOS = /etc/security/limits.conf), e adicione ou edite:</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>* - nofile&nbsp; 500000</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>Boa pratica adicionar o File Descriptors escolhido também no arquivo <STRONG>/proc/sys/fs/file-max</STRONG></DIV>
<DIV>&nbsp;</DIV><STRONG>echo&nbsp;500000 &gt; /proc/sys/fs/file-max</STRONG>
<DIV>&nbsp;</DIV>
<DIV>E também aqui:</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>echo "fs.file-max=50000"&gt;&gt;/etc/sysctl.conf</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<HR>
</DIV>
<DIV><SPAN id=3d30208a17b2451c918331fd8f48337a>ulimit -c unlimited # The maximum size of core files created.<BR>ulimit -d unlimited # The maximum size of a process's data segment.<BR>ulimit -f unlimited # The maximum size of files created by the shell (default option)<BR>ulimit -i unlimited # The maximum number of pending signals<BR><STRONG>ulimit -n 999999&nbsp;&nbsp;&nbsp; # The maximum number of open file descriptors.</STRONG><BR>ulimit -q unlimited # The maximum POSIX message queue size<BR>ulimit -u unlimited # The maximum number of processes available to a single user.<BR>ulimit -v unlimited # The maximum amount of virtual memory available to the process.<BR>ulimit -x unlimited # ???<BR><STRONG>ulimit -s 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # The maximum stack size<BR></STRONG>ulimit -l unlimited # The maximum size that may be locked into memory.</SPAN></DIV>
<DIV>
<HR>
</DIV>
<DIV>&nbsp;</DIV>
<DIV id=signature_old>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: Tahoma">
<DIV>Atenciosamente,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Fernando da Silva Santos</DIV>
<DIV>CEO - NextBilling IP Solutions</DIV>
<DIV>http://www.nextbilling.com.br</DIV>
<DIV><IMG border=0 alt="" src="cid:em600e16e7-20ad-47c4-96a8-1c5ddd4f19d7@fernando"></DIV>
<DIV><SPAN id=42bdb35b123b4038a7da845dab73da11 style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"><BIG><SPAN style="COLOR: rgb(102,102,102)"><SPAN id=23be73cb6ea3452c80c96ca08210b5cc>
<DIV><SPAN id=260a1297358c4e8e9bac5c4f9b066d78 style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"><BIG><SPAN style="COLOR: rgb(102,102,102)">Importante:</SPAN></BIG><BR style="COLOR: rgb(102,102,102)"><FONT size=2><SPAN style="COLOR: rgb(102,102,102)">Esta mensagem, incluindo todo seu conteúdo, contém informações confidenciais, legalmente protegidas e destinadas a indivíduo e propósito específicos.</SPAN><BR style="COLOR: rgb(102,102,102)"><SPAN style="COLOR: rgb(102,102,102)">Caso a tenha recebido por engano, lembramos do caráter sigiloso e solicitamos a gentileza de desconsiderá-la e comunicar-nos o mais breve possível.</SPAN><BR style="COLOR: rgb(102,102,102)"><SPAN style="COLOR: rgb(102,102,102)">As informações contidas nesta mensagem e em seu conteúdo são de responsabilidade de seu autor, não representando necessariamente idéias, opiniões, pensamentos ou qualquer forma de posicionamento por parte da NextBilling IP Solutions.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: rgb(51,204,0)"><BIG style="COLOR: rgb(0,102,0)"><BIG><BIG>P </BIG></BIG></BIG><FONT size=2>"Antes de imprimir pense em seu compromisso com o Meio Ambiente."</FONT></SPAN></SPAN></DIV></SPAN></SPAN></BIG><BR></SPAN></DIV>
<DIV>&nbsp;</DIV></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------ Mensagem original ------</DIV>
<DIV>De: "Asterisk - Junior Polegato" &lt;<A href="mailto:asterisk@juniorpolegato.com.br">asterisk@juniorpolegato.com.br</A>&gt;</DIV>
<DIV>Para: <A href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A></DIV>
<DIV>Enviado(s): 28/02/2013 17:16:32</DIV>
<DIV>Assunto: Re: [AsteriskBrasil] Limitações do Linux</DIV>
<BLOCKQUOTE class=cite cite=512FBB20.6000508@juniorpolegato.com.br type="cite">
<DIV id=16ab5ae45d5249acb01e264f96628889 style="COLOR: #000000">Em 28-02-2013 16:56, Asterisk SUL escreveu: 
<BLOCKQUOTE class=cite cite=mid:BLU0-SMTP159FE2ADFBC7790C5AAB12CFAFE0@phx.gbl type="cite">
<META name=Generator content="Microsoft Word 12 (filtered&#13;&#10;        medium)">
<STYLE></STYLE>

<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Boa tarde,<?XML:NAMESPACE PREFIX = "O" /><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Hoje nos deparamos com uma situação.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Um servidor Dell R710 com uma placa de 4 E1 Aligera, recebendo ligações a full, porém quando chega no topo de 105 ligações simultâneas, ele começa dropar as ligações.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Máquina tem de sobra, é um Quad Core.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Houve uma coisa que me comentaram que estou começando a aceitar e gostaria da opinião da lista.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Um pessoal com largo conhecimento em Asterisk me comentou que o Linux tem essa limitação de processar no máximo 100 ligações simultaneamente, ou algo aproximado disso, por ter algo haver com o excesso de processos abertos, então ele atingiria esse total e começaria a dropar as ligações.<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">Pergunto, faz sentido isso?<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125)">Desde já agradeço;</SPAN></P></DIV></BLOCKQUOTE><BR>Boa tarde!<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; O Linux tem uma limitação de processos configurável. Se este for o problema, você pode alterar o limite.<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Consulta: ulimit -u<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alteração: ulimit -u 50000<BR><BR>[]'s<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Junior Polegato<BR><BR>
<DIV class=st4originalSignature></DIV></DIV></BLOCKQUOTE></BODY></HTML>