Jump to content
  • 0

[Dev Help] Question


Question

Posted

Exception in thread "ThreadPoolExecutor-2" java.lang.OutOfMemoryError: GC overhe
ad limit exceeded
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "ScheduledThreadPool-15"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "ThreadPoolExecutor-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "ScheduledThreadPool-5"

java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "ThreadPoolExecutor-8" Exception in thread "ThreadPoolExecut
or-1"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "ThreadPoolExecutor-1"
java.lang.OutOfMemoryError: GC overhead limit exceeded

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "ThreadPoolExecutor-8"

Someone can tell me why i got this error when i run gameserver?

Recommended Posts

  • 0
Posted

Do you have any players ingame ?

Do you use geoengine on ?

What's your computer specs (only ram i don't care if it got 50 CPUs)

What's your startGameServer.bat/sh properties ?

No players connected

No geodata

8gb ram

And last i don't see there how to add more memory (.../properties)

  • 0
Posted

The .bat/.sh is the shit you use to launch the server on. Edit it with notepad/notepad++, see RAM values and up them.

 

A basic value is 512m, 2g with geoengine on.

 

If RAM values on .sh/.bat are already that "big", then just change of pack, or revert your customs until it was ok, because it would mean you got a memory leak somewhere.

  • 0
Posted


@echo off
:start
echo Starting L2s GameServer.
echo.

java -server -Dfile.encoding=UTF-8 -Xmx1G -cp config;./* l2p.gameserver.GameServer

REM Debug ...
REM java -Dfile.encoding=UTF-8 -cp config;./* -Xmx1G -Xnoclassgc -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7456 l2s.gameserver.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Server restarted ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly ...
echo.
:end
echo.
echo Server terminated ...
echo.

pause

where?

  • 0
Posted

Take this:

java -server -Dfile.encoding=UTF-8 -Xmx1G -cp config;./* l2p.gameserver.GameServer

An chage it for this:

java -Dfile.encoding=UTF-8 -Xmx1G -cp config;./* l2p.gameserver.GameServer

 

or add server to ur mysql folder and paste the files on it

  • 0
Posted

same thing.:(

Fella ur OS is 32bits as i can imagine, so u need to edit the line to work with it.

java -Dfile.encoding=UTF-8 -Xmx1G -cp config;./* l2p.gameserver.GameServer

 

xmx means the Max Ram

Xms means the min Ram

 

so edit it to this and try

 

java -Dfile.encoding=UTF-8  -Xms512m -Xmx1024m -cp config;./* l2p.gameserver.GameServer

 

or

 

java -Dfile.encoding=UTF-8  -Xms1024m -Xmx1024m -cp config;./* l2p.gameserver.GameServer

 

^_^

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...