Ir para conteúdo
  • Cadastre-se
  • 0

Erro game serve OutOfMemoryError: Java heap space Ajuda!


admin123

Pergunta

Ola bom dia gostaria de ajuda em relação a este erro aqui: 

                  * Enchant Item                               [ Ok ]

===============================================================================
INFO  Replaced: 2002_EnchantItem with a new version
INFO  Siege of Dion: Sat Jan 13 20:00:00 BRST 2018
importing custom: 9999: NPCBuffer
importing custom: 10021_SubirLevel
Exception in thread "GameTimeController" java.lang.OutOfMemoryError: Java heap space
        at net.l2jpx.gameserver.controllers.GameTimeController.moveObjects(GameTimeController.java:133)

WARN  NPC 20214 class not found
java.lang.reflect.InvocationTargetException
Caused by: java.lang.OutOfMemoryError: Java heap space
        at javolution.util.FastList.newNode(FastList.java:693)
        at javolution.util.FastList.<init>(FastList.java:132)
        at javolution.util.FastList.<init>(FastList.java:99)
        at net.l2jpx.gameserver.model.L2Character.<init>(L2Character.java:5144)
        at net.l2jpx.gameserver.model.actor.instance.L2NpcInstance.<init>(L2NpcInstance.java:350)
        at net.l2jpx.gameserver.model.L2Attackable.<init>(L2Attackable.java:358)
        at net.l2jpx.gameserver.model.actor.instance.L2MonsterInstance.<init>(L2MonsterInstance.java:70)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at net.l2jpx.gameserver.model.spawn.L2Spawn.doSpawn(L2Spawn.java:514)
        at net.l2jpx.gameserver.model.spawn.L2Spawn.init(L2Spawn.java:442)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable.fillSpawnTable(SpawnTable.java:142)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable.access$000(SpawnTable.java:48)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable$NPCServerTask.run(SpawnTable.java:392)
        at net.l2jpx.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(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)
        at net.l2jpx.gameserver.controllers.GameTimeController$TimerThread.run(GameTimeController.java:199)
Exception in thread "GeneralSTPool-13" java.lang.OutOfMemoryError: Java heap space
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)WARN  10:39:19 TimerThread stop with following error. restart it.

        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
WARN  Failed executing script: C:\Users\TORRES\Desktop\L2 Sagrado\gameserver\data\scripts\quests\5_MinersFavor\__init__.py. See __init__.py.error.LOGGER for details.
        at java.util.concurrent.ThreadPoolExecutor.getTask(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)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler- the VM may need to be forcibly terminated

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "GeneralSTPool-4"
Exception in thread "GeneralSTPool-7" java.lang.OutOfMemoryError: Java heap space
Exception in thread "GeneralSTPool-11" Exception in thread "GeneralSTPool-14" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
INFO  [AutoSaveManager] AutoSaveTask, 0 players data saved.
INFO  [AutoSaveManager] ConnectionCheckTask, players connections checked.
INFO  [AutoSaveManager] AutoCleanDBTask, 0 entries cleaned from db.

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

17 respostass a esta questão

Posts recomendados

  • 0
53 minutos atrás, admin123 disse:

Ola bom dia gostaria de ajuda em relação a este erro aqui: 

                  * Enchant Item                               [ Ok ]

===============================================================================
INFO  Replaced: 2002_EnchantItem with a new version
INFO  Siege of Dion: Sat Jan 13 20:00:00 BRST 2018
importing custom: 9999: NPCBuffer
importing custom: 10021_SubirLevel
Exception in thread "GameTimeController" java.lang.OutOfMemoryError: Java heap space
        at net.l2jpx.gameserver.controllers.GameTimeController.moveObjects(GameTimeController.java:133)

WARN  NPC 20214 class not found
java.lang.reflect.InvocationTargetException
Caused by: java.lang.OutOfMemoryError: Java heap space
        at javolution.util.FastList.newNode(FastList.java:693)
        at javolution.util.FastList.<init>(FastList.java:132)
        at javolution.util.FastList.<init>(FastList.java:99)
        at net.l2jpx.gameserver.model.L2Character.<init>(L2Character.java:5144)
        at net.l2jpx.gameserver.model.actor.instance.L2NpcInstance.<init>(L2NpcInstance.java:350)
        at net.l2jpx.gameserver.model.L2Attackable.<init>(L2Attackable.java:358)
        at net.l2jpx.gameserver.model.actor.instance.L2MonsterInstance.<init>(L2MonsterInstance.java:70)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at net.l2jpx.gameserver.model.spawn.L2Spawn.doSpawn(L2Spawn.java:514)
        at net.l2jpx.gameserver.model.spawn.L2Spawn.init(L2Spawn.java:442)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable.fillSpawnTable(SpawnTable.java:142)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable.access$000(SpawnTable.java:48)
        at net.l2jpx.gameserver.datatables.sql.SpawnTable$NPCServerTask.run(SpawnTable.java:392)
        at net.l2jpx.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(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)
        at net.l2jpx.gameserver.controllers.GameTimeController$TimerThread.run(GameTimeController.java:199)
Exception in thread "GeneralSTPool-13" java.lang.OutOfMemoryError: Java heap space
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)WARN  10:39:19 TimerThread stop with following error. restart it.

        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
WARN  Failed executing script: C:\Users\TORRES\Desktop\L2 Sagrado\gameserver\data\scripts\quests\5_MinersFavor\__init__.py. See __init__.py.error.LOGGER for details.
        at java.util.concurrent.ThreadPoolExecutor.getTask(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)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler- the VM may need to be forcibly terminated

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "GeneralSTPool-4"
Exception in thread "GeneralSTPool-7" java.lang.OutOfMemoryError: Java heap space
Exception in thread "GeneralSTPool-11" Exception in thread "GeneralSTPool-14" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
INFO  [AutoSaveManager] AutoSaveTask, 0 players data saved.
INFO  [AutoSaveManager] ConnectionCheckTask, players connections checked.
INFO  [AutoSaveManager] AutoCleanDBTask, 0 entries cleaned from db.

 

1xFoI0n.jpg.5e0903bc1b582f95590d4a4c1fce368a.jpg

Link para o comentário
Compartilhar em outros sites


  • 0

Ja fiz esse tutorial e o erro continua.... meu pc tem 8gb java 8 64 

e o pre e esse que da erro no game serve: 

 la mesmo tem essa pergunta de um usuário mais não foi respondida,  e outra duvida porque la na area de pack eu nao posso eu não posso interagir nos tópicos e pergunta la não tenho privilegio ou e proibido ?

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0

fiz esse tutorial ai que você respodeu ainda continua um erro parecido:

INFO  Replaced: 2002_EnchantItem with a new version
importing custom: 9999: NPCBuffer
importing custom: 10021_SubirLevel
WARN  Failed executing script: C:\Users\TORRES\Desktop\L2 Sagrado\gameserver\data\scripts\quests\SagasSuperclass\__init__.py. See __init__.py.error.LOGGER for details.
Exception in thread "GeneralSTPool-12" java.lang.OutOfMemoryError: Java heap space
WARN  Failed executing script: C:\Users\TORRES\Desktop\L2 Sagrado\gameserver\data\scripts\quests\1_LettersOfLove1\__init__.py. See __init__.py.error.LOGGER for details.
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "GeneralSTPool-10"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "GeneralSTPool-3"
Exception in thread "GeneralSTPool-3" Exception in thread "GeneralSTPool-6" Exception in thread "GeneralSTPool-15" java.lang.OutOfMemoryError: Java heap space
Exception in thread "GeneralSTPool-4" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "GeneralSTPool-11" java.lang.OutOfMemoryError: Java heap space

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0
17 minutos atrás, admin123 disse:

Ja fiz esse tutorial e o erro continua.... meu pc tem 8gb java 8 64 

e o pre e esse que da erro no game serve: 

 la mesmo tem essa pergunta de um usuário mais não foi respondida,  e outra duvida porque la na area de pack eu nao posso eu não posso interagir nos tópicos e pergunta la não tenho privilegio ou e proibido ?

qual java vc ta usando? tenta colocar a memoria maior entao ja que seu pc é de 8gb

1xFoI0n.jpg.5e0903bc1b582f95590d4a4c1fce368a.jpg

Link para o comentário
Compartilhar em outros sites

  • 0
2 minutos atrás, MeGaPacKl disse:

qual java vc ta usando? tenta colocar a memoria maior entao ja que seu pc é de 8gb

meu java e 8 64 bits  segue a configuração do meu start serve porfavor ver se tem algo errado :

 

@echo off
title L2 Sagrado: Game Server Console
:start
echo Starting L2J-Project-X Core Game Server.
echo Official website :

O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo Enjoy by server core. Bee happy!
echo ------------------------------
echo.


REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF8 -Xmn512m -Xmn512m -cp ./lib/*;./lib/uMad/*;l2jpx-core.jar net.l2jpx.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx4096m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------

if ERRORLEVEL 7 goto telldown
if ERRORLEVEL 6 goto tellrestart
if ERRORLEVEL 5 goto taskrestart
if ERRORLEVEL 4 goto taskdown
REM 3 - abort
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:tellrestart
echo.
echo Telnet server Restart ...
echo Send you bug to :

O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo.
goto start
:taskrestart
echo.
echo Auto Task Restart ...
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo.
goto start
:restart
echo.
echo Admin Restart ...
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo.
goto start
:taskdown
echo .
echo Server terminated (Auto task)
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo .
:telldown
echo .
echo Server terminated (Telnet)
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo .
:error
echo.
echo Server terminated abnormally
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo.
:end
echo.
echo server terminated
echo Send you bug to :
O conteúdo está oculto, favor efetuar login ou se cadastrar!

echo.
:question
set choix=q
set /p choix=Restart(r) or Quit(q)
if /i %choix%==r goto start
if /i %choix%==q goto exit
:exit
exit
pause

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0

Aumente também a quantidade de threads na rev, esse projeto não sei onde está a configuração de threads, mas mexe nela e isso provavelmente acabará, já que já aumentou a memória do gameserver.

 

//EDIT

Você não aumentou a memória do Gameserver, por isso não está mudando nada.

 

O conteúdo está oculto, favor efetuar login ou se cadastrar!


Você estava editando errado, use o exemplo acima.

Editado por Tayran.JavaDev

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

 

9 minutos atrás, Tayran.JavaDev disse:

Aumente também a quantidade de threads na rev, esse projeto não sei onde está a configuração de threads, mas mexe nela e isso provavelmente acabará, já que já aumentou a memória do gameserver.

Obrigado pelas respostas.. não faço ideia onde fica isso aqui mas, tenho outras rev aqui com com game serve com a memoria muito inferior a isso e roda normal aqui inclusive com   L2J-Project-X que se não me engane é base frozen

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0
3 minutos atrás, admin123 disse:

Obrigado pelas respostas.. não faço ideia onde fica isso aqui mas, tenho outras rev aqui com com game serve com a memoria muito inferior a isso e roda normal aqui inclusive com   L2J-Project-X que se nao me engane é base frozen

Falou bem, outras revs, com outras necessidades, a solução está ai, só aplicar.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0
15 minutos atrás, Tayran.JavaDev disse:

Aumente também a quantidade de threads na rev, esse projeto não sei onde está a configuração de threads, mas mexe nela e isso provavelmente acabará, já que já aumentou a memória do gameserver.

 

//EDIT

Você não aumentou a memória do Gameserver, por isso não está mudando nada.

 

O conteúdo está oculto, favor efetuar login ou se cadastrar!


Você estava editando errado, use o exemplo acima.

fiz a Alteração com você disse agora o erro e outro segue:

 

Starting L2J-Project-X Core Game Server.
Official website :

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Enjoy by server core. Bee happy!
------------------------------

Invalid initial young generation size: -Xmn5120m
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Server terminated abnormally
Send you bug to :

O conteúdo está oculto, favor efetuar login ou se cadastrar!


server terminated
Send you bug to :

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Restart(r) or Quit(q)
 

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0
O conteúdo está oculto, favor efetuar login ou se cadastrar!

Tente assim, você não tem disponível 5gb de memória, por isso o erro.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0
10 minutos atrás, Tayran.JavaDev disse:
O conteúdo está oculto, favor efetuar login ou se cadastrar!

Tente assim, você não tem disponível 5gb de memória, por isso o erro.

Tentei  4096 não tive sucesso... ai tentei 3072   configuração atual :

 

REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF8 -Xmn3072m -Xmn1024m -cp ./lib/*;./lib/uMad/*;l2jpx-core.jar net.l2jpx.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx4096m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------

 

ERRO ATUAL: 

 

  * Enchant Item                               [ Ok ]

===============================================================================
INFO  Replaced: 2002_EnchantItem with a new version
INFO  Siege of Dion: Sat Jan 13 20:00:00 BRST 2018
importing custom: 9999: NPCBuffer
importing custom: 10021_SubirLevel
Exception in thread "main" Exception in thread "GeneralSTPool-12" java.lang.OutOfMemoryError: Java heap space
        at javolution.util.FastMap.setup(FastMap.java:257)
        at javolution.util.FastMap.<init>(FastMap.java:249)
        at javolution.util.FastMap.<init>(FastMap.java:218)

stzAYFE.png?1

Link para o comentário
Compartilhar em outros sites

  • 0

Amigo você está com algum problema interno, isso é na máquina, tem algo consumindo sua memória toda.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

as outras revs estão usando só 512 da sua memória, essa está precisando de mais memória que o normal, quando a gente aumenta a memória do gameserver vem o erro que não tem essa memória disponível, então sim, o problema é interno, se aumentar da mesma forma em outra rev vai continuar o erro mesmo em outra rev.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

Eu estive com esse mesmo problema e o revolvi de maneira simples.

Vai em meu computador>clique com botão direito> Propriedade>

image.thumb.png.afa8f0d3ceeb1be824433097384345d1.png

 

Configurações Avançadas Sistema> 

image.thumb.png.f9f68a6b346677e7eccf54bc40dafb07.png

 

Variáveis de Ambiente>

image.png.d7c83aa3d3553fdc6a74f5b4172d65f4.png

 

Variáveis do sistema>_Java_Options.

De um duplo clique e aparecera uma tela igual essa.

image.png.9cfcf522faff30517311745f0c8b92cf.png

Depois é só configurar o valor desejado dar ok e correr pra torcida.

Demorei um dia pra achar essa solução super simples kkkkk

Screenshot_1.png.4e1e8b4bfdaca2be7f7d75189b4da0bf.png

 

image.png

image.png

image.png

Link para o tópico origial com o tutorial em uma das respostas. (está em inglês)

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Editado por antares08

Andrew Alves Bianconi

Link para o comentário
Compartilhar em outros sites

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.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  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.

Processando...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.