> 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/flags-de-inicializacao.md).

# Flags de inicialização

[Minecraft Vanilla e servidores de Minecraft na versão 1.20.5+ requerem Java 21 ou maior](https://docs.papermc.io/java-install-update). A Oracle mudou seu licenciamento e não há mais um motivo convincente para obter o java deles. Fornecedores recomendados são [Adoptium](https://adoptium.net/) e [Amazon Corretto](https://aws.amazon.com/corretto/). Implementações alternativas de JVM, como OpenJ9 ou GraalVM, podem funcionar, no entanto, elas não são suportadas pelo Paper e são conhecidas por causar problemas, portanto, não são recomendadas no momento.

Seu coletor de lixo pode ser configurado para reduzir picos de lag causados ​​por grandes tarefas do coletor de lixo. Você pode encontrar flags de inicialização otimizados para servidores Minecraft [aqui](https://docs.papermc.io/paper/aikars-flags). Lembre-se de que esta recomendação não funcionará em implementações JVM alternativas. É recomendável usar o gerador de sinalizadores de inicialização [flags.sh](https://flags.sh) para obter as flags de inicialização corretas para o seu servidor


---

# 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/flags-de-inicializacao.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.
