{"id":5436,"date":"2026-04-07T16:38:14","date_gmt":"2026-04-07T19:38:14","guid":{"rendered":"https:\/\/helpsysadmin.com.br\/blog\/?p=5436"},"modified":"2026-04-22T00:50:47","modified_gmt":"2026-04-22T03:50:47","slug":"limits-conf-linux","status":"publish","type":"post","link":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/","title":{"rendered":"Como Ajustar limits.conf no Linux: Guia para Alta Performance"},"content":{"rendered":"<div id=\"helps-3306012576\" class=\"helps-before-content-2 helps-entity-placement\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-3661896953164277\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- 2anuncios display quadrado -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-3661896953164277\"\r\n     data-ad-slot=\"5051229894\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div id=\"helps-3962320196\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-3661896953164277\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- quadrado -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-3661896953164277\"\r\n     data-ad-slot=\"7475053573\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-1-introducao\">\ud83e\udde9 PARTE 1 \u2014 INTRODU\u00c7\u00c3O<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-como-ajustar-limits-conf-no-linux-para-maxima-performance\">Como Ajustar limits.conf no Linux para M\u00e1xima Performance<\/h2>\n\n\n\n<p>Se voc\u00ea administra servidores <a href=\"https:\/\/helpsysadmin.com.br\/blog\/como-instalar-crowdsec\/\" data-internallinksmanager029f6b8e52c=\"1\" title=\"Como instalar Crowdsec\" target=\"_blank\" rel=\"noopener\">Linux<\/a> \u2014 seja VPS, servidor dedicado ou cloud \u2014 provavelmente j\u00e1 enfrentou problemas como lentid\u00e3o inexplic\u00e1vel, falhas em conex\u00f5es ou erros cr\u00edticos mesmo com CPU e RAM sobrando.<\/p>\n\n\n\n<p>Um dos principais culpados silenciosos desses problemas \u00e9 a m\u00e1 configura\u00e7\u00e3o do <strong>limits.conf no Linux<\/strong>.<\/p>\n\n\n\n<p>Esse arquivo controla os limites de recursos que cada usu\u00e1rio ou processo pode utilizar no sistema. Quando mal configurado, ele pode causar gargalos graves, como:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Erro \u201cToo many open files\u201d<\/li>\n\n\n\n<li>Limite baixo de processos simult\u00e2neos<\/li>\n\n\n\n<li>Quedas em aplica\u00e7\u00f5es web sob carga<\/li>\n\n\n\n<li>Instabilidade em servi\u00e7os como Nginx, Apache e MariaDB<\/li>\n<\/ul>\n\n\n\n<p>Neste guia completo, voc\u00ea vai aprender:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>O que \u00e9 o limits.conf no Linux<\/li>\n\n\n\n<li>Como ajustar corretamente para produ\u00e7\u00e3o<\/li>\n\n\n\n<li>Integra\u00e7\u00e3o com systemd e kernel<\/li>\n\n\n\n<li>Configura\u00e7\u00e3o ideal para alto tr\u00e1fego<\/li>\n\n\n\n<li>Erros comuns que derrubam servidores<\/li>\n<\/ul>\n\n\n\n<p>Ajustar limites no Linux \u00e9 essencial para estabilidade e performance. Para entender o contexto completo, veja o guia de <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">performance de servidores Linux<\/a><\/strong>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Os limites do sistema devem ser ajustados com base no uso real. Veja tamb\u00e9m:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">como otimizar servidores Linux<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/load-average-linux-como-interpretar\/\">como analisar load average<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/tuning-sysctl-producao-linux\/\">como ajustar sysctl<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-2-o-que-e-limits-conf-no-linux\">\ud83e\udde9 PARTE 2 \u2014 O QUE \u00c9 limits.conf NO LINUX<\/h2>\n\n\n\n<p>O arquivo:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/security\/limits.conf<\/pre>\n\n\n\n<p>define os limites de recursos do sistema operacional para usu\u00e1rios e processos.<\/p>\n\n\n\n<p>Ele atua como uma camada de controle para evitar que um \u00fanico processo consuma todos os recursos do servidor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-principais-parametros\">Principais par\u00e2metros<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-nofile\">\ud83d\udd39 nofile<\/h4>\n\n\n\n<p>N\u00famero m\u00e1ximo de arquivos abertos simultaneamente.<\/p>\n\n\n\n<p>\ud83d\udc49 Impacta diretamente:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nginx<\/li>\n\n\n\n<li>Apache<\/li>\n\n\n\n<li>MariaDB<\/li>\n\n\n\n<li>PHP-FPM<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-nproc\">\ud83d\udd39 nproc<\/h4>\n\n\n\n<p>N\u00famero m\u00e1ximo de processos por usu\u00e1rio.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-stack\">\ud83d\udd39 stack<\/h4>\n\n\n\n<p>Tamanho da pilha de mem\u00f3ria por processo.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-core\">\ud83d\udd39 core<\/h4>\n\n\n\n<p>Controle de gera\u00e7\u00e3o de arquivos de dump.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-por-que-isso-e-critico\">Por que isso \u00e9 cr\u00edtico?<\/h3>\n\n\n\n<p>Em ambientes modernos de alto tr\u00e1fego, os valores padr\u00e3o s\u00e3o extremamente baixos.<\/p>\n\n\n\n<p>Isso significa que, sem ajuste, seu servidor pode:<\/p>\n\n\n\n<p>\u274c Travar com poucos acessos<br>\u274c Limitar conex\u00f5es simult\u00e2neas<br>\u274c Gerar gargalos invis\u00edveis<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-3-problemas-reais-causados-por-ma-configuracao\">\ud83e\udde9 PARTE 3 \u2014 PROBLEMAS REAIS CAUSADOS POR M\u00c1 CONFIGURA\u00c7\u00c3O<\/h2>\n\n\n\n<p>Um servidor pode parecer saud\u00e1vel:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CPU em 30%<\/li>\n\n\n\n<li>RAM sobrando<\/li>\n\n\n\n<li>Disco normal<\/li>\n<\/ul>\n\n\n\n<p>Mas ainda assim apresentar falhas.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-erro-classico\">\ud83d\udea8 Erro cl\u00e1ssico<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Too many open files<\/pre>\n\n\n\n<p>Esse erro acontece quando o limite de arquivos abertos (nofile) \u00e9 atingido.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-impacto-direto\">Impacto direto<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sites saem do ar<\/li>\n\n\n\n<li>APIs param de responder<\/li>\n\n\n\n<li>Banco de dados falha conex\u00f5es<\/li>\n\n\n\n<li>Pain\u00e9is como DirectAdmin ficam lentos<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-cenario-comum\">Cen\u00e1rio comum<\/h3>\n\n\n\n<p>Servidor com alto tr\u00e1fego:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>500+ conex\u00f5es simult\u00e2neas<\/li>\n\n\n\n<li>m\u00faltiplos processos PHP<\/li>\n\n\n\n<li>banco de dados ativo<\/li>\n<\/ul>\n\n\n\n<p>Sem ajuste de limits.conf no Linux \u2192 gargalo inevit\u00e1vel.<\/p>\n\n\n\n<p>Limites inadequados podem causar gargalos no sistema. Confira como melhorar a <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">performance de servidores Linux<\/a><\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-4-configuracao-correta-do-limits-conf\">\ud83e\udde9 PARTE 4 \u2014 CONFIGURA\u00c7\u00c3O CORRETA DO limits.conf<\/h2>\n\n\n\n<p>Agora vamos ao que realmente importa: <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/configurar-login-automatico-phpmyadmin\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"Como Configurar Login Autom\u00e1tico no phpMyAdmin via DirectAdmin\">configurar<\/a> corretamente o limits.conf no Linux<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-configuracao-base-recomendada\">\ud83d\udccc Configura\u00e7\u00e3o base recomendada<\/h3>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\n<pre class=\"wp-block-preformatted\"><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>* soft nofile 65535\n* hard nofile 65535* soft nproc 65535\n* hard nproc 65535* soft stack 8192\n* hard stack 16384<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nproc<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nproc<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">stack<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">8192<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">stack<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">16384<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-configuracao-por-servico-producao\">\ud83d\udccc Configura\u00e7\u00e3o por servi\u00e7o (produ\u00e7\u00e3o)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>nginx soft nofile 200000\nnginx hard nofile 200000 \napache soft nofile 100000\napache hard nofile 100000 \nmysql soft nofile 200000\nmysql hard nofile 200000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><span style=\"color: #D8DEE9FF\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">apache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">apache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><span style=\"color: #D8DEE9FF\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">mysql<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">mysql<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-o-que-isso-resolve\">\ud83d\udd25 O que isso resolve?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Permite mais conex\u00f5es simult\u00e2neas<\/li>\n\n\n\n<li>Evita gargalos em aplica\u00e7\u00f5es web<\/li>\n\n\n\n<li>Melhora escalabilidade<\/li>\n\n\n\n<li>Prepara o servidor para picos<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-5-integracao-com-systemd-obrigatorio\">\ud83e\udde9 PARTE 5 \u2014 INTEGRA\u00c7\u00c3O COM SYSTEMD (OBRIGAT\u00d3RIO)<\/h2>\n\n\n\n<p>Apenas configurar o limits.conf no Linux n\u00e3o \u00e9 suficiente em sistemas modernos.<\/p>\n\n\n\n<p>O systemd pode sobrescrever esses limites.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-arquivo\">\ud83d\udccc Arquivo:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/systemd\/system.conf<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-configuracao\">Configura\u00e7\u00e3o:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>DefaultLimitNOFILE=200000\nDefaultLimitNPROC=65535<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">DefaultLimitNOFILE<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">DefaultLimitNPROC<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #B48EAD\">65535<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-aplicar\">Aplicar:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl daemon-reexec<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-erro-comum\">\u26a0\ufe0f Erro comum<\/h3>\n\n\n\n<p>Muitos administradores ajustam o limits.conf no Linux e esquecem o systemd.<\/p>\n\n\n\n<p>Resultado:<\/p>\n\n\n\n<p>\u274c Configura\u00e7\u00e3o n\u00e3o funciona<br>\u274c Limites continuam baixos<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-6-ajustes-no-kernel-sysctl\">\ud83e\udde9 PARTE 6 \u2014 AJUSTES NO KERNEL (SYSCTL)<\/h2>\n\n\n\n<p>Para suportar os novos limites, o kernel tamb\u00e9m precisa ser ajustado.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-arquivo-0\">\ud83d\udccc Arquivo:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/sysctl.conf<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-configuracao-recomendada\">Configura\u00e7\u00e3o recomendada:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fs.file-max = 2097152\nnet.core.somaxconn = 65535\nnet.ipv4.tcp_max_syn_backlog = 65535<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">fs<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">file<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">max<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2097152<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">net<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">core<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">somaxconn<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">net<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">ipv4<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">tcp_max_syn_backlog<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-aplicar-0\">Aplicar:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sysctl -p<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-beneficios\">Benef\u00edcios:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Suporte a mais conex\u00f5es<\/li>\n\n\n\n<li>Melhor performance de rede<\/li>\n\n\n\n<li>Redu\u00e7\u00e3o de gargalos TCP<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-7-validacao-das-configuracoes\">\ud83e\udde9 PARTE 7 \u2014 VALIDA\u00c7\u00c3O DAS CONFIGURA\u00c7\u00d5ES<\/h2>\n\n\n\n<p>Depois de ajustar o limits.conf no Linux, \u00e9 essencial validar.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ver-limite-atual\">Ver limite atual:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">ulimit -n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ver-limites-de-um-processo\">Ver limites de um processo:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat \/proc\/$(pidof nginx)\/limits<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">cat<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">proc<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">pidof<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\">)<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">limits<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ver-limite-global\">Ver limite global:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat \/proc\/sys\/fs\/file-max<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">cat<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">proc<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">sys<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">fs<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">file<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">max<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>Ajustar o limits.conf \u00e9 apenas parte da otimiza\u00e7\u00e3o. Veja a estrat\u00e9gia completa de <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">otimiza\u00e7\u00e3o de servidores Linux<\/a><\/strong>.<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-8-otimizacao-para-directadmin\">\ud83e\udde9 PARTE 8 \u2014 OTIMIZA\u00c7\u00c3O PARA DIRECTADMIN<\/h2>\n\n\n\n<p>Se voc\u00ea usa DirectAdmin, o ajuste do limits.conf no Linux \u00e9 ainda mais importante.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-por-que\">Por qu\u00ea?<\/h3>\n\n\n\n<p>Porque o ambiente geralmente inclui:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nginx (proxy)<\/li>\n\n\n\n<li>Apache<\/li>\n\n\n\n<li>PHP-FPM<\/li>\n\n\n\n<li>MariaDB<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-configuracao-ideal\">Configura\u00e7\u00e3o ideal:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>nginx soft nofile 200000\napache soft nofile 100000\nmysql soft nofile 200000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">apache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">mysql<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-resultado\">Resultado:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Painel mais r\u00e1pido<\/li>\n\n\n\n<li>Sites mais est\u00e1veis<\/li>\n\n\n\n<li>Melhor performance geral<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-9-erros-comuns-critico\">\ud83e\udde9 PARTE 9 \u2014 ERROS COMUNS (CR\u00cdTICO)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-nao-reiniciar-servicos\">\u274c N\u00e3o reiniciar servi\u00e7os<\/h3>\n\n\n\n<p>Mudan\u00e7as n\u00e3o s\u00e3o aplicadas.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ignorar-systemd\">\u274c Ignorar systemd<\/h3>\n\n\n\n<p>Configura\u00e7\u00e3o n\u00e3o funciona.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-valores-baixos\">\u274c Valores baixos<\/h3>\n\n\n\n<p>Servidor limitado artificialmente.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-nao-ajustar-kernel\">\u274c N\u00e3o ajustar kernel<\/h3>\n\n\n\n<p>Limite n\u00e3o escala.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-10-como-o-limits-conf-linux-afeta-performance-real\">\ud83e\udde9 PARTE 10 \u2014 COMO O limits.conf LINUX AFETA PERFORMANCE REAL<\/h2>\n\n\n\n<p>Quando falamos de performance em servidores Linux, muitos administradores focam apenas em CPU, RAM e disco. Por\u00e9m, o <strong>limits.conf linux<\/strong> atua em uma camada mais profunda \u2014 controlando diretamente como os processos interagem com o sistema operacional.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d Entendendo o impacto real<\/h3>\n\n\n\n<p>Cada conex\u00e3o em um servidor web gera:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>descritores de arquivos (file descriptors)<\/li>\n\n\n\n<li>processos ou threads<\/li>\n\n\n\n<li>uso de stack<\/li>\n<\/ul>\n\n\n\n<p>Se o <strong>limits.conf linux<\/strong> estiver mal configurado:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>conex\u00f5es s\u00e3o recusadas<\/li>\n\n\n\n<li>processos n\u00e3o s\u00e3o criados<\/li>\n\n\n\n<li>servi\u00e7os travam silenciosamente<\/li>\n<\/ul>\n\n\n\n<p>Configura\u00e7\u00f5es de limite afetam diretamente o desempenho. Veja como melhorar a <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">performance do servidor Linux<\/a><\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcca Exemplo pr\u00e1tico (alto tr\u00e1fego)<\/h3>\n\n\n\n<p>Imagine um servidor com:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1000 usu\u00e1rios simult\u00e2neos<\/li>\n\n\n\n<li>Nginx + PHP-FPM<\/li>\n\n\n\n<li>MariaDB ativo<\/li>\n<\/ul>\n\n\n\n<p>Cada conex\u00e3o pode consumir:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1\u20132 file descriptors (ou mais)<\/li>\n\n\n\n<li>1 processo\/thread<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udc49 Sem ajuste no <strong>limits.conf linux<\/strong>, voc\u00ea rapidamente atinge o limite.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f Resultado<\/h3>\n\n\n\n<p>Mesmo com hardware dispon\u00edvel:<\/p>\n\n\n\n<p>\u274c Erros intermitentes<br>\u274c Timeout em requisi\u00e7\u00f5es<br>\u274c Queda de performance sob carga<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-11-diferenca-entre-soft-e-hard-limits\">\ud83e\udde9 PARTE 11 \u2014 DIFEREN\u00c7A ENTRE SOFT E HARD LIMITS<\/h2>\n\n\n\n<p>No <strong>limits.conf linux<\/strong>, voc\u00ea sempre ver\u00e1 dois tipos de limites:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Soft limit<\/h3>\n\n\n\n<p>\u00c9 o limite atual aplicado ao usu\u00e1rio.<\/p>\n\n\n\n<p>Pode ser alterado dinamicamente sem reboot.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 Hard limit<\/h3>\n\n\n\n<p>\u00c9 o limite m\u00e1ximo permitido.<\/p>\n\n\n\n<p>Somente root pode alterar.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Exemplo:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>* soft nofile 65535\n* hard nofile 200000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 Estrat\u00e9gia recomendada<\/h3>\n\n\n\n<p>Para produ\u00e7\u00e3o:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Soft = valor operacional<\/li>\n\n\n\n<li>Hard = margem de crescimento<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd25 Boas pr\u00e1ticas<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nunca deixe hard muito baixo<\/li>\n\n\n\n<li>Sempre mantenha espa\u00e7o para scaling<\/li>\n\n\n\n<li>Use valores progressivos<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-12-limites-por-usuario-otimizacao-avancada\">\ud83e\udde9 PARTE 12 \u2014 LIMITES POR USU\u00c1RIO (OTIMIZA\u00c7\u00c3O AVAN\u00c7ADA)<\/h2>\n\n\n\n<p>Um erro comum ao configurar <strong>limits.conf linux<\/strong> \u00e9 usar apenas <code>*<\/code> (global).<\/p>\n\n\n\n<p>Isso pode gerar problemas em ambientes multi-servi\u00e7o.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Configura\u00e7\u00e3o ideal segmentada<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>nginx soft nofile 200000\nnginx hard nofile 200000\nmysql soft nofile 200000\nmysql hard nofile 200000\napache soft nofile 100000\napache hard nofile 100000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">nginx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">mysql<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">mysql<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">apache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">apache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfaf Benef\u00edcios<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Evita competi\u00e7\u00e3o por recursos<\/li>\n\n\n\n<li>Prioriza servi\u00e7os cr\u00edticos<\/li>\n\n\n\n<li>Melhora estabilidade<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 Dica profissional<\/h3>\n\n\n\n<p>MariaDB e Nginx geralmente precisam de limites mais altos que Apache.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-13-relacao-com-file-descriptors\">\ud83e\udde9 PARTE 13 \u2014 RELA\u00c7\u00c3O COM FILE DESCRIPTORS<\/h2>\n\n\n\n<p>O par\u00e2metro mais importante do <strong>limits.conf linux<\/strong> \u00e9 o <code>nofile<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d O que s\u00e3o file descriptors?<\/h3>\n\n\n\n<p>No Linux, tudo \u00e9 tratado como arquivo:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>conex\u00f5es de rede<\/li>\n\n\n\n<li>sockets<\/li>\n\n\n\n<li>arquivos f\u00edsicos<\/li>\n\n\n\n<li>pipes<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Cada conex\u00e3o usa FD<\/h3>\n\n\n\n<p>Se voc\u00ea tem:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>10.000 conex\u00f5es simult\u00e2neas<br>\u2192 precisa de milhares de file descriptors<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f Gargalo cl\u00e1ssico<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Too many open files<\/pre>\n\n\n\n<p>Esse erro \u00e9 causado diretamente por m\u00e1 configura\u00e7\u00e3o do <strong>limits.conf linux<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Solu\u00e7\u00e3o<\/h3>\n\n\n\n<p>Aumentar:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>* soft nofile 65535\n* hard nofile 65535<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">soft<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">hard<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<p>Ou mais, dependendo do cen\u00e1rio.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-14-integracao-com-nginx-e-alto-trafego\">\ud83e\udde9 PARTE 14 \u2014 INTEGRA\u00c7\u00c3O COM NGINX E ALTO TR\u00c1FEGO<\/h2>\n\n\n\n<p>O <strong>limits.conf linux<\/strong> precisa estar alinhado com o Nginx.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Configura\u00e7\u00e3o ideal<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>worker_rlimit_nofile 200000;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">worker_rlimit_nofile<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><span style=\"color: #81A1C1\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc E tamb\u00e9m:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>worker_connections 65535;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">worker_connections<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">65535<\/span><span style=\"color: #81A1C1\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 F\u00f3rmula pr\u00e1tica<\/h3>\n\n\n\n<p>Capacidade m\u00e1xima \u2248<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">worker_processes \u00d7 worker_connections<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f Sem limits.conf correto<\/h3>\n\n\n\n<p>O Nginx ignora esses valores.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-15-impacto-no-php-fpm\">\ud83e\udde9 PARTE 15 \u2014 IMPACTO NO PHP-FPM<\/h2>\n\n\n\n<p>PHP-FPM cria m\u00faltiplos processos.<\/p>\n\n\n\n<p>Cada processo:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>usa file descriptors<\/li>\n\n\n\n<li>consome mem\u00f3ria<\/li>\n\n\n\n<li>cria concorr\u00eancia<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Configura\u00e7\u00e3o recomendada:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>rlimit_files = 100000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">rlimit_files<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd25 Problema comum<\/h3>\n\n\n\n<p>Sem ajuste no <strong>limits.conf linux<\/strong>:<\/p>\n\n\n\n<p>\u274c PHP-FPM trava<br>\u274c Scripts falham<br>\u274c Lentid\u00e3o em WordPress<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-16-impacto-no-mariadb\">\ud83e\udde9 PARTE 16 \u2014 IMPACTO NO MARIADB<\/h2>\n\n\n\n<p>Banco de dados \u00e9 extremamente sens\u00edvel a limites.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Par\u00e2metro cr\u00edtico:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>open_files_limit = 200000<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">open_files_limit<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">200000<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d O que acontece sem ajuste?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>tabelas n\u00e3o abrem<\/li>\n\n\n\n<li>queries falham<\/li>\n\n\n\n<li>conex\u00f5es caem<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\udde0 Integra\u00e7\u00e3o obrigat\u00f3ria<\/h3>\n\n\n\n<p>O valor do MariaDB depende do <strong>limits.conf linux<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-17-como-escalar-para-cloud-e-vps\">\ud83e\udde9 PARTE 17 \u2014 COMO ESCALAR PARA CLOUD E VPS<\/h2>\n\n\n\n<p>Ambientes cloud exigem aten\u00e7\u00e3o especial.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-cenario-vps\">Cen\u00e1rio VPS<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>limites mais restritos<\/li>\n\n\n\n<li>compartilhamento de recursos<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-estrategia\">Estrat\u00e9gia<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>usar valores moderados (65535)<\/li>\n\n\n\n<li>monitorar consumo<\/li>\n\n\n\n<li>escalar gradualmente<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-cenario-dedicado\">Cen\u00e1rio dedicado<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>pode usar valores agressivos<\/li>\n\n\n\n<li>foco em throughput<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-18-monitoramento-avancado\">\ud83e\udde9 PARTE 18 \u2014 MONITORAMENTO AVAN\u00c7ADO<\/h2>\n\n\n\n<p>Ap\u00f3s configurar o <strong>limits.conf linux<\/strong>, monitore continuamente.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Ferramentas \u00fateis:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>lsof\nss -s\ncat \/proc\/sys\/fs\/file-nr<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">lsof<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ss<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">s<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">cat<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">proc<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">sys<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">fs<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">file<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">nr<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d O que observar:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>uso de file descriptors<\/li>\n\n\n\n<li>conex\u00f5es abertas<\/li>\n\n\n\n<li>picos de carga<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-19-hardening-e-seguranca\">\ud83e\udde9 PARTE 19 \u2014 HARDENING E SEGURAN\u00c7A<\/h2>\n\n\n\n<p>O <strong>limits.conf linux<\/strong> tamb\u00e9m ajuda na seguran\u00e7a.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc Benef\u00edcios:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>evita abuso de recursos<\/li>\n\n\n\n<li>limita ataques DoS internos<\/li>\n\n\n\n<li>protege o sistema<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f Estrat\u00e9gia<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>limites altos, mas controlados<\/li>\n\n\n\n<li>monitoramento ativo<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-20-checklist-final-producao\">\ud83e\udde9 PARTE 20 \u2014 CHECKLIST FINAL (PRODU\u00c7\u00c3O)<\/h2>\n\n\n\n<p>Antes de considerar conclu\u00eddo:<\/p>\n\n\n\n<p>\u2714 limits.conf configurado<br>\u2714 systemd ajustado<br>\u2714 sysctl aplicado<br>\u2714 servi\u00e7os reiniciados<br>\u2714 valida\u00e7\u00e3o feita<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parte-21-conclusao-final\">\ud83e\udde9 PARTE 21 \u2014 CONCLUS\u00c3O FINAL <\/h2>\n\n\n\n<p>O ajuste do <strong>limits.conf linux<\/strong> \u00e9 uma das otimiza\u00e7\u00f5es mais subestimadas no mundo Linux.<\/p>\n\n\n\n<p>Enquanto muitos focam apenas em hardware, \u00e9 essa configura\u00e7\u00e3o que define o verdadeiro limite operacional do seu servidor.<\/p>\n\n\n\n<p>Se voc\u00ea trabalha com:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>VPS<\/li>\n\n\n\n<li>Servidor dedicado<\/li>\n\n\n\n<li>Cloud<\/li>\n\n\n\n<li>DirectAdmin<\/li>\n\n\n\n<li>cPanel<\/li>\n<\/ul>\n\n\n\n<p>ent\u00e3o dominar o <strong>limits.conf linux<\/strong> n\u00e3o \u00e9 opcional \u2014 \u00e9 essencial.<\/p>\n\n\n\n<p>Para garantir estabilidade e alto desempenho, \u00e9 essencial otimizar o sistema como um todo. Consulte o guia de <strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">como otimizar servidores Linux<\/a><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-faq-limits-conf-linux\">FAQ \u2014 limits.conf Linux<\/h3>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1775590038707\"><strong class=\"schema-faq-question\">O que \u00e9 limits.conf no Linux?<\/strong> <p class=\"schema-faq-answer\">O <strong>limits.conf linux<\/strong> \u00e9 um arquivo de configura\u00e7\u00e3o localizado em <code>\/etc\/security\/limits.conf<\/code> que define limites de recursos do sistema para usu\u00e1rios e processos, como n\u00famero de arquivos abertos (<code>nofile<\/code>) e quantidade de processos (<code>nproc<\/code>)<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590068623\"><strong class=\"schema-faq-question\">Para que serve o limits.conf no Linux?<\/strong> <p class=\"schema-faq-answer\">O <strong>limits.conf linux<\/strong> serve para controlar o consumo de recursos por processos, evitando que um \u00fanico servi\u00e7o comprometa o desempenho do servidor.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590113049\"><strong class=\"schema-faq-question\">Como resolver o erro \u201cToo many open files\u201d no Linux?<\/strong> <p class=\"schema-faq-answer\">Para resolver esse erro, \u00e9 necess\u00e1rio aumentar o par\u00e2metro <code>nofile<\/code> no <strong>limits.conf linux<\/strong>, al\u00e9m de ajustar o systemd e o kernel (<code>sysctl.conf<\/code>) para suportar mais descritores de arquivos.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590157448\"><strong class=\"schema-faq-question\">Qual o valor ideal de nofile no limits.conf?<\/strong> <p class=\"schema-faq-answer\">O valor ideal no <strong>limits.conf linux<\/strong> depende do ambiente:<br>VPS pequeno: 65535<br>Servidores de alto tr\u00e1fego: 100000 a 200000<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590184583\"><strong class=\"schema-faq-question\">Qual a diferen\u00e7a entre soft e hard limits?<\/strong> <p class=\"schema-faq-answer\">No <strong>limits.conf linux<\/strong>:<br><strong>Soft limit<\/strong> \u00e9 o limite atual usado pelo sistema<br><strong>Hard limit<\/strong> \u00e9 o limite m\u00e1ximo permitido<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590219393\"><strong class=\"schema-faq-question\">Preciso reiniciar o servidor ap\u00f3s alterar o limits.conf?<\/strong> <p class=\"schema-faq-answer\">N\u00e3o \u00e9 obrigat\u00f3rio reiniciar o servidor, mas \u00e9 necess\u00e1rio reiniciar os servi\u00e7os (como Nginx, Apache e MariaDB) para aplicar as mudan\u00e7as do <strong>limits.conf linux<\/strong>.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590232394\"><strong class=\"schema-faq-question\">limits.conf sozinho resolve problemas de performance?<\/strong> <p class=\"schema-faq-answer\">N\u00e3o. O <strong>limits.conf linux<\/strong> precisa ser combinado com:<br>configura\u00e7\u00f5es do systemd<br>ajustes no kernel (<code>sysctl.conf<\/code>)<br>tuning dos servi\u00e7os<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1775590275634\"><strong class=\"schema-faq-question\">Onde fica o arquivo limits.conf no Linux?<\/strong> <p class=\"schema-faq-answer\">O arquivo principal do <strong>limits.conf linux<\/strong> est\u00e1 localizado em:<br>\/etc\/security\/limits.conf<\/p> <\/div> <\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-veja-mais\">Veja Mais:<\/h3>\n\n\n\n<p><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-de-servidores-linux\/\">Performance de Servidores Linux: Guia Completo 2026<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/swap-alto-com-ram-livre-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Swap Alto com RAM Livre: Por Que Isso Acontece e como Resolver<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/servidor-lento-identificar-gargalo-vps-dedicado-cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\">Servidor Lento: Como Identificar o Gargalo<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/io-de-disco-servidor-linux\/\">I\/O de disco servidor Linux: Como Resolver Gargalos<br><\/a><a href=\"https:\/\/helpsysadmin.com.br\/blog\/cpu-100-linux-o-que-verificar\/\">CPU 100% no Linux: O Que Verificar Primeiro no Servidor<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/usar-vmstat-para-achar-gargalo-linux\/\">Como Usar vmstat para Achar Gargalo no Linux em Minutos<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/load-average-linux-como-interpretar\/\">Load Average no Linux: Como Interpretar Corretamente<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/achar-gargalo-com-iostat\/\">Como Achar Gargalo com Iostat: Guia Definitivo e Pr\u00e1tico<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/iowait-alto-causas-reais\/\">Iowait Alto: Causas Reais e Solu\u00e7\u00f5es<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/monitoramento-linux-vmstat-iostat-sar\/\">Guia Completo de Monitoramento Linux com vmstat, iostat e sar<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/tuning-sysctl-producao-linux\/\">Tuning de sysctl para Produ\u00e7\u00e3o: Guia Definitivo de Performance Linux<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/oom-killer-mysql-guia-sobrevivencia\/\">OOM Killer e MySQL: Como Evitar que o Linux Mate seu Banco de Dados<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/memory-leak-linux-detectar-resolver\/\">Memory Leak Linux: Como Detectar e Corrigir<\/a><\/strong><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-saiba-mais\">Saiba Mais:<\/h3>\n\n\n\n<p><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/no-space-left-on-device-com-espaco-livre\/\">No space left on device com espa\u00e7o livre? Como resolver (Guia Completo)<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/identificar-processo-consome-cpu-linux\/\">Como identificar processo que consome CPU no Linux (Guia Completo)<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/limitar-cpu-processo-linux-cgroups\/\">Como Limitar CPU por Processo no Linux com cgroups (Guia Completo)<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/upgrade-cpu-vs-otimizacao-servidor\/\">Upgrade de CPU ou Otimizar? Guia Completo<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/ram-cheia-no-linux-o-que-fazer\/\">RAM Cheia no Linux: O Guia Definitivo para Resolver Travamentos em 2026<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/buffers-e-cache-quando-sao-um-problema\/\">Buffers e Cache: Quando Deixam de Ajudar e Viram um Problema?<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/out-of-memory-causas-reais-solucoes\/\">Out of Memory (OOM): Causas Reais, Diagn\u00f3stico e Como Resolver<\/a><\/strong><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-saiba-mais-0\">Saiba Mais:<\/h3>\n\n\n\n<p><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/como-evitar-oom-killer-linux-producao\/\">Como evitar OOM Killer Linux em Produ\u00e7\u00e3o: Guia Definitivo 2026<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/gargalo-no-linux-cpu-vs-ram\/\">Gargalo no Linux: Como Identificar se o Problema \u00e9 CPU ou RAM?<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/disco-lento-no-linux-como-identificar\/\">Disco Lento no Linux: Guia Completo para Identificar e Resolver<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/latencia-de-disco-no-linux-alta\/\">Lat\u00eancia de Disco no Linux Alta: Causas, Diagn\u00f3stico e Solu\u00e7\u00f5es<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/limpar-cache-memoria-linux-guia-completo\/\">Como Limpar Cache de Mem\u00f3ria no Linux: O Guia Definitivo<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/testar-velocidade-disco-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Como Testar Velocidade de Disco no Linux (Guia Completo)<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/performance-armazenamento-nvme-raid\/\" target=\"_blank\" rel=\"noreferrer noopener\">Performance de Armazenamento NVMe vs RAID: O Guia Definitivo 2026<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/throughput-vs-iops-linux-performance\/\" target=\"_blank\" rel=\"noreferrer noopener\">Throughput vs IOPS no Linux: Guia Definitivo de Performance [2026]<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/reduzir-escrita-disco-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Reduzir Escrita em Disco Linux: Guia Completo para Melhorar Performance<\/a><\/strong><br><strong><a href=\"https:\/\/helpsysadmin.com.br\/blog\/logs-consumindo-disco-linux-guia-limpeza\/\" target=\"_blank\" rel=\"noreferrer noopener\">Logs Consumindo Disco? Como Controlar e Limpar o Linux (Guia 2026)<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde9 PARTE 1 \u2014 INTRODU\u00c7\u00c3O Como Ajustar limits.conf no Linux para M\u00e1xima Performance Se voc\u00ea administra servidores Linux \u2014 seja VPS, servidor [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5438,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4199],"tags":[4161,4147,2822,4151,4153,4149,4157,2310,4155,4159],"class_list":["post-5436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-redes","tag-directadmin-performance-2","tag-limits-conf","tag-linux-performance-3","tag-nofile-linux","tag-nproc-linux","tag-otimizacao-linux-4","tag-servidores-linux-5","tag-sysadmin","tag-tuning-linux-3","tag-vps-otimizacao-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Como Ajustar limits.conf no Linux: Guia para Alta Performance<\/title>\n<meta name=\"description\" content=\"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como Ajustar limits.conf no Linux: Guia para Alta Performance\" \/>\n<meta property=\"og:description\" content=\"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog HelpSysAdmin\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-07T19:38:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-22T03:50:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"655\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"HelpSysAdmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brhelpsysad\" \/>\n<meta name=\"twitter:site\" content=\"@brhelpsysad\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/\"},\"author\":{\"name\":\"HelpSysAdmin\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/bdbe3d7d71a0c6a3cb474c18da574efb\"},\"headline\":\"Como Ajustar limits.conf no Linux: Guia para Alta Performance\",\"datePublished\":\"2026-04-07T19:38:14+00:00\",\"dateModified\":\"2026-04-22T03:50:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/\"},\"wordCount\":1969,\"publisher\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2026\\/04\\/limits.conf-no-linux.webp\",\"keywords\":[\"directadmin performance\",\"limits.conf\",\"linux performance\",\"nofile linux\",\"nproc linux\",\"otimiza\u00e7\u00e3o linux\",\"servidores linux\",\"SysAdmin\",\"tuning linux\",\"vps otimiza\u00e7\u00e3o\"],\"articleSection\":[\"Redes (Networking)\"],\"inLanguage\":\"pt-BR\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/\",\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/\",\"name\":\"Como Ajustar limits.conf no Linux: Guia para Alta Performance\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2026\\/04\\/limits.conf-no-linux.webp\",\"datePublished\":\"2026-04-07T19:38:14+00:00\",\"dateModified\":\"2026-04-22T03:50:47+00:00\",\"description\":\"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590038707\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590068623\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590113049\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590157448\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590184583\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590219393\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590232394\"},{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590275634\"}],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#primaryimage\",\"url\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2026\\/04\\/limits.conf-no-linux.webp\",\"contentUrl\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2026\\/04\\/limits.conf-no-linux.webp\",\"width\":1200,\"height\":655},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como Ajustar limits.conf no Linux: Guia para Alta Performance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/\",\"name\":\"Blog HelpSysAdmin\",\"description\":\"Blog Gerenciamento de Servidor\",\"publisher\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#organization\"},\"alternateName\":\"HelpSysAdmin Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#organization\",\"name\":\"HelpSysAdmin Gerenciamento de Servidores\",\"alternateName\":\"HelpSysAdmin\",\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\/\\/mlkpd8g42nae.i.optimole.com\\/w:512\\/h:512\\/q:mauto\\/f:best\\/https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2020\\/12\\/favicon.png\",\"contentUrl\":\"https:\\/\\/mlkpd8g42nae.i.optimole.com\\/w:512\\/h:512\\/q:mauto\\/f:best\\/https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/uploads\\/2020\\/12\\/favicon.png\",\"width\":512,\"height\":512,\"caption\":\"HelpSysAdmin Gerenciamento de Servidores\"},\"image\":{\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/brhelpsysad\",\"https:\\\/\\\/mastodon.social\\\/@helpsysadmin\"],\"description\":\"Oferecemos o gerenciamento de servidores dedicados, vps ou cloud. Apresentamos a melhor experi\u00eancia em atendimento e servi\u00e7o. Nosso time cuidar\u00e1 do seu servidor com backups, an\u00e1lises constantes, ajustes de seguran\u00e7a, realiza\u00e7\u00e3o de manuten\u00e7\u00e3o preventiva e corretiva, otimiza\u00e7\u00e3o de performance al\u00e9m de monitoramento 24\u00d77 com suporte Pr\u00f3 Ativo.\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1\",\"maxValue\":\"10\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/bdbe3d7d71a0c6a3cb474c18da574efb\",\"name\":\"HelpSysAdmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/litespeed\\/avatar\\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383\",\"url\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/litespeed\\/avatar\\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383\",\"contentUrl\":\"https:\\/\\/helpsysadmin.com.br\\/blog\\/wp-content\\/litespeed\\/avatar\\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383\",\"caption\":\"HelpSysAdmin\"},\"sameAs\":[\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/\"]},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590038707\",\"position\":1,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590038707\",\"name\":\"O que \u00e9 limits.conf no Linux?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"O <strong>limits.conf linux<\\\/strong> \u00e9 um arquivo de configura\u00e7\u00e3o localizado em \\\/etc\\\/security\\\/limits.conf que define limites de recursos do sistema para usu\u00e1rios e processos, como n\u00famero de arquivos abertos (nofile) e quantidade de processos (nproc)\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590068623\",\"position\":2,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590068623\",\"name\":\"Para que serve o limits.conf no Linux?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"O <strong>limits.conf linux<\\\/strong> serve para controlar o consumo de recursos por processos, evitando que um \u00fanico servi\u00e7o comprometa o desempenho do servidor.\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590113049\",\"position\":3,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590113049\",\"name\":\"Como resolver o erro \u201cToo many open files\u201d no Linux?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Para resolver esse erro, \u00e9 necess\u00e1rio aumentar o par\u00e2metro nofile no <strong>limits.conf linux<\\\/strong>, al\u00e9m de ajustar o systemd e o kernel (sysctl.conf) para suportar mais descritores de arquivos.\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590157448\",\"position\":4,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590157448\",\"name\":\"Qual o valor ideal de nofile no limits.conf?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"O valor ideal no <strong>limits.conf linux<\\\/strong> depende do ambiente:<br>VPS pequeno: 65535<br>Servidores de alto tr\u00e1fego: 100000 a 200000\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590184583\",\"position\":5,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590184583\",\"name\":\"Qual a diferen\u00e7a entre soft e hard limits?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No <strong>limits.conf linux<\\\/strong>:<br><strong>Soft limit<\\\/strong> \u00e9 o limite atual usado pelo sistema<br><strong>Hard limit<\\\/strong> \u00e9 o limite m\u00e1ximo permitido\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590219393\",\"position\":6,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590219393\",\"name\":\"Preciso reiniciar o servidor ap\u00f3s alterar o limits.conf?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"N\u00e3o \u00e9 obrigat\u00f3rio reiniciar o servidor, mas \u00e9 necess\u00e1rio reiniciar os servi\u00e7os (como Nginx, Apache e MariaDB) para aplicar as mudan\u00e7as do <strong>limits.conf linux<\\\/strong>.\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590232394\",\"position\":7,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590232394\",\"name\":\"limits.conf sozinho resolve problemas de performance?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"N\u00e3o. O <strong>limits.conf linux<\\\/strong> precisa ser combinado com:<br>configura\u00e7\u00f5es do systemd<br>ajustes no kernel (sysctl.conf)<br>tuning dos servi\u00e7os\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590275634\",\"position\":8,\"url\":\"https:\\\/\\\/helpsysadmin.com.br\\\/blog\\\/limits-conf-linux\\\/#faq-question-1775590275634\",\"name\":\"Onde fica o arquivo limits.conf no Linux?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"O arquivo principal do <strong>limits.conf linux<\\\/strong> est\u00e1 localizado em:<br>\\\/etc\\\/security\\\/limits.conf\",\"inLanguage\":\"pt-BR\"},\"inLanguage\":\"pt-BR\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Como Ajustar limits.conf no Linux: Guia para Alta Performance","description":"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/","og_locale":"pt_BR","og_type":"article","og_title":"Como Ajustar limits.conf no Linux: Guia para Alta Performance","og_description":"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.","og_url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/","og_site_name":"Blog HelpSysAdmin","article_published_time":"2026-04-07T19:38:14+00:00","article_modified_time":"2026-04-22T03:50:47+00:00","og_image":[{"width":1200,"height":655,"url":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp","type":"image\/webp"}],"author":"HelpSysAdmin","twitter_card":"summary_large_image","twitter_creator":"@brhelpsysad","twitter_site":"@brhelpsysad","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#article","isPartOf":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/"},"author":{"name":"HelpSysAdmin","@id":"https:\/\/helpsysadmin.com.br\/blog\/#\/schema\/person\/bdbe3d7d71a0c6a3cb474c18da574efb"},"headline":"Como Ajustar limits.conf no Linux: Guia para Alta Performance","datePublished":"2026-04-07T19:38:14+00:00","dateModified":"2026-04-22T03:50:47+00:00","mainEntityOfPage":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/"},"wordCount":1969,"publisher":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/#organization"},"image":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp","keywords":["directadmin performance","limits.conf","linux performance","nofile linux","nproc linux","otimiza\u00e7\u00e3o linux","servidores linux","SysAdmin","tuning linux","vps otimiza\u00e7\u00e3o"],"articleSection":["Redes (Networking)"],"inLanguage":"pt-BR"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/","url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/","name":"Como Ajustar limits.conf no Linux: Guia para Alta Performance","isPartOf":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#primaryimage"},"image":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp","datePublished":"2026-04-07T19:38:14+00:00","dateModified":"2026-04-22T03:50:47+00:00","description":"Aprenda como ajustar o limits.conf no Linux para aumentar desempenho, evitar erros como \u201cToo many open files\u201d e otimizar servidores VPS, dedicados e cloud.","breadcrumb":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590038707"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590068623"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590113049"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590157448"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590184583"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590219393"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590232394"},{"@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590275634"}],"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#primaryimage","url":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp","contentUrl":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2026\/04\/limits.conf-no-linux.webp","width":1200,"height":655},{"@type":"BreadcrumbList","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/helpsysadmin.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Como Ajustar limits.conf no Linux: Guia para Alta Performance"}]},{"@type":"WebSite","@id":"https:\/\/helpsysadmin.com.br\/blog\/#website","url":"https:\/\/helpsysadmin.com.br\/blog\/","name":"Blog HelpSysAdmin","description":"Blog Gerenciamento de Servidor","publisher":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/#organization"},"alternateName":"HelpSysAdmin Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/helpsysadmin.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/helpsysadmin.com.br\/blog\/#organization","name":"HelpSysAdmin Gerenciamento de Servidores","alternateName":"HelpSysAdmin","url":"https:\/\/helpsysadmin.com.br\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/helpsysadmin.com.br\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:512\/h:512\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2020\/12\/favicon.png","contentUrl":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:512\/h:512\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/uploads\/2020\/12\/favicon.png","width":512,"height":512,"caption":"HelpSysAdmin Gerenciamento de Servidores"},"image":{"@id":"https:\/\/helpsysadmin.com.br\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/brhelpsysad","https:\/\/mastodon.social\/@helpsysadmin"],"description":"Oferecemos o gerenciamento de servidores dedicados, vps ou cloud. Apresentamos a melhor experi\u00eancia em atendimento e servi\u00e7o. Nosso time cuidar\u00e1 do seu servidor com backups, an\u00e1lises constantes, ajustes de seguran\u00e7a, realiza\u00e7\u00e3o de manuten\u00e7\u00e3o preventiva e corretiva, otimiza\u00e7\u00e3o de performance al\u00e9m de monitoramento 24\u00d77 com suporte Pr\u00f3 Ativo.","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1","maxValue":"10"}},{"@type":"Person","@id":"https:\/\/helpsysadmin.com.br\/blog\/#\/schema\/person\/bdbe3d7d71a0c6a3cb474c18da574efb","name":"HelpSysAdmin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/litespeed\/avatar\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383","url":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/litespeed\/avatar\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383","contentUrl":"https:\/\/mlkpd8g42nae.i.optimole.com\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/helpsysadmin.com.br\/blog\/wp-content\/litespeed\/avatar\/e587d5e97a45d2f6f29b0179adc1ebf4.jpg?ver=1777855383","caption":"HelpSysAdmin"},"sameAs":["https:\/\/helpsysadmin.com.br\/blog\/"]},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590038707","position":1,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590038707","name":"O que \u00e9 limits.conf no Linux?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"O <strong>limits.conf linux<\/strong> \u00e9 um arquivo de configura\u00e7\u00e3o localizado em \/etc\/security\/limits.conf que define limites de recursos do sistema para usu\u00e1rios e processos, como n\u00famero de arquivos abertos (nofile) e quantidade de processos (nproc)","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590068623","position":2,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590068623","name":"Para que serve o limits.conf no Linux?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"O <strong>limits.conf linux<\/strong> serve para controlar o consumo de recursos por processos, evitando que um \u00fanico servi\u00e7o comprometa o desempenho do servidor.","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590113049","position":3,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590113049","name":"Como resolver o erro \u201cToo many open files\u201d no Linux?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Para resolver esse erro, \u00e9 necess\u00e1rio aumentar o par\u00e2metro nofile no <strong>limits.conf linux<\/strong>, al\u00e9m de ajustar o systemd e o kernel (sysctl.conf) para suportar mais descritores de arquivos.","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590157448","position":4,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590157448","name":"Qual o valor ideal de nofile no limits.conf?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"O valor ideal no <strong>limits.conf linux<\/strong> depende do ambiente:<br>VPS pequeno: 65535<br>Servidores de alto tr\u00e1fego: 100000 a 200000","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590184583","position":5,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590184583","name":"Qual a diferen\u00e7a entre soft e hard limits?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No <strong>limits.conf linux<\/strong>:<br><strong>Soft limit<\/strong> \u00e9 o limite atual usado pelo sistema<br><strong>Hard limit<\/strong> \u00e9 o limite m\u00e1ximo permitido","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590219393","position":6,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590219393","name":"Preciso reiniciar o servidor ap\u00f3s alterar o limits.conf?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"N\u00e3o \u00e9 obrigat\u00f3rio reiniciar o servidor, mas \u00e9 necess\u00e1rio reiniciar os servi\u00e7os (como Nginx, Apache e MariaDB) para aplicar as mudan\u00e7as do <strong>limits.conf linux<\/strong>.","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590232394","position":7,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590232394","name":"limits.conf sozinho resolve problemas de performance?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"N\u00e3o. O <strong>limits.conf linux<\/strong> precisa ser combinado com:<br>configura\u00e7\u00f5es do systemd<br>ajustes no kernel (sysctl.conf)<br>tuning dos servi\u00e7os","inLanguage":"pt-BR"},"inLanguage":"pt-BR"},{"@type":"Question","@id":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590275634","position":8,"url":"https:\/\/helpsysadmin.com.br\/blog\/limits-conf-linux\/#faq-question-1775590275634","name":"Onde fica o arquivo limits.conf no Linux?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"O arquivo principal do <strong>limits.conf linux<\/strong> est\u00e1 localizado em:<br>\/etc\/security\/limits.conf","inLanguage":"pt-BR"},"inLanguage":"pt-BR"}]}},"lang":"pt","translations":{"pt":5436},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/posts\/5436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/comments?post=5436"}],"version-history":[{"count":24,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/posts\/5436\/revisions"}],"predecessor-version":[{"id":6438,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/posts\/5436\/revisions\/6438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/media\/5438"}],"wp:attachment":[{"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/media?parent=5436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/categories?post=5436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helpsysadmin.com.br\/blog\/wp-json\/wp\/v2\/tags?post=5436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}