- Выделение оперативной памяти (ОЗУ) для Minecraft и TLauncher
- Можно выделить только 1 ГБ ОЗУ в лаунчере
- Для Windows
- Для Linux
- Для Windows
- Для Linux
- Minecraft Forums
- [Tutorial] Allocate more RAM (memory) to Minecraft
- How to allocate more RAM (memory) to Minecraft
- What do I have to do?
- I want more RAM, not only 2GB!
- How much RAM do I have?
- Something doesn’t work? You got an error?
- Prerequisite
- 2. Create a system user
- 3. Install the Minecraft server
- 4. Set a daily backup
- 5. Solve internal assignment
- How to allocate more ram to minecraft?
- 2 Answers 2
- Not the answer you’re looking for? Browse other questions tagged java games ram minecraft or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
- Как выделить Java больше оперативной памяти
- Зачем увеличивать память Java
- Как выделить память Java
- Увеличение памяти с помощью переменных среды
Выделение оперативной памяти (ОЗУ) для Minecraft и TLauncher
Для нормальной работы Minecraft рекомендуется выделять как можно больше памяти, особенно при использовании модов и ресурс-паков высокого разрешения. Существует несколько проблем в этом направлении, решить их просто.
Можно выделить только 1 ГБ ОЗУ в лаунчере
В настройках лаунчера (Иконка Шестерёнки -> Дополнительно) видно, что выделить можно до 1 гигабайта памяти. Всё из-за разрядности, установленной Java x32, необходимо Java x64.
1) Перед переустановкой Java, обязательно необходимо узнать, что у вас система 64 разрядная. Выполните следующие действия для определения разрядности:
Для Windows
Заходим в «Мой компьютер» -> «Свойства системы» -> находим надпись: «Тип системы» и там будет 64-bit или 32-bit.
Для Linux
Открываем Терминал (Terminal) и вводим команду uname -m , если покажется x86_64 — то у вас 64 разрядная система, если i686 или i386 — то у вас 32 разрядная.
2) Как только узнали, что у вас 64 разрядная система, приступаем к установке Java 64x. (Если у вас всё-таки 32-битная система, необходимо переустановка системы на 64-битную, при условии, что процессор поддерживает 64-битную схему.)
Для Windows
Скачиваем установщик Java 64, запускаем его и следующем инструкции (просто нажать Install). Скачать Java 64x Windows
Для Linux
Скачиваем установщик Java 64, запускаем его и следующем инструкции (просто нажать Install).
3) После этого, в настройках можно выделить максимальное количество памяти (при создании мод-паков тоже).
Старую версию Java 32x удалять необязательно, но если в настройках продолжает отображаться только 1 гб, то удалите старую версию и установите только Java 64x.
Если Ваша проблема остаётся актуальной, запросите поддержку у TLauncher:
Источник
Minecraft Forums
[Tutorial] Allocate more RAM (memory) to Minecraft
How to allocate more RAM (memory) to Minecraft
Based on this post by Gnampf, updated and corrected for 1.13.1/Launcher 2.1
Because many people ask this question, here is a little tutorial how to give Minecraft more RAM (memory) to work.
Normally, Minecraft works fine with his 1GB RAM. But if you allocate more memory, you can better some situations:
- More RAM for texture pack buffering (for high resolution packs)
- More RAM for singleplayer and multiplayer maps buffering (less reloading)
- Better working with RAM intensive mods
- Faster map rebuild
What do I have to do?
Minecraft Launcher:
It is possible to increase the RAM allocated to Minecraft within the launcher itself. To do so, please follow these instructions:
- Open the launcher.
- After the launcher opened, click «Launch Options». If you cannot see it, click the «hamburger menu» in the top-right corner (this button).
- If it is not already on, turn on «Advanced Settings».
- Click on the instance you want to increase the RAM on (most likely «Latest release»).
- Activate «JVM Arguments» and this into the text field:
I want more RAM, not only 2GB!
You can adapt the numbers to your needs:
- -Xmx is the maximum of RAM wich Minecraft can allocate.
- -Xms can be added to allocate RAM at the beginning, but is not required.
- If you set it, -Xms must not be greater than -Xmx. It is also not recommended to set -Xms too high
Notice: You can’t give Minecraft more RAM than you have in your system! Else, you will receive an error (most likely the same error that made you come here in the first place)!
Attention:
32-bit system only supports up to 4GB RAM memory. Therefore, most 32-bit based systems only support a maximum of 2GB to be allocated to Java. The limit depends on the system, if you got an error, try less allocation.
If you are not using the native Java that comes with the launcher, be sure to use the latest and correct version of Java (64bit on 64bit-OS-Systems is recommended).
How much RAM do I have?
The easiest way to see how much RAM you have on Windows is to open the Task Manager and change to the Performance Tab. Look how much Physical Memory is available. On MacOS, go to the Apple Menu, select About This Mac. This window shows you your total amount of RAM.
Note that other programs and your system also need RAM to work. For example, if you run TeamSpeak or Firefox in background, you should leave enough memory for this software to run.
Some numbers for reference:
- Windows 7: 1 GB RAM (32-Bit) or 2 GB RAM (64-Bit)
- Windows 8 / 8.1: 1 GB RAM (32-Bit) or 2 GB RAM (64-Bit)
- Windows 10: 2 GB RAM
- Linux: 1-2 GB
- Skype: 256 MB
- Teamspeak: 64 MB
It is recommended to never allocate more than half your system RAM to the game. Also be aware that allocating more RAM does not necessarily make the game faster.
Something doesn’t work? You got an error?
You found a fault in the post? Something is missing? Please let me know on #minecrafthelp on Esper, or on the official Minecraft Discord.
Mojira Moderator, #minecrafthelp Moderator, Primepixel administrator and generally an active member of the community.
«Deal with It».
Источник
Prerequisite
Since the MineCraft 1.17 version begins with Java8, Java16 + must be used, directly install Java-Latest
(1) Java
Install JDK
Check the JDK version
(2) Install the package required to build MCRCON tools
2. Create a system user
Not recommended to use root directly as a user running Minecraft
You can create a system user Minecraft that does not have a password that cannot be logged in with SSH, and sets / opt / minecraft for the user’s home directory.
3. Install the Minecraft server
(1) Switch to the user Minecraft
(2) Create three new directories in the home directory
Backups: Store backup data
Tools: Storage tool, including the MCRCON client, and write some custom scripts for server management
Server: Minecraft server directory, including maps and user data
(3) Install the MCRCON client
From Git Warehouse Clone to local and compiled
Test if compiled success
Output is like this is successful
Usage: mcrcon [OPTIONS]… [COMMANDS]…
Sends rcon commands to Minecraft server.
Option:
-h Print usage
-H Server address
-P Port (default is 25575)
-p Rcon password
-t Interactive terminal mode
-s Silent mode (do not print received packets)
-c Disable colors
-r Output raw packets (debugging and custom handling)
-v Output version information
Server address, port and password can be set using following environment variables:
MCRCON_HOST
MCRCON_PORT
MCRCON_PASS
Command-line options will override environment variables.
Rcon commands with arguments must be enclosed in quotes.
Example:
mcrcon -H my.minecraft.server -p password “say Server is restarting!” save-all stop
(4) Download the Minecraft server
CanMinecraft official website Get the latest official server download link
(4) Perform and configure the server for the first time
The MineCraft program will not be run for the first time, just implement initialization
[main/ERROR]: Failed to load properties from file: server.properties
[main/WARN]: Failed to load eula.txt
[main/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
Indicates that you need to agree to the protocol and set the server.properties profile.
Open the eula.txt file, then change the eula = false to Eula = true
Next, edit the configuration file as needed
Minecraft Wiki There is a detailed introduction to the meaning of each configuration option, you can configure it according to you.
Here, in order to use the RCON client, you need to configure the following configuration items.
(5) Set MineCraft to the daemon
Add the following configuration
The XMX and XMS in the launch configuration are available to the virtual machine allocation, which can be set according to their own host configuration.
Update configuration and turn on the server
View the status of the daemon
● minecraft.service — Minecraft Server
Loaded: loaded (/etc/systemd/system/minecraft.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-08-20 21:03:03 CST; 1h 52min ago
Main PID: 7062 (java)
CGroup: /system.slice/minecraft.service
└─7062 /usr/bin/java -XX:ErrorFile=/opt/minecraft/server/err/hs_err_%Y-65e3e…
Remember to set the firewall, release the corresponding port number, the default port number is 25565, can also change the port number in Server.properties
4. Set a daily backup
Switch to Minecraft users
Write backup scripts
Add execution permissions
Create a timed task
Set 0 auto backup daily
5. Solve internal assignment
It’s hard to play, I will hang it with a process, go to the wrong log, see an Out of Memory
Decisively Baidu solution, search for several optimization methods:
Replace the virtual machine: I changed Zulu, the effect is not good, or the memory is overflow
Modify the JVM boot parameters: -xx: + aggressiveOpts -xx: + usecompressedoops, the effect is not goodThis article is why
Reduce Server.properties Configuring Item View-Distance: This is a reduction in memory, but the effect is not obvious.
I went back to see the wrong log, people seem to tell us to solve our possible solution:
Article 2 Increases physical memory or SWAP space, physical memory to add money, SWAP space seems to have heard how but don’t know how it is awkward, one hundred degrees, it has previously heard countless virtual internal existence in Linux is through SWAP space implementation Over
Use the command to view the SWAP already configured in the system
The input command displays no SWAP partition or swap file in my system.
Decisively add SWAP files
After completing this operation, I feel that it is not so easy to invert.
But for the sake of insurance, you can write a script that is automatically restarted.
The script refers to the big plus on Stackoverflow to prevent this script from being executed multiple instances while being executed.
Turn on the script that is restarted, create a background execution, I put it in the server startup script, don’t manually execute it.
Turn off the script that is restarted, directly kill, very rude
OK, I should be able to play now, if there is a problem, it may continue to update, if this article has an error welcome!
Источник
How to allocate more ram to minecraft?
Minecraft lags badly in my linux than windows! in windows i dont find trouble playing it!
My system specs : processor : AMD Athlon x2 260 3.2ghz dual core
I have ubuntu 12.04 and I want allocate more ram to minecraft!
I have 4gb physical ram (ONLY 3.25 USABLE)
I have openjdk 7
ALSO TELL ME OTHER WAYS TO RUN MINECRAFT SMOOTHLY! PLEASE HELP.
2 Answers 2
From what ive read, Ubuntu’s 3D desktop sometimes causes issues with Minecraft. You could try logging in with unity 2d instead and see if this improves your issues.Though im not really sure what you mean by «lags». Since not having the black screen of death issues, i presume you are using minecraft version 1.3 .This should work fine with the allocated ram,and shouldn’t have the need to manually install the updated Lightweight Java Game Library .
To answer your question
-Xmx sets the maximum memory and Xms sets the minimum memory
java -Xmx2096M -Xms1048M -cp minecraft.jar net.minecraft.LauncherFrame
changing 2096M and 1048M to the amounts you desire
edit your profile and add this command on JVM box Command:
2 as GB memory replace any number for allocating more ram. For more detail read more
Not the answer you’re looking for? Browse other questions tagged java games ram minecraft or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
Как выделить Java больше оперативной памяти
Из-за взаимодействия программного компонента Java с разработанными продуктами могут возникать ошибки, решение которых лежит на плечах пользователя. Оно достигается двумя путями: переустановкой модуля и выделением дополнительной памяти Java. С каждой ситуацией стоит разобраться отдельно.
Зачем увеличивать память Java
Задачу по увеличению Java памяти пользователи ставят перед собой в следующих случаях:
- Не запускается игра Minecraft. Геймер получает сообщение, что для запуска не хватает виртуальной памяти, хотя минимальные требования по оперативке соблюдены.
- Проблема с памятью кучи Java. Написанное серверное приложение не запускается. Для его полноценной работы требуется 512 Мб оперативки на компьютере, но трудности с запуском возникают даже при имеющихся 4 Гб.
Исправить проблему можно двумя способами.
Как выделить память Java
Выделить Джава-модулю больше оперативной памяти возможно через «Панель управления». Способ удобнее рассмотреть на примере проблем с запуском игры Minecraft.
Инструкция:
- Открывается «Панель управления».
- В поиске нужно найти Java-модуль.
- После запуска ПО в шапке выбирается раздел Java.
- В запустившемся окне открывается View.
- Для корректной работы модуля удалите лишние строки, если они есть. Должна остаться только одна, где указана последняя версия ПО. Важно обратить внимание на разрядность.
- Для увеличения памяти производится изменение столбца Runtime Parameters. При этом параметры записываются в следующем виде: -Xincgc-Xmx2048M, где 2048 – 2 Гб выделяемой оперативки. Важно писать без пробелов. В 32-битной ОС рекомендуется выделение 768 Мб.
- Нажимается ОК, ОС перезагружается.
Расшифровка используемых команд:
- Xincgc – освобождает неиспользуемые объекты из памяти;
- Xmx – максимальный объем оперативки;
- Xms – минимальный объем.
Если это не помогло запустить Minecraft, переустановите модуль Java и игру. После удаления очистите реестр с помощью CCleaner.
Увеличение памяти с помощью переменных среды
Увеличить оперативную память в Джаве можно с помощью переменных системной среды. В виртуальной машине прописываются два аргумента, упомянутых ранее: -Xms и -Xmx.
Чтобы система воспринимала написанные аргументы, нужно добавить переменную с названием «_JAVA_OPTIONS».
Если количество памяти, отведенной для работы Java, в два раза меньше имеющейся оперативки, то команды прописываются по следующей инструкции:
- Открываются «Свойства» на ярлыке «Мой компьютер».
- Из левой части выбираются «Дополнительные параметры системы».
- На вкладке «Дополнительно» производится одиночный клик по «Переменные среды».
- Нажимается кнопка «Создать».
- Имя переменной: «_JAVA_OPTIONS», аргументы: «-Xms512m -Xmx1024m».
В примере объем оперативки составлял 1 Гб.
Видео: 3 способа выделить больше памяти Java.
Таким образом в статье рассмотрено два метода увеличения оперативной памяти, выделяемой для работы Java-модуля.
Источник