Jump to content
  • 0

Could not reserve enough space for object heap


Question

Posted

This is a copy paste from my post in a thread on the General Tekkit SMP board here. I thought it should be here as well/instead.

To fix the following error:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create Java virtual machine.

Edit(right click > edit) the launch.bat so that it contains the following:

java -Xmx1G -Xms512M -jar Tekkit.jar nogui

pause

You should also think about whether you have enough RAM to be running the server.

Some other things that have come up:

The server folder name cannot include "!", this probably applies to other special characters as well.

If the server complains "too small initial heap" you most likely forgot the M on -Xms512M

Some more details.

G=Gigabyte

M=Megabyte

So Xmx specifies the maximum size of the heap. it does not limit the amount of memory tekkit will use, only the heap which is one use for memory.

Xmx should be less than total free memory, AND if you are running 32bit java it should be less than 1.5G.

If you get stack overflow errors you should increase this value

Xms specifies the initial size of the heap, its not that important in this case, ideally keep it around what the server uses right after it starts up, 512M is plenty for me, this should never really need to be changed.

Recommended Posts

  • 0
Posted

ok so how do I do this:

Edit(right click > edit) the launch.bat so that it contains the following:

java -Xmx1G -Xms512M -jar Tekkit.jar nogui

pause

?????

Grumpy

MOD EDIT: I'll give you a hint: it doesn't start with signing your post.

  • 0
Posted

how do i add 5gb of RAM to my tekkit server?

Works

java -Xmx1G -Xms1G -jar Tekkit.jar

pause

Does not work

java -Xmx5G -Xms5G -jar Tekkit.jar

pause

Any help?

(Windows Server 2003 Java 1.6&1.7 6gb of RAM)

  • 0
Posted

how do i add 5gb of RAM to my tekkit server?

Works

java -Xmx1G -Xms1G -jar Tekkit.jar

pause

Does not work

java -Xmx5G -Xms5G -jar Tekkit.jar

pause

Any help?

(Windows Server 2003 Java 1.6&1.7 6gb of RAM)

Why do you want to use 5 Gb? Why does it not work, what's the error? you say you have java 1.6 and 1.7 which are you using? 32bit or 64bit java?

Seriously if you want help at least make an effort.

  • 0
Posted

Thank you, this fixed my problem however I have encountered another one.

After I start it the lines of text show up, most starting with "[sEVERE]" and ending with "<Unknown Source>" which I don't think is good.

After a few seconds everything stops completely and nothing happens, the last thing it says is "at.net.minecraft.server.ThreadServerApplication.run<SourceFile:492>

I'm not sure what to do next. Any help is appreciated, thank you.

  • 0
Posted

Thank you, this fixed my problem however I have encountered another one.

After I start it the lines of text show up, most starting with "[sEVERE]" and ending with "<Unknown Source>" which I don't think is good.

After a few seconds everything stops completely and nothing happens, the last thing it says is "at.net.minecraft.server.ThreadServerApplication.run<SourceFile:492>

I'm not sure what to do next. Any help is appreciated, thank you.

http://forums.technicpack.net/threads/new-report-format-required-reading.2292/

  • 0
Posted

I can't think of a reason it wouldn't work on XP. It really doesn't matter what you use to edit it, it's just a text file. Notepad will do fine.

  • 0
Posted

right i got the memory heap done but i got this now i have to post this in parts because its bigger then 5000 letters cant find the bit but its sayin that some mods dont contiane the mod or cant load it plz help

  • 0
Posted

i get this huge error

C:\Users\Jordan\Desktop\Tekki>java -Xmx1G -Xms512M -jar Tekkit.jar nogui

182 recipes

27 achievements

15:38:02 [iNFO] Starting minecraft server version 1.2.5

15:38:02 [iNFO] Attempting early MinecraftForge initialization

15:38:02 [iNFO] Completed early MinecraftForge initialization

15:38:02 [iNFO] Forge Mod Loader version 2.2.91.162 for Minecraft 1.2.5 loading

15:38:02 [iNFO] Loading mods from C:\Users\Jordan\Desktop\Tekki\mods

15:38:02 [WARNING] Failed to load mod class net/minecraft/server/mod_NetherOres.

class in C:\Users\Jordan\Desktop\Tekki\mods\mod_NetherOres.jar

15:38:02 [sEVERE] Zip file mod_NetherOres.jar failed to read properly

15:38:02 [iNFO] File mod_NetherOres.jar contained no mods

15:38:02 [iNFO] Directory weaponmod contained no mods

15:38:02 [sEVERE] A problem has occured during mod loading. Likely a corrupt jar

is located in your mods directory

15:38:02 [sEVERE] cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.Loade

rException: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_Net

herOres : Unsupported major.minor version 51.0

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.load(Loader.java:436)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadMods(Loader.java:606)

15:38:02 [sEVERE] at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBuk

kitHandler.java:134)

15:38:02 [sEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe

rver.java:135)

15:38:02 [sEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer

ver.java:438)

15:38:02 [sEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour

ceFile:492)

15:38:02 [sEVERE] Caused by: cpw.mods.fml.common.LoaderException: java.lang.Unsu

pportedClassVersionError: net/minecraft/server/mod_NetherOres : Unsupported majo

r.minor version 51.0

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadModClass(Loader.java:5

27)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.attemptFileLoad(Loader.jav

a:562)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.load(Loader.java:419)

15:38:02 [sEVERE] ... 5 more

15:38:02 [sEVERE] Caused by: java.lang.UnsupportedClassVersionError: net/minecra

ft/server/mod_NetherOres : Unsupported major.minor version 51.0

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClass1(Native Method)

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClassCond(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClass(Unknown Source)

15:38:02 [sEVERE] at java.security.SecureClassLoader.defineClass(Unknown S

ource)

15:38:02 [sEVERE] at java.net.URLClassLoader.defineClass(Unknown Source)

15:38:02 [sEVERE] at java.net.URLClassLoader.access$000(Unknown Source)

15:38:02 [sEVERE] at java.net.URLClassLoader$1.run(Unknown Source)

15:38:02 [sEVERE] at java.security.AccessController.doPrivileged(Native Me

thod)

15:38:02 [sEVERE] at java.net.URLClassLoader.findClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown So

urce)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.Class.forName0(Native Method)

15:38:02 [sEVERE] at java.lang.Class.forName(Unknown Source)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadModClass(Loader.java:4

94)

15:38:02 [sEVERE] ... 7 more

15:38:02 [sEVERE] Unexpected exception

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: java.l

ang.UnsupportedClassVersionError: net/minecraft/server/mod_NetherOres : Unsuppor

ted major.minor version 51.0

at cpw.mods.fml.common.Loader.load(Loader.java:436)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:606)

at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:

134)

at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)

at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

Caused by: cpw.mods.fml.common.LoaderException: java.lang.UnsupportedClassVersio

nError: net/minecraft/server/mod_NetherOres : Unsupported major.minor version 51

.0

at cpw.mods.fml.common.Loader.loadModClass(Loader.java:527)

at cpw.mods.fml.common.Loader.attemptFileLoad(Loader.java:562)

at cpw.mods.fml.common.Loader.load(Loader.java:419)

... 5 more

Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_Neth

erOres : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.Loader.loadModClass(Loader.java:494)

... 7 more

  • 0
Posted

i get this huge error

C:\Users\Jordan\Desktop\Tekki>java -Xmx1G -Xms512M -jar Tekkit.jar nogui

182 recipes

27 achievements

15:38:02 [iNFO] Starting minecraft server version 1.2.5

15:38:02 [iNFO] Attempting early MinecraftForge initialization

15:38:02 [iNFO] Completed early MinecraftForge initialization

15:38:02 [iNFO] Forge Mod Loader version 2.2.91.162 for Minecraft 1.2.5 loading

15:38:02 [iNFO] Loading mods from C:\Users\Jordan\Desktop\Tekki\mods

15:38:02 [WARNING] Failed to load mod class net/minecraft/server/mod_NetherOres.

class in C:\Users\Jordan\Desktop\Tekki\mods\mod_NetherOres.jar

15:38:02 [sEVERE] Zip file mod_NetherOres.jar failed to read properly

15:38:02 [iNFO] File mod_NetherOres.jar contained no mods

15:38:02 [iNFO] Directory weaponmod contained no mods

15:38:02 [sEVERE] A problem has occured during mod loading. Likely a corrupt jar

is located in your mods directory

15:38:02 [sEVERE] cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.Loade

rException: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_Net

herOres : Unsupported major.minor version 51.0

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.load(Loader.java:436)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadMods(Loader.java:606)

15:38:02 [sEVERE] at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBuk

kitHandler.java:134)

15:38:02 [sEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe

rver.java:135)

15:38:02 [sEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer

ver.java:438)

15:38:02 [sEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour

ceFile:492)

15:38:02 [sEVERE] Caused by: cpw.mods.fml.common.LoaderException: java.lang.Unsu

pportedClassVersionError: net/minecraft/server/mod_NetherOres : Unsupported majo

r.minor version 51.0

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadModClass(Loader.java:5

27)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.attemptFileLoad(Loader.jav

a:562)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.load(Loader.java:419)

15:38:02 [sEVERE] ... 5 more

15:38:02 [sEVERE] Caused by: java.lang.UnsupportedClassVersionError: net/minecra

ft/server/mod_NetherOres : Unsupported major.minor version 51.0

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClass1(Native Method)

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClassCond(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.defineClass(Unknown Source)

15:38:02 [sEVERE] at java.security.SecureClassLoader.defineClass(Unknown S

ource)

15:38:02 [sEVERE] at java.net.URLClassLoader.defineClass(Unknown Source)

15:38:02 [sEVERE] at java.net.URLClassLoader.access$000(Unknown Source)

15:38:02 [sEVERE] at java.net.URLClassLoader$1.run(Unknown Source)

15:38:02 [sEVERE] at java.security.AccessController.doPrivileged(Native Me

thod)

15:38:02 [sEVERE] at java.net.URLClassLoader.findClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown So

urce)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)

15:38:02 [sEVERE] at java.lang.Class.forName0(Native Method)

15:38:02 [sEVERE] at java.lang.Class.forName(Unknown Source)

15:38:02 [sEVERE] at cpw.mods.fml.common.Loader.loadModClass(Loader.java:4

94)

15:38:02 [sEVERE] ... 7 more

15:38:02 [sEVERE] Unexpected exception

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: java.l

ang.UnsupportedClassVersionError: net/minecraft/server/mod_NetherOres : Unsuppor

ted major.minor version 51.0

at cpw.mods.fml.common.Loader.load(Loader.java:436)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:606)

at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:

134)

at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)

at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

Caused by: cpw.mods.fml.common.LoaderException: java.lang.UnsupportedClassVersio

nError: net/minecraft/server/mod_NetherOres : Unsupported major.minor version 51

.0

at cpw.mods.fml.common.Loader.loadModClass(Loader.java:527)

at cpw.mods.fml.common.Loader.attemptFileLoad(Loader.java:562)

at cpw.mods.fml.common.Loader.load(Loader.java:419)

... 5 more

Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_Neth

erOres : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.Loader.loadModClass(Loader.java:494)

... 7 more

same as me but it was to big to post mine

  • 0
Posted

i get this huge error

...

Why do you think this has anything to do with "Could not reserve enough space for object heap"?

Please use the report format.

And please search the forums to see if your error has happened to other people, which in this case it has, in fact it's stickied on this board right next to this post. You need to install java 7. That or disable the offending mod, in this case, nether ores.

  • 0
Posted

my friend keeps getting an invalid player name detected error when he tries to join my server yet i can join the server from my house using his name, there are no -'s or.'s in his username so it is not that can some one help

  • 0
Posted

Thanks but I did this, it worked once then gave a huge error"(64bit windows operating system, tekkit version 3.0.4)

C:\Users\____\Desktop\tekkit server>java -Xmx1G -Xms512M -jar Tekkit.jar nogui

182 recipes

27 achievements

java.lang.UnsatisfiedLinkError: C:\Users\Alex\AppData\Local\Temp\jline_git-Bukki

t-jenkins-CraftBukkit-98.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.load0(Unknown Source)

at java.lang.System.load(Unknown Source)

at jline.WindowsTerminal.loadLibrary(WindowsTerminal.java:315)

at jline.WindowsTerminal.initializeTerminal(WindowsTerminal.java:240)

at jline.Terminal.setupTerminal(Terminal.java:75)

at jline.Terminal.getTerminal(Terminal.java:26)

at jline.ConsoleReader.<init>(ConsoleReader.java:191)

at jline.ConsoleReader.<init>(ConsoleReader.java:186)

at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:96)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:614)

at org.bukkit.craftbukkit.Main.main(Main.java:134)

C:\Users\____\Desktop\tekkit server>pause

Press any key to continue . . .

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...