Error occurred during initialization of vm minecraft

Error occurred during initialization of VM Minecraft: All it requires you to do is completely uninstall Java from your device and then reinstall it.

error occurred during initialization of vm minecraft
error occurred during initialization of vm minecraft

Minecraft allows players to do a lot of different things, one of the main ones being the fact that the game allows you to build pretty much anything that you want to. However, there’s also the option to create your own servers and do a lot of other things in the game which can make your experience so much more fun and entertaining than it already is. However, players sometimes have to jump through a few heaps in order to access these perks and might even encounter a problem every now and then. We’re going to be discussing one of these problems today.

One of the most common errors that occur when players try to start Minecraft or set up a server is the ‘’Error Occurred During initialization of VM Minecraft’’. This is actually one of the most common that Minecraft players face, especially those that are trying the game out for the first time on their PC. However, it isn’t a repetitive problem that keeps occurring and can be fixed with relative ease. Just try any of the solutions we’ve given below and you’ll be able to get rid of this issue as soon as possible.

  1. Reinstall Java

The first fix to this problem is one of the most simple and arguably the most effective one as well. All it requires you to do is completely uninstall Java from your device and then reinstall it. The only difference is that you have to install the right version for your computer this time. You’ll need to figure out which version you have to download for yourself. For example, you’ll need to choose between Java 32-bit and Java 64-bit depending upon your version of Windows.

Even when it comes to Windows 10 there are two main different variants to choose from. One of these is the 32-bit variant while the other is the 64-bit variant. Just make sure that you install the variant of java that matches the version of Windows that you have installed. Once you do this, you shouldn’t be facing this problem anymore. It usually doesn’t matter which variant you have as long as it’s the right one, since there isn’t a huge difference between their performance capabilities. However, most people still recommend 64-bit programs over their 32-bit counterpart with good reason.

  1. Allocate More (or Less) RAM

Allocating the right amount of RAM is absolutely necessary regardless of the game you’re playing and allocating too little won’t allow you to play the game properly. If you have the right version of Java already installed, it’s almost certain that the problem lies with the amount of RAM that you’ve allocated to Minecraft. Fortunately, this is another easy to implement a solution that you can perform by simply following the steps we’ve given right below.

The first thing that you’ll have to do is open the Minecraft launcher (Java version) and go into the installations tab which you’ll find on the upper part of your screen. Now find the desired version of Minecraft that you wish to change the settings of and hover over it. You’ll now have to click on the icon with three dots on it after you’ve done so. Now select the option which says edit out of the few that appear and you’ll be able to select another option which says ‘’ more options’’ which should be on the bottom left side of your screen. Once you click on this, there should be a JVM arguments field which you can access and edit. Access this field and change the current –Xmx1G which is probably allocated to –Xmx#G. The # represents any amount of RAM which you wish to allocate to the game.

However, make sure that you don’t go overboard while performing these steps and dedicate more RAM than you have to the game. Dedicating more RAM than you have is another common reason for facing this issue and you should ensure that you only allocate an amount which your computer can safely handle. Otherwise, you’re bound to face a few issues here and there. These two are pretty much the only solutions that you’ll need to get rid of this issue, so try them both out and get back to playing Minecraft in no time!

Minecraft has a special place in every true gamer’s heart, but most would agree that the game is far from problem-free.

Although Minecraft users encounter a few bugs and errors here and there while playing, some of the problems happen outside of the game as well, or in this case, while attempting to launch it.

In this guide, we’ll talk about the infamous “Error occurred during initialization of VM” problem, and the good news is that we know exactly how to fix it.

Here’s what you need to know.

The Problem Explained

Users reported seeing this issue right after starting Minecraft through the launcher, as usual. The problem consists of the game not starting, and the user is presented with the following message: “Error occurred during initialization of VM”, as shown in the image below.

Error Occurred During Initialization Of VM Minecraft

Then, the program exists and the game doesn’t launch, which leaves users confused and sometimes even concerned, as the last sentence in the error prompt mentions a fatal exception followed by immediate termination of the program.

Fortunately, this error isn’t as serious as it sounds, and the reason it happens is that the Virtual Machine doesn’t have enough memory allocated for it to properly start, and changing that is not a difficult process.

We know exactly how to solve this issue, and you will too after reading the content in the sections below.

Let’s get right into it.

Fix 1: Ensure You Have The Right Java Version Installed

Install

One of the most common fixes for the Minecraft “Error occurred during Initialization of Virtual Machine” issue is to ensure you are running the right Java version for your system.

This has been suggested in a popular Stack Overflow thread covering the problem, as well as in a few other places, such as this Reddit thread.

The issue here is that you may have a 64-bit operating system yet have the 32-bit Java installed on your PC, and the best way to solve that is by installing the correct Java version.

However, before you get into that, we recommend confirming the above statement, and you can do so by following the steps below:

  1. Press Windows + E on your keyboard at the same time. This will open the Windows File Explorer.
  2. Right-click anywhere in an empty area and choose Properties from the list of options.
  3. Look for the information listed under the System category to see if your operating system is 32-bit or 64-bit, as shown in the image below.
    System type

If it’s 64-bit, which is most likely the case, you need to make sure you also have the right Java version installed, which is also the 64-bit one.

To do that, you first need to uninstall your current Java version from your system and ensure there are no leftover files.

This is what a Reddit user commented on a thread made by another user who faced the same Minecraft error due to having the wrong Java version installed on their PC.

User who asked for help has 32 bit version of Java

You can uninstall your current Java version through the Apps & Features section in Windows 10. Here’s what the process looks like step-by-step:

  1. Press Windows + S simultaneously on your keyboard to open the search box. In it, type Apps & Features, and then press Enter on your keyboard to initiate the search.
  2. Within the Apps & Features panel, search for Java, click on it, and choose Uninstall.
  3. When the process is complete, open the Program Files folder on your computer (which is by default located on your C Drive) and search for the Java folder. Manually delete it by right-clicking it and choosing Delete.
  4. Although not always mandatory, we recommend restarting your computer after the uninstall.

Now that you’ve successfully uninstalled Java from your computer, it’s time to re-download the correct version for your OS type from the official Java website.

Once you install the 64-bit version of Java, we recommend rebooting your PC once again. When it’s finally back up and running, launch Minecraft and see if the error persists.

For many users, this method solved the problem, given there weren’t any other issues, such as the one where the VM doesn’t get enough allocated memory for it to run properly. We cover that in the next section below, so make sure to check it out if the problem is still not fixed.

Fix 2: Allocate More Ram To The Java Virtual Machine

Command

Another very common fix for this problem is allocating more memory to the Java Virtual Machine. Although it sounds like a daunting task at first, it’s not that difficult to do, and we’ll show you exactly what steps you need to take.

Let’s take a look.

  1. Press Windows + R on your keyboard to open the Windows Run panel.
  2. In it, type in sysdm.cpl and press Enter on your keyboard, as shown in the image below.
    sysdm.cpl in Run panel
  3. In the window that opened, click Advanced at the top.
    Set A New System Variable For Java Advanced tab
  4. Click Environment Variables at the bottom-right corner of the window.
    Set A New System Variable For Java Environment Variables
  5. Under the System Variables section, click on New, as shown in the image below.
    Under the System variables click the New button
  6. Within the “Variable name” field, type in “_JAVA_OPTIONS” and in the “Variable value” field, type in “-XmX512M”, then finish by clicking the OK button at the bottom. This means that you’ve just successfully allocated 512MB of RAM to Java. You can increase this number to 1024M or more.

You can also take a look at this helpful video tutorial that covers the entire process from beginning to end if the text-based explanation is not clear enough.

Note: You can also use the short command (such as “-mx512m) if you see no success with the one listed in step #6, as some users reported that it made a difference for them, although they’re the same commands, just one shorter than the other.

Note: You can allocate more memory to the Java Virtual Machine than we did in the example above, but be careful as some users reported that a very high number can also cause it not to work, especially with the 32-bit version of Java.

Roblox Java Virtual Machine

Now that you’ve successfully allocated more memory to your Java Virtual Machine, the problem should no longer be there when you’re trying to launch the game.

Conclusion

Now you know more about the VM Minecraft error and how to allocate more RAM to the Java Virtual Machine, which should be enough to fix the issue with Minecraft not launching for good.

The methods listed in the guide above helped many users, and hopefully, they’ll help you too and ensure you have a non-interrupted gameplay experience.  

  1. Этот сайт использует файлы cookie. Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie. Узнать больше.
  2. Вы находитесь в русском сообществе Bukkit. Мы — администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на русский язык плагины наших собратьев из других стран.

    Скрыть объявление

  1. При запуске сервера, появляется данная ошибка…

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.

    Скрипт запуска

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "C:Program FilesJavajdk1.6.0_32binjava.exe" -Xincgc -Xmx1G -jar craftbukkit.jar nogui
    PAUSE
    

    p.s ОС — Windows Server 2003
    ОЗУ — 16гб
    Процессор — Intel Core i5.

    В чем может быть проблема?

  2. Быстрая раскрутка сервера Minecraft


  3. lenin

    lenin
    Старожил
    Пользователь

    Зачем используешь jdk? путь должен быть C:Program FilesJavajre6binjava.exe или 7

  4. 182 recipes
    27 achievements
    java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.
    internal.Kernel32
    at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSu
    pport.java:50)
    at jline.WindowsTerminal.getConsoleMode(WindowsTerminal.java:176)
    at jline.WindowsTerminal.init(WindowsTerminal.java:80)
    at jline.TerminalFactory.create(TerminalFactory.java:93)
    at jline.TerminalFactory.get(TerminalFactory.java:151)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:140)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:126)
    at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:94)
    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:615)
    at org.bukkit.craftbukkit.Main.main(Main.java:140)
    Для продолжения нажмите любую клавишу . . .

    что делать?


  5. Volk_acid

    Volk_acid
    Старожил
    Пользователь

    Баллы:
    103
    Имя в Minecraft:
    Player

    Попробуй поставить Visual c++


  6. xxxKRESHxxx

    xxxKRESHxxx
    Активный участник

    Баллы:
    63
    Имя в Minecraft:
    xxxKRESHxxx

    Спасибо тебе :D


  7. савва

    савва
    Активный участник

    Баллы:
    88
    Имя в Minecraft:
    savvok01

    1 вопрос смысл брать винду для сервера ???


  8. xxxKRESHxxx

    xxxKRESHxxx
    Активный участник

    Баллы:
    63
    Имя в Minecraft:
    xxxKRESHxxx

    Многим Windows привычнее, например не все смогут держать сервера на Linux :D


  9. eset

    eset
    Активный участник
    Пользователь

    Баллы:
    88
    Имя в Minecraft:
    BuTEK

    я где-то на зарубежных сайтах видел срипт запуска на winserver 2003… жаль только скрип потерял…

  10. Попробуй использовать 7 версию джавы.
    Ниже указывай в мегобайтах, хотя особой разницы нет, но можно так -Xmx1g. Насколько я помню в джаве регист имеет значение. Ниже пример. Я урезал некоторые функции от постороних глаз.

    Java -Xmx1024m -Dfile.encoding=UTF-8 -jar "Callisto.jar"

  11. eset

    eset
    Активный участник
    Пользователь

    Баллы:
    88
    Имя в Minecraft:
    BuTEK

    Ююююхххуууууу! я помнил, что там просто была приставка начинающаяся на -no… Так вот, товарищи, Для запуска сервера надо просто добавить -nojline Привожу свой срипт для Windows Server 2003:
    @ECHO OFF
    «%ProgramFiles%Javajre7binjava.exe» -Xms1024M -Xmx1024M -jar craftbukkit.jar -nojline
    PAUSE

  12. Если х64 добавь -server перед -jar, будет работать как сервер =3


  13. Nazar52028

    Nazar52028
    Активный участник

    Баллы:
    88
    Имя в Minecraft:
    UK_TK


  14. eset

    eset
    Активный участник
    Пользователь

    Баллы:
    88
    Имя в Minecraft:
    BuTEK

Поделиться этой страницей

  1. Describe Error and Its Causes
  2. Resolve the Error occurred during initialization of VM in Minecraft

Fix the Error Occurred During Initialization of VM in Minecraft

Today, we will find out why we are getting the error that occurred during the initialization of VM in Minecraft and how we can resolve it. So, let’s start by understanding the error and the possible reasons.

Describe Error and Its Causes

We want to make a Minecraft server, but we got the following error using our 64-bit computer. The error states as follows:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. The program will exit.

We found that environmental variables like CLASS and CLASSPATH would help, so we tried those, but we still got the above error. What is this error saying, and how to eradicate it?

Minecraft lovers are allowed to do various things. However, the one who tries to create their server and perform different things inside the game may face an error described as Error occurred during initialization of VM.

It is one of the most common issues faced by Minecraft players. Usually, it happens when they are trying this game for the first time on their machine.

However, it is not a repetitive problem, and we can easily fix this kind of error. Let’s find out the possible reasons for this error.

  1. We may have an incorrect version of Java, which means our Java version is incompatible with our machine.
  2. We may have allocated the wrong amount of RAM, or we are trying to allocate more RAM than our system allows us to allocate.

Resolve the Error occurred during initialization of VM in Minecraft

There are different ways to fix this issue; we can try any of them based on our situation and the machine’s specifications.

  1. The first solution is to uninstall Java completely from our device and reinstall it again. Make sure that we have the right version of Java.

    For instance, we need to select Java, either 32-bit or 64-bit, based on what Windows version and machine architecture we have.

  2. Allocate the correct amount of RAM. It is essential regardless of what game we are playing.

    Remember, allocating less RAM will not let us play a game properly. While allocating more RAM will result in an error.

    To allocate the right amount of RAM, open the startup script and update the values of the -Xmx/-Xms arguments.

    Make sure that we have allocated the RAM that our machine can easily and safely handle. Otherwise, we will be facing various issues here and there.

Вверх ↑

ФорумыПоддержка[Решено] Проблема с запуском клиента
← Ctrl1Ctrl →

#1: 2013-09-16 01:23:09

ЛС |
профиль |
цитата

Выдаёт следующее:

GET: version.md5

GET: ./version.md5

Java Path: D:/Games/minecraft galaxy/jrex86/bin/java.exe

Heap size: 247.0

Rerun client with optimal parameters

GET: ./version.md5

Java Path: D:/Games/minecraft galaxy/jrex86/bin/java.exe

Error occurred during initialization of VM

Could not reserve enough space for object heap

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

С момента крупного последнего обновления, такая проблема. Прошу помочь разобраться в чём дело и по возможности помочь с нормальным входом в игру.

карма: 2

Google

vip

#1.1контекстная реклама от партнеров

Ответов: 9240

#2: 2013-09-16 01:41:23

ЛС |
профиль |
цитата

Попробуйте запустить с особыми параметрами вставив

карма: 195

Monte Carlo «Так смешно слушать ложь, когда знаешь правду…»@zalik

0

Ответов: 91

#3: 2013-09-16 01:59:05

ЛС |
профиль |
цитата

GET: version.md5
GET: ./version.md5

Java Path: D:/Games/minecraft galaxy/jrex86/bin/java.exe
Could not create the Java virtual machine.
Unrecognized option: -xms

‹ 10 sec

карма: 2

Ответов: 344

#4: 2013-09-16 02:03:12

ЛС |
профиль |
цитата

*facepalm*

papasid, а зачем пробелы?…
и первый икс должен быть большим…

-Xms512M -Xmx1024M

а вот кстати последние «м» могут быть и маленькие

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#5: 2013-09-16 02:06:08

ЛС |
профиль |
цитата

Glukovich,

после вставки вашего параметра:

GET: version.md5
GET: ./version.md5

Java Path: D:/Games/minecraft galaxy/jrex86/bin/java.exe
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

‹ 10 sec

карма: 2

Ответов: 1893

#6: 2013-09-16 02:07:07

ЛС |
профиль |
цитата

Vadim1989, оперативной памяти сколько?

карма: 333

Ответов: 344

#7: 2013-09-16 02:07:11

ЛС |
профиль |
цитата

хм ну тогда снизь до 512 оба, или
-Xms256m -Xmx512m

— Добавлено в 2013-09-16 02:07:48

ах да, и попробуй лучше поставить яву с сайта и указать до неё путь в program files

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 9240

#8: 2013-09-16 02:09:34

ЛС |
профиль |
цитата

Vadim1989, перегрузите компьютер, закройте все процессы.
Судя по ошибке у Вас не хватает оперативной памяти.

карма: 195

Monte Carlo «Так смешно слушать ложь, когда знаешь правду…»@zalik

0

Ответов: 344

#9: 2013-09-16 02:10:04

ЛС |
профиль |
цитата

а может встроенная в клиент ява косячит

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#10: 2013-09-16 02:23:11

ЛС |
профиль |
цитата

По выше заданным вопросам, скрины:

http://screenshot.ru/screens/16.09.13/02:17:32_f54bf0c7.png
http://screenshot.ru/html/16.09.13/02:18:06_20c326a1.html
http://screenshot.ru/html/16.09.13/02:20:27_3c2abf37.html
http://screenshot.ru/html/16.09.13/02:20:56_bce713d5.html

Glukovich писал(а):

хм ну тогда снизь до 512 оба, или -Xms256m -Xmx512m

Вставил ваши параметры:

GET: version.md5
GET: ./version.md5

Java Path: D:/Games/minecraft galaxy/jrex86/bin/java.exe
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

‹ 10 sec

Glukovich писал(а):

ах да, и попробуй лучше поставить яву с сайта и указать до неё путь в program files

Попытка::

GET: version.md5
GET: ./version.md5

Java Path: C:/Program Files/Java/jre7/bin/java.exe
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

‹ 10 sec

papasid писал(а):

Vadim1989, перегрузите компьютер, закройте все процессы. Судя по ошибке у Вас не хватает оперативной памяти.

Тоже не помогло.

карма: 2

Ответов: 344

#11: 2013-09-16 02:51:48

ЛС |
профиль |
цитата

а вариант с
C:/Program Files/Java/jre7/bin/java.exe
и
-Xms512M -Xmx1024M
был?

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#12: 2013-09-16 02:53:55

ЛС |
профиль |
цитата

Glukovich писал(а):

а вариант с C:/Program Files/Java/jre7/bin/java.exeи -Xms512M -Xmx1024Mбыл?

Результат тот же, что и

Vadim1989 писал(а):

GET: version.md5GET: ./version.md5Java Path: C:/Program Files/Java/jre7/bin/java.exeError occurred during initialization of VMCould not reserve enough space for object heapError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit.‹ 10 sec

Хотя если не вбивать особые параметры (-Xms512M -Xmx1024M), то выдаёт

следующее

GET: version.md5
GET: ./version.md5

Java Path: C:/Program Files/Java/jre7/bin/java.exe
Heap size: 247.0

Java home: C:Program FilesJavajre7
Rerun client with optimal parameters

GET: ./version.md5

Java Path: C:/Program Files/Java/jre7/bin/java.exe
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

карма: 2

Ответов: 344

#13: 2013-09-16 03:39:01

ЛС |
профиль |
цитата

странно всё это. не люблю сборку зверя ._.

ну поиграйся с параметрами хип сайза…

-Xms это минимум для выделенной памяти
-Xmx это максимум

соответственно, не выставляй Xmx меньше Xms.
размер бери кратный 128
например

-Xmx1152m -Xms128m

кстати, файл подкачки наверное кто-то хотел сделать кратным 4, но не так рассчитал? лучше тогда уж 2048 и 4096… можно это тоже исправить, но не думаю что тут причина

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#14: 2013-09-16 09:11:47

ЛС |
профиль |
цитата

Glukovich писал(а):

-Xmx1152m -Xms128m

Выставил на обоих жесткачах по 4096.

Та же ошибка.

Блин, до глобального обновления, всё было нормально, играл и не заморачивался, что же, за напасть такая то…

— Добавлено в 2013-09-16 17:59:45

Пробую снести и Java и клиент, перезакачивая и устанавливая по новой, вдруг поможет.

карма: 2

Ответов: 344

#15: 2013-09-16 18:06:32

ЛС |
профиль |
цитата

слушай, ну это как минимум очень странно.
попробуй конечно переустановить всё.
ты пробовал ставить разные параметры Xmx и Xms?

вообще я так скажу, у меня ява 1.7.0_15, устанавливал с сайта явы. и клиент мсгл — только инсталлер лаунчера…
но система вин7, как она на зверь-экспи работает я хз, это к суппортам вопрос

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#16: 2013-09-16 18:15:03

ЛС |
профиль |
цитата

Переустановил всё, результат не изменился. Просто мне не понятно, почему же тогда до обновления клиента всё шло нормально, без сучка и задоринки, а сейчас клиент что-то не устраивает, насколько понял, это выделение оперативной памяти для клиента не хватает. 8гб виртуальной оперативы выделил, освободил процессор и систему от лишних приложений, запускаю и … Нечего не поменялось.
Сапортам уже отписывал, пока 3 сутки идут, те советы что они давали не дали результата, ожидаю дальше, тему создал, на случай если знающие люди есть на форуме, а они точно есть, если смогу с помощью людей решить проблему, то освобожу сапортов от ещё одного мозгового напряга, у них и так сейчас работы по горло.
Зверь, это по сути внешне, так то он на базе стандартного XP пашет, 32 битный.

— Добавлено в 2013-09-16 18:41:42

Ещё одно, если запускать без консоли, то выдаёт такое сообщение:

карма: 2

Ответов: 344

#17: 2013-09-16 20:51:27

ЛС |
профиль |
цитата

ну, я бы вообще такие огромные виртуалки не ставил… тем более хп 32 бита… вообще, если у тебя 1,7 гб, то этого должно хватить и без своп файла… можешь ещё его почикать, оставить только физическую память и поставить в параметрах -Xmx768m -Xms128m

— Добавлено в 2013-09-16 20:52:30

ну «почикать» в смысле оставить только на одном диске и не так много, 2 гига достаточно будет. 2048

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Администрация

Ответов: 4613

#18: 2013-09-16 21:27:23

ЛС |
профиль |
цитата

gen писал(а):

Vadim1989, оперативной памяти сколько?

Vadim1989 писал(а):

8гб виртуальной оперативы выделил

это еще что значит?

карма: 1034

Ответов: 13

#19: 2013-09-16 22:28:44

ЛС |
профиль |
цитата

Мой компьютер-›Свойства-›Дополнительно-›Переменные среды-›Создать.
Имя переменной: _JAVA_OPTIONS
Значения переменной: -Xmx512M

карма: 0

Ответов: 91

#20: 2013-09-16 22:44:30

ЛС |
профиль |
цитата

admin писал(а):

gen писал(а):Vadim1989, оперативной памяти сколько?

1,75 ОЗУ — Оператива

JewiN писал(а):

Мой компьютер-›Свойства-›Дополнительно-›Переменные среды-›Создать.Имя переменной: _JAVA_OPTIONSЗначения переменной: -Xmx512M

Попробую, спасибо за совет.

карма: 2

Ответов: 344

#21: 2013-09-16 23:14:28

ЛС |
профиль |
цитата

admin писал(а):

gen писал(а):
Vadim1989, оперативной памяти сколько?

Vadim1989 писал(а):
8гб виртуальной оперативы выделил

это еще что значит?

Редактировалось 1 раз(а), последний 2013-09-16 21:28:21

это он в скринах показал — там у него своп файл на двух дисках по 4 гига

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Администрация

Ответов: 4613

#22: 2013-09-16 23:41:25

ЛС |
профиль |
цитата

Vadim1989, закройте лаунчер, запустите его еще раз, в настройках поставте -Xmx564M и попробуйте запустить игру.

карма: 1034

Ответов: 91

#23: 2013-09-16 23:58:09

ЛС |
профиль |
цитата

admin писал(а):

Vadim1989, закройте лаунчер, запустите его еще раз, в настройках поставте -Xmx564M и попробуйте запустить игру.

Спасибо огромное! Игра запустилась, всё теперь нормально работает!

карма: 2

Ответов: 344

#24: 2013-09-17 05:11:00

ЛС |
профиль |
цитата

админ, ты ваще, ванга типа *_*

ну, как так можно догадаться именно до такого числа? откуда такие данные? не просто ведь с потолка взял какие-то число кратное четырём?)))

просто интересно как вычислил, поделись)

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 13949

#25: 2013-09-17 12:17:28

ЛС |
профиль |
цитата

Glukovich писал(а):

ну, как так можно догадаться именно до такого числа? откуда такие данные? не просто ведь с потолка взял какие-то число кратное четырём?)))

Клиент игры в среднем жрет 500мб оперативки. Но по моим наблюдениям, она жрет в основном до 980мб, не более. По этому я советую ставить -Xmx1024M (гигабайт). Главное что бы -Xms было меньше чем Xmx или вообще что бы отсуствовало. А вообще, если убрать значения и клиент закроется с ошибкой, что не достаточно памяти — при повторном запуске клиент уже выделит больше памяти. По этому многие ошибки решаются парой повторых перезапусков.

карма: 57

Ответов: 344

#26: 2013-09-17 14:46:57

ЛС |
профиль |
цитата

Dtho_47, это то я понимаю, но тут и раньше чувак пробовал ставить 1024, пробовал 512, пробовал 768 и мне не понятно почему именно с 564 прокатило… конечно может проблема как раз в запусках а не в цифрах, может быть, но мало вероятно, т.к. чувак пробовал не раз и не два

карма: 9

Сударь, будьте так любезны, приведите мою дверь в порядок! И, не сочтите мою просьбу бестактной, но извольте сделать это в кратчайшие сроки.

0

Ответов: 91

#27: 2013-09-17 18:20:17

ЛС |
профиль |
цитата

Около недели колупался с клиентом, если бы я понимал механику этих обозначений, представлял как оно работает, думаю проблемы не возникло бы. Но как-то раньше не интересовался, да и не тянет в этой области пополнять багаж знаний, по этому только прибегая к помощи знающих людей мог решить проблему.

Кстати, до вашего совета admin, я вбивал в настройках оба значения, например «-Xms512M -Xmx1024M» и тому подобные, не догадался попробовать не вписать второй значение, думал уже крест на майне ставить, спасибо огромное за помощь!

Вполне возможно, что подобная проблема коснулась и коснётся не меня одного, если потребуется, для фикса, могу предоставить информацию о моём программном обеспечении и железе, а так же любую другую информацию, которая может пригодится Администрации по этому вопросу.

карма: 2

27

ФорумыПоддержка[Решено] Проблема с запуском клиента
← Ctrl1Ctrl →

Я в общем-то решил попробовать создать сервер Minecraft. Не собираюсь делать супер-мега проект, однако мне нравится процесс. Сам я не силен в этом, посему решил обратится за помощью на этот форум. Суть проблемы заключается вот в чем: я не могу запустить сервер, ибо какие-то проблемы с памятью в Java, однако я уже неоднократно и выделял память, и переустанавливал саму Java, ничем мне это не помогло. 5f649fa5a1ef3922503473.jpeg

Вот сам текс: Picked up _JAVA_OPTIONS: -Xmx512m
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Press any key to continue . . .


  • Вопрос задан

    более двух лет назад

  • 387 просмотров

Пригласить эксперта

Раз уж лезете задавать вручную ограничения, то надо и минимум указывать.
-Xms256m -Xmx2048m

256 — начальная.
2048 — всего.

У вас начальную jvm выбирает сама и не может, потому как вы предел сами указали.

И да, 512 это мало. Нужно размер кучи под 4 гб выдавать, т.е. так:
ms512
mx4096


  • Показать ещё
    Загружается…

09 февр. 2023, в 17:37

5000 руб./за проект

09 февр. 2023, в 17:35

50000 руб./за проект

09 февр. 2023, в 17:25

3800 руб./за проект

Минуточку внимания

This thread was marked as Locked by user-6840779.


  • Search


    • Search all Forums


    • Search this Forum


    • Search this Thread


  • Tools


    • Jump to Forum


  • #1

    Nov 27, 2011

    So i get this error when i try to start my Minecraft Server on my hosting server, I’m running Pail
    It works fine on my Local Computer, which i find weird

    Ive tried these two:

    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64"  java -Xms1024M -Xmx2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  java -Xincgc -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java.exe -Xincgc -Xmx2G -jar craftbukkit-0.0.1-snapshot.jar

    Here’s a picture of the message I’m getting

    Help is appreciated! :smile.gif:

    EDIT: Both machines are x64 Windows 7


  • #5

    Nov 27, 2011

    Yes, 2383 MB Available

    No, I don’t, should i get it? :smile.gif:


  • #7

    Nov 27, 2011

    Sweet! Server is now up and running! Thanks alot! :biggrin.gif:


  • #9

    Nov 27, 2011

    32bit Java is limited to 1024MB :tongue.gif:


  • #10

    Nov 27, 2011


    hexparrot


    • View User Profile


    • View Posts


    • Send Message



    View hexparrot's Profile

    • Lapis Lazuli Collector
    • Location:

      Phoenix, AZ
    • Join Date:

      12/24/2010
    • Posts:

      1,140
    • Minecraft:

      hexparrot
    • Member Details

    32bit Java is limited to 1024MB :tongue.gif:

    From http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#gc_heap_profile

    Why can’t I get a larger heap with the 32-bit JVM?

    The maximum theoretical heap limit for the 32-bit JVM is 4G. Due to various additional constraints such as available swap, kernel address space usage, memory fragmentation, and VM overhead, in practice the limit can be much lower. On most modern 32-bit Windows systems the maximum heap size will range from 1.4G to 1.6G. […] On 64-bit operating systems running the 32-bit VM, the max heap size can be higher

    So at least 1.4GB, and it may scale up to 1.6GB or slightly higher if on x64 Windows and still using 32-bit Java.


  • #13

    Oct 19, 2012

    my server is hosted on mcprohosting i can start if for this reason help me plz

    Your paying for McProHosting’s support, why not use it?

  • To post a comment, please login.

Posts Quoted:

Reply

Clear All Quotes


Понравилась статья? Поделить с друзьями:
  • Error occurred during initialization of vm intellij idea
  • Error occurred during initialization of vm initial heap size
  • Error occurred during initialization of vm gradle
  • Error occurred during initialization of vm failed setting boot class path
  • Error occurred during initialization of vm could not reserve enough space for 4145152kb object heap