I'm working on a runescape private server and I recently coded it to preload the world map in order to keep NPCs from "no-clipping" through objects. After I set up the code and went to run the server, I get this error message:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at config.WorldMap.loadWorldMap(WorldMap.java:60) at org.skillmenation.server.Server.main(Server.java:58)
I found a link and this is what it says:
How to set java heap size in Eclipse? You have 2 options: 1. Edit eclipse-home/eclipse.ini to be something like the following and restart Eclipse. -vmargs -Xms64m -Xmx256m
I changed my eclipse.ini to:
-vmargs -Dosgi.requiredJavaVersion=1.5 -Xms64m -Xmx512m
But I'm still getting the same error. Do I need to up the Xmx some more?
Solved: