Problem Unable to get higher RAM usage than 247mb

Znuas

New Member
Jul 29, 2019
5
0
0
Hi all,

I'm trying to get my monster server to run smooth so I figured that I need more Ram dedicated.
Only issue is that all the guides on the internet does not seem to have the same .Bat file settings as me (sure I haven't look'd hard enough).

My command in the .Bat file is:
java -Xms2048m -Xmx2048m -XX: PermSize=128m -jar FTBServer-1.6.4-965.jar nogui
pause

And the command in my SH file is:
java -Xms2048m -Xmx2048m -XX: PermSize=256m -jar FTBServer-1.6.4-965.jar nogui

My computer: Windows 7 64 bits, Intel i5-4670, 16Gb ram, Nvidia GTX 760

I know PermSize should not have a space in front but i didn't want any smileys.
 
Last edited:

Wagon153

New Member
Jul 29, 2019
3,150
0
0
Are you sure it is only dedicating 256 megabytes? Using does not equal dedicated. The Java VM will only use as much as it needs.
 

Znuas

New Member
Jul 29, 2019
5
0
0
So when my server runs it say: Usage 247mb (0%free) and i figured it should say alot more in the free section.

Maybe im wrong, i just want to verify that my settings are correct.
 
Last edited:

Znuas

New Member
Jul 29, 2019
5
0
0
So the issues continues with a crash report with the line [Severe]Encountered an unexpected exception OutOfMemoryError

Crashreport :


---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 7/17/14 6:14 AM
Description: Exception in server tick loop

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at cpw.mods.fml.common.LoadController.printModStates(LoadController.java:254)
at cpw.mods.fml.common.LoadController.transition(LoadController.java:125)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:523)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation
Memory: 50536 bytes (0 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total;
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: ~~ERROR~~ OutOfMemoryError: Java heap space
TConstruct Environment: Environment seems clean, however you are using a modpack; please report it to the pack author, not us!
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)
 
Last edited:

kittle

New Member
Jul 29, 2019
229
0
0
well your crash log says "JVM Flags: 0 total;"

meaning there are ZERO arguments passed to java when your server starts -- which makes no sense if you are using the .bat file on your first post.

you should be able to see the console output on the command line.. make sure it shows the command from your batch file
 

Znuas

New Member
Jul 29, 2019
5
0
0
I've tried starting it with both the .bat file and with the server.exe but the results is the same.
 

Znuas

New Member
Jul 29, 2019
5
0
0
My command in the .Bat file is:
java -Xms2048m -Xmx2048m -XX: PermSize=128m -jar FTBServer-1.6.4-965.jar nogui
pause
 

Zaflis

New Member
Jul 29, 2019
184
0
0
You cannot allocate 2G memory on a 32-bit OS. You can try

java -Xms1G -Xmx1G -XX: PermSize=128m -jar FTBServer-1.6.4-965.jar nogui

But you can propably not use very many mods with that server.

edit: Oh you say that you have 64-bit OS though. Then your default java must be linked to wrong place (x86)

Try changing the beginning of script to
"C:\Program Files\Java\jre7\bin\java.exe" (with quotes)
(Preferrably jre8 if you have...)
 
Last edited:

Connor Gavitt

New Member
Jul 29, 2019
1,091
0
0
Why there even is a 32bit java in this day and age is a mystery to me.[DOUBLEPOST=1406935635][/DOUBLEPOST]Get 64bit
 

Orannis396

New Member
Jul 29, 2019
9
0
0
As a java dev, there are 32 bit java for the same reason so much money was spent on upgrading from Windows XP. There are just that many old pc's around. java isn't a game engine its a programming language, we need people to be able to run things written in it.