#Java out of memory error

1 messages · Page 1 of 1 (latest)

lean plaza
#

Happens when trying to load a giant or "even bigger" world, even though I literally have 64GB of RAM. I tried the recommendation on theotown's readme file but it straight up crashes the game when I try that. Installed Java but it seems to have no effect

bold flax
#

Ptag java heap

somber pilotBOT
bold flax
#

Ptag heap

somber pilotBOT
bold flax
#

Ptag list

somber pilotBOT
# bold flax Ptag list
TheoTown server tag list
  1. Alpha release
  2. Bankrupt
  3. Bugs
  4. Connection error
  5. Connectivity issues
  6. demands
  7. Developers
  8. diamond redeem
  9. DSA
  10. Files
  11. Forum plugins
  12. Free mode
  13. Hadestia's plugins
  14. Heightmaps
  15. Inbuilt heightmaps
  16. install plugin
  17. Java Download
  18. Language
  19. Localization
  20. M1 chips
bold flax
#

Ptag memory

somber pilotBOT
# bold flax Ptag memory

If you encounter java.lang.OutOfMemoryError: Java heap space error, that means that the game ran out of memory (ram) while processing your request or action.

If you're on mobile, there's not much you can do to alleviate this issue, closing other applications in the background might help. For PC, you can simply increase the maximum heap space as a launch argument. For example -Xmx4G will let the game use up to 4 gigabytes of memory. That is, of course if you have enough memory. Generally, it's not a good idea to allocate more than 50% of your entire system memory. If that doesn't work and you're on PC, please check if you have 64 bit Java installed, because if you don't, game can only use 2 gigabytes of memory.

lean plaza
#

I already did that Xmx4G thing. Even the 1024m causes a crash

bold flax
#

What version of Java did you get?

lean plaza
bold flax
#

Okay

#

Is that 64 bit?

#

What

lean plaza
#

How do I tell? -.-

#

It doesn't say

bold flax
#

Ptag java

bold flax
#

Get the 64 bit windows version

lean plaza
#

Where do I put the destination

bold flax
#

?

#

Just run the .exe

lean plaza
bold flax
#

Don't change it

lean plaza
#

Got it working now after 4 attempts🫠