> For the complete documentation index, see [llms.txt](https://docs.minersrefuge.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minersrefuge.com.br/rodando-um-servidor/guia-de-otimizacao/rede-networking.md).

# Rede - Networking

### Arquivo: [server.properties](https://minecraft.fandom.com/wiki/Server.properties)

#### **network-compression-threshold**

`Bom valor inicial: 256`

Isso permite que você defina o limite para o tamanho de um pacote antes que o servidor tente compactá-lo. Defini-lo mais alto pode economizar alguns recursos da CPU ao custo da largura de banda e defini-lo como -1 o desativa. Definir esse valor mais alto também pode prejudicar clientes com conexões de rede mais lentas. Se o seu servidor estiver em uma rede com um proxy ou na mesma máquina (com menos de 2 ms de ping), desabilitar isso (-1) será benéfico, pois as velocidades internas da rede geralmente podem lidar com o tráfego descompactado adicional.

### Arquivo: [purpur.yml](https://purpurmc.org/docs/Configuration/)

#### **use-alternate-keepalive**

`Bom valor inicial: true`

Você pode ativar o sistema de manutenção de atividade alternativo de Purpur para que jogadores com conexão ruim não percam o tempo limite com tanta frequência. Tem incompatibilidade conhecida com TCPShield.

> Habilitar isso envia um pacote keepalive uma vez por segundo para um jogador, e só desconectará o jogador se nenhum deles for respondido em 30 segundos. Responder a qualquer um deles em qualquer ordem manterá o jogador conectado. Diferente da configuração vanilla, que desconectará o jogador se um pacote não foi respondido.\
> \~ <https://purpurmc.org/docs/Configuration/#use-alternate-keepalive>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.minersrefuge.com.br/rodando-um-servidor/guia-de-otimizacao/rede-networking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
