GC overhead limit exceeded

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

GC overhead limit exceeded

Post by u3games »

L2J Revision: 5214
L2JDP Revision: 8719

Log:
Exception in thread "C3P0PooledConnectionPoolManager-Helper Thread-#0" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "EffectsSTPool-12" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "EffectsSTPool-9" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "GeneralSTPool-13" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "AISTPool-13" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "AISTPool-9" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "EffectsSTPool-5" java.lang.OutOfMemoryError: GC overhead limit exceeded
NPC 32335 class not found
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.l2jserver.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:474)
at com.l2jserver.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:432)
at com.l2jserver.gameserver.model.AutoSpawnHandler$AutoSpawner.run(AutoSpawnHandler.java:511)
at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:86)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

Exception in thread "GeneralSTPool-7" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "EffectsSTPool-4" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "AISTPool-19" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "GeneralSTPool-21" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "EffectsSTPool-3" java.lang.OutOfMemoryError: GC overhead limit exceeded
Info server:
MICRO INTEL CORE I3 2100 3.1GHz S1155 3MB IN BOX
PB i3i5i7 S1155 GIGABYTE GAZ68MD2H 4DDR3VGAPCIEX2STA32USBRAIHDMIMATX
MEMORIA DDR3 4GB PC3-12800 1600MHZ KINGSTON HYPERX BLUE KHX1600C9D3B1/4G x2 = 16GB RAM
HD SATA III 500GB WESTERN DIGITAL CAVIAR GREEN SERIAL ATA III 32MB RETAIL x2 = 1Tb
Server run in ubuntu server, What should I do?
Image
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: GC overhead limit exceeded

Post by tukune »

post GameServer_loop.sh
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: GC overhead limit exceeded

Post by u3games »

DrOR wrote:post GameServer_loop.sh
Game Server:

Code: Select all

#!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done 
Login Server:

Code: Select all

#!/bin/bash err=1until [ $err == 0 ]; do    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"    [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"    nice -n -2 java -Xms128m -Xmx128m -cp ./../libs/*:l2jlogin.jar com.l2jserver.loginserver.L2LoginServer > log/stdout.log 2>&1    err=$?#   /etc/init.d/mysql restart    sleep 10;done 
Image
fokysss
Posts: 43
Joined: Sat Oct 09, 2010 4:25 pm

Re: GC overhead limit exceeded

Post by fokysss »

in GameServer_loop.sh edit -Xms1024m -Xmx1024m change to -Xms1024m -Xmx8192m
So your server will use 8 GB RAM
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: GC overhead limit exceeded

Post by MELERIX »

guys don't forget that you are sharing memory with MySQL and OS, you shouldn't assign the whole system physical memory for L2J.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: GC overhead limit exceeded

Post by Zoey76 »

MELERIX wrote:guys don't forget that you are sharing memory with MySQL and OS, you shouldn't assign the whole system physical memory for L2J.
And login server :D
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: GC overhead limit exceeded

Post by u3games »

Zoey76 wrote:
MELERIX wrote:guys don't forget that you are sharing memory with MySQL and OS, you shouldn't assign the whole system physical memory for L2J.
And login server :D
The server is only for l2j, which suggest I use?
Image
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: GC overhead limit exceeded

Post by tukune »

try fokysss suggestion
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: GC overhead limit exceeded

Post by u3games »

DrOR wrote:try fokysss suggestion
Ok, thx ^^
Image
Starter
Posts: 484
Joined: Sat Jan 23, 2010 4:42 pm

Re: GC overhead limit exceeded

Post by Starter »

Memory leak?
I have promises to keep and miles to go before I sleep.
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: GC overhead limit exceeded

Post by u3games »

Starter wrote:Memory leak?
Testing on my server public...

PD: Solved, thx ^^
Image
Post Reply