# Оптимизированная строка запуска для ядра Paper

{% tabs %}
{% tab title="Универсальная версия" %}
{% hint style="info" %}

1. Укажите максимальное количество оперативной памяти в параметре -Xmx. Тут указано 10G, что означает 10 ГБ, вы можете поменять на нужное вам значение
2. Укажите имя файла ядра в конце перед nogui. Тут указано server.jar, Вы можете поменять на другое
   {% endhint %}

{% code overflow="wrap" %}

```bash
java -Xms128M -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar nogui
```

{% endcode %}
{% endtab %}

{% tab title="Версия для панели управления майнкрафт серверами MineHosting" %}
{% hint style="info" %}

* Строка запуска устанавливается в «Параметрах запуска» на странице сервера в панели управления майнкрафт серверами
* В самой строке запуска ничего менять не нужно, количество оперативной памяти и имя ядра указаны в виде переменных и настраиваются стандартным способом в панели управления (на страницах «Параметры запуска» и «Ресурсы и порты» на странице сервера)
  {% endhint %}

{% code overflow="wrap" %}

```bash
java -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar {{SERVER_JARFILE}}
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://support.minehosting.ru/minecraft/paper-flags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
