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.



  • Posts

    • Hello! • I specialize in creating visuals for game projects: I draw art, logos, UI elements, create 2D/3D animations, and design launchers and game-related websites. I work in a unique style tailored to the client's needs. • I always strive to present something unique and unseen before, to help you stand out from the rest. • I’d be happy to create awesome work for you to make your projects stronger! You can check out a more detailed portfolio and starting prices on my website. My Telegram: @Melvinex My site: https://mev.studio  
    • Under Development.
    • Without discouraging your enthusiasm, and having looked at what you went through... I think you asked Cursor to migrate l2j to .net.... on the other hand clearly you don't have experience in programming or in a high concurrency project... since in this kind of issues ORMs don't work... think that if it would work well in l2j we would use Spring Data with hibernate and that kind of things. it's not like that, unfortunately the best way to talk to the database in an efficient way is optimizing queries and interaction with the database. Don't get discouraged just keep researching!  
    • 저는 시스템을 한국어로 번역하고 인터페이스를 다운로드하여 적용했습니다. /target /attack 명령이 작동하지 않습니다. actionname.commandname을 변경했는데, 어디에서 변경해야 할까요? 전문가 여러분, 말씀해 주세요. 이걸 해결할 수 없어서 다음 단계로 넘어갈 수가 없어요 ㅠㅠ 명령어 이름이 문제인 것 같아요. 한국어로 번역하면 단축키가 안 먹히고, 영어로 번역하면 /attack 같은 명령어가 안 먹히네요. ㅠㅠ
    • thanks for the reply,   This is the Cadmus project  And i need  to adapt this community board to This is L2jOrion project  
  • Topics

×
×
  • Create New...