> 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.md).

# Guia de otimização

Esse guia foi feito traduzindo e pegando informações dos guias do [YouHaveTrouble](https://github.com/YouHaveTrouble/minecraft-optimization) e [Paper’s Chan](https://paper-chan.moe/paper-optimization/) além da [documentação do Paper](https://docs.papermc.io/), [documentação do Spark](https://spark.lucko.me/docs), [blog do me4502](https://madelinemiller.dev/blog/problem-with-reload/) e o [Discord do Purpur](https://purpurmc.org/).

Esse guia foi feito para a versão 1.21.5, algumas coisas ainda servem para a 1.15-1.21.4, e ainda assume que você está utilizando o Purpur para a maioria das configurações, Paper ou Pufferfish ainda servirão para a maior parte deste guia, qualquer software abaixo deles não é recomendado.

{% hint style="info" %}
Nota para usuários que estão no Vanilla, Fabric ou Spigot (ou qualquer coisa abaixo do Paper) - vá até o seu `server.properties` e mude `sync-chunk-writes` para `false`. Essa opção é forçada como `false` no Paper e seus forks, mas em outras implementações de servidor você precisa alterar isso manualmente. Isso permite que o servidor salve chunks fora do thread principal, diminuindo a carga no loop principal de tick.
{% endhint %}

Recomenda-se ler o guia abaixo para entender mais sobre os diferentes softwares de servidor:

{% content-ref url="/pages/AsyF4H4qrlsXCySn37Y3" %}
[Softwares de servidor](/iniciando-um-servidor/softwares-de-servidor.md)
{% endcontent-ref %}

Nunca haverá um guia que lhe dará resultados perfeitos. Cada servidor tem suas próprias necessidades e limites de quanto você pode ou está disposto a sacrificar. Este guia visa apenas ajudá-lo a entender quais opções têm impacto no desempenho e o que exatamente elas mudam. Se você acha que encontrou informações incorretas neste guia, não hesite em entrar em contato.


---

# 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.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.
