#Java error

1 messages · Page 1 of 1 (latest)

thin marlin
#

Hey guys, my game kept crashing showing me this message about my Java being out of memory. I was playing on a single big map. What should I do here? Any suggestions? Thanks!

limpid yoke
#

I suggest you read up here

thin marlin
# limpid yoke I suggest you read up here

hi, I've seen the post on how to change the heap size, question is how do I type it such that I would change the heap size? I tried typing the commands like java -Xms16m -Xmx64m ClassName in steam commands and the win + r command prompt. Is there any way? Thanks!

limpid yoke
#

You would set in game custom launch arguments in Steam

#

Note that Xmx of 64m is very little

thin marlin
#

I used -java -Xmx64g and it didn't start for some reason ://

limpid yoke
#

Do you have 64 gigabytes of memory?

#

Because that's what you're telling the game

thin marlin
#

So -Xmx8g right?

limpid yoke
#

Leave some memory for the system, I'd suggest setting -Xmx4g

thin marlin
#

It's weird that I tried inputting that on theotown's steam command prompt in the advance options, but for some reason it won't start ://

limpid yoke
#

Then it implies you have 32-bit Java installed.

#

You need to have 64-bit Java installed instead.

thin marlin
#

I did install 64-bit java

#

I think it worked

#

I just typed "-Xmx4g" in the steam's command prompt