Resolved java heap space java.lang.OutOfMemoryError

MrTitan

Knight
Customer
I get this error when I try to start the server with the geodata ON. If I turn it off everything run smooth ... Any suggestions?
I will attach the PC specifications.


Code:
 ERROR Exception: RunnableImpl.run(): java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at java.util.BitSet.initWords(Unknown Source)
        at java.util.BitSet.<init>(Unknown Source)
        at l2.gameserver.idfactory.BitSetIDFactory.increaseBitSetCapacity(Unknown Source)
        at l2.gameserver.idfactory.BitSetIDFactory$BitSetCapacityCheck.runImpl(Unknown Source)
        at l2.commons.threading.RunnableImpl.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
 

Attachments

  • pcs.webp
    pcs.webp
    19.7 KB · Views: 10
check your .bat file and increase this value "-Xmx5G" where 5GB the amount of RAM allocated to your game server
 
check your .bat file and increase this value "-Xmx5G" where 5GB the amount of RAM allocated to your game server
It's already 5G
Code:
@echo off
:start
echo Starting GameServer.
echo.
java -server -Dfile.encoding=UTF-8 -Xmx5G -cp config;./* l2.gameserver.GameServer
 
Reinstalling server
You have mistakes
I tried with clean server from the SVN, it was the same. After reading all day I finally manage to solve the problem.
I needed to edit the system environment variables to solve the issue. From the .bat file all changes was useless.
 
Back
Top