• Register
1 vote
34 views

Problem:

I have been using java7 on my 32bit windows with 4 RAM and I am getting the messages below while using these codes

java -Xmx4G -Xms4G -jar Minecraft.jar 
java -Xmx3G -Xms3G -jar Minecraft.jar 
java -Xmx2G -Xms2G -jar Minecraft.jar
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.

Why this is happening? Any solution?

12 7 7
15,250 points

Please log in or register to answer this question.

1 Answer

1 vote

Solution:

Well, the minimum requirement on a 32 bit PC for heap size is 1.5 GB and the maximum size is 1.8 GB according to IBM. That’s the reason your JVM is not initialized for -Xmx2G

The possible solution, in this case, could be:

Go to Start > Control Panel > System > Advanced system settings > advanced(tab) > Environment Variables > System Variables > New

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Boom. This should work now.

13 9 6
94,240 points

Related questions

0 votes
1 answer 29 views
29 views
Why i am seeing this error can someone give me some explanation "Could not reserve enough space for object heap"” and how to resolve this issue.
asked Sep 14, 2020 Daniel Anderson 4k points
0 votes
1 answer 17 views
17 views
i have come across the Minecraft could not reserve enough space for object heap. How to fix could not reserve enough space for object heap Minecraft?
asked Dec 6, 2020 TeamScript 9.2k points
1 vote
1 answer 27 views
27 views
Problem: I kept on getting this error when building for Android (shadow demo): Building DEX Failed! G:\Unity\JavaPluginSample\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="G:/AndroidSDK/android-sdk_r09-windows\platform-tools/lib/" -jar "G:/AndroidSDK/android- ... initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. How to solve this?
asked Mar 27, 2020 LizzyM 6.1k points
1 vote
1 answer 23 views
23 views
Problem: I am getting this error when I tried to build shadow demo for android: Building DEX Failed! G:\Unity\JavaPluginSample\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="G:/AndroidSDK/android-sdk_r09-windows\platform-tools/lib/" -jar "G:/AndroidSDK/android- ... reserve enough space for object heap Could not create the Java virtual machine. Can anybody help to fix or explain me this error
asked Mar 24, 2020 LizzyM 6.1k points
0 votes
1 answer 119 views
119 views
Problem : I am having a box with 8gb of ram, so I don't think the total memory is the issue. This application is running properly on boxes with 6gb or less ram. What I am trying to do is to reserve 3GB of space using -Xmx3G command under "VM ... : Error occurred during initialization of VM; Could not reserve enough space for object heap using -Xmx3G Why am I getting such error any clue?
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 16 views
16 views
I am having trouble to make a minecraft server restart automatically.
asked Oct 4, 2020 Daniel Anderson 4k points
1 vote
1 answer 15 views
15 views
Problem: Hello all, I am a new student of Python programming. I am trying to make a program that will ask for different personal details from the user, and then print them all together in a single line. However, the program is encountering an error of TypeError ... am getting: TypeError: not enough arguments for format string I hope you’ll come forward and help me to save my day. Thanks.
asked Jul 8, 2020 adamSw 11.3k points
0 votes
1 answer 57 views
57 views
Problem: I have only basic knowledge on PHP. I am currently facing a problem with PHP. I am facing this error: Object of class stdClass could not be converted to string. Above error occurs as soon as I try to run below portion of PHP code from my site: function ... : $data['user_data'] = $this->auth->get_userdata($this->uri->segment(3)); I am looking for correct guidance on my above PHP error.
asked Sep 1, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 155 views
155 views
Problem: I want to add some of the data to my database but I am receiving below error: Catchable fatal error: Object of class PDOStatement could not be converted to string in /var/www/mandje.php on line 114. This is the code which is causing above error: foreach($_SESSION ... ->execute($sql); I am unable to find out my mistake. Looking for a PHP expert who can guide me in fixing the above error.
asked Aug 21, 2020 Raphael Pacheco 4.9k points