Hello.
I saw various posts on similar situations like mine.
I did all the optimization on the server for give more memory to the server.
Here is my Gameserver_loop.sh :
#!/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 -Xms2048m -Xmx4096m -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
and here is my Gameserver.dat :
@echo off
title Game Server Console
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Xmx2048m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx4096m -Xms2048m -Xmn2048m -XX:PermSize=512m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM If you are having troubles on server shutdown (saving data),
REM add this to startup paramethers: -Djava.util.logging.manager=net.sf.l2j.L2LogManager. Example:
REM java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
REM -------------------------------------
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly
echo.
:end
echo.
echo server terminated
echo.
pause
I also increased the numbers of the slots on mysql.
Here is my debug full from telnet :
2009-08-23 21:48:50 +0300
L2J Server Version: 2943
DP Revision: 5990
Server Status:
---> Player Count: 153/1000
---> Offline Count: 0/153
+--> Object Count: 106509
+--> AI Count: 43073
+.... L2Item(Void): 424
+.......... L2Item: 61655
+....... L2Monster: 40229
+......... Minions: 2989
+.. Minions Groups: 1920
+........... L2Npc: 2994
+............ L2Pc: 149
+........ L2Summon: 7
+.......... L2Door: 1001
+.......... L2Char: 50
---> Ingame Time: 18:26
---> Server Uptime: 34hrs 2mins 45secs
---> GM Count: 1
---> Threads: 28
RAM Used: 1640
## Java Platform Information ##
Java Runtime Name: Java(TM) SE Runtime Environment
Java Version: 1.6.0_14
Java Class Version: 50.0
## Virtual Machine Information ##
VM Name: Java HotSpot(TM) 64-Bit Server VM
VM Version: 14.0-b16
VM Vendor: Sun Microsystems Inc.
VM Info: mixed mode
## OS Information ##
Name: Windows 2003
Architeture: amd64
Version: 5.2
## Runtime Information ##
CPU Count: 2
Current Free Heap Size: 175 mb
Current Heap Size: 1815 mb
Maximum Heap Size: 1820 mb
## Class Path Information ##
./../libs/bsh-2.0b5.jar
./../libs/bsh-engine.jar
./../libs/c3p0-0.9.1.2.jar
./../libs/ecj.jar
./../libs/java-engine.jar
./../libs/javolution-5.3.1.jar
./../libs/javolution.jar
./../libs/jython-engine.jar
./../libs/jython.jar
./../libs/mmocore.jar
./../libs/mysql-connector-java-5.1.7-bin.jar
l2jserver.jar
## Threads Information ##
--------------
Thread[AISTPool-1,5,AISTPool] (19)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.destroyItem(ItemContainer.java:432)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.destroyItem(PcInventory.java:424)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItem(L2PcInstance.java:3205)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemWithoutTrace(L2PcInstance.java:3295)
handlers.itemhandlers.SoulShots.useItem(Unknown Source)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.rechargeAutoSoulShot(L2PcInstance.java:9199)
net.sf.l2j.gameserver.model.actor.L2Character.doAttack(L2Character.java:867)
net.sf.l2j.gameserver.model.actor.L2Character$AIAccessor.doAttack(L2Character.java:3287)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance$AIAccessor.doAttack(L2PcInstance.java:310)
net.sf.l2j.gameserver.ai.L2PlayerAI.thinkAttack(L2PlayerAI.java:250)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtThink(L2PlayerAI.java:345)
net.sf.l2j.gameserver.ai.L2CharacterAI.onEvtReadyToAct(L2CharacterAI.java:668)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtReadyToAct(L2PlayerAI.java:110)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:442)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:357)
net.sf.l2j.gameserver.model.actor.L2Character$NotifyAITask.run(L2Character.java:2481)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[AISTPool-2,5,AISTPool] (20)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.destroyItem(ItemContainer.java:432)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.destroyItem(PcInventory.java:424)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItem(L2PcInstance.java:3205)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemWithoutTrace(L2PcInstance.java:3295)
handlers.itemhandlers.SoulShots.useItem(Unknown Source)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.rechargeAutoSoulShot(L2PcInstance.java:9199)
net.sf.l2j.gameserver.model.actor.L2Character.doAttack(L2Character.java:867)
net.sf.l2j.gameserver.model.actor.L2Character$AIAccessor.doAttack(L2Character.java:3287)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance$AIAccessor.doAttack(L2PcInstance.java:310)
net.sf.l2j.gameserver.ai.L2PlayerAI.thinkAttack(L2PlayerAI.java:250)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtThink(L2PlayerAI.java:345)
net.sf.l2j.gameserver.ai.L2CharacterAI.onEvtReadyToAct(L2CharacterAI.java:668)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtReadyToAct(L2PlayerAI.java:110)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:442)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:357)
net.sf.l2j.gameserver.model.actor.L2Character$NotifyAITask.run(L2Character.java:2481)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Attach Listener,5,system] (5)
State: RUNNABLE
isAlive: true | isDaemon: true | isInterrupted: false
--------------
Thread[DeadLockDetector,5,main] (27)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Thread.sleep(Native Method)
net.sf.l2j.util.DeadLockDetector.run(DeadLockDetector.java:94)
--------------
Thread[DestroyJavaVM,5,main] (31)
State: RUNNABLE
isAlive: true | isDaemon: false | isInterrupted: false
--------------
Thread[EffectsSTPool-1,5,EffectsSTPool] (22)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.addItem(ItemContainer.java:250)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.addItem(PcInventory.java:348)
net.sf.l2j.gameserver.model.quest.QuestState.giveItems(QuestState.java:465)
net.sf.l2j.gameserver.model.quest.QuestState.giveItems(QuestState.java:452)
sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.python.core.PyReflectedFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyInstance.invoke(Unknown Source)
org.python.pycode.serializable._pyx1250930761062.giveReward$2(__init__.py:160)
org.python.pycode.serializable._pyx1250930761062.call_function(__init__.py)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.pycode.serializable._pyx1250930761062.onKill$7(__init__.py:371)
org.python.pycode.serializable._pyx1250930761062.call_function(__init__.py)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject._jcallexc(Unknown Source)
org.python.core.PyObject._jcall(Unknown Source)
org.python.proxies.main$Quest$328.onKill(Unknown Source)
net.sf.l2j.gameserver.model.quest.Quest.notifyKill(Quest.java:412)
net.sf.l2j.gameserver.model.actor.L2Attackable$OnKillNotifyTask.run(L2Attackable.java:470)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[EffectsSTPool-2,5,EffectsSTPool] (24)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.addItem(ItemContainer.java:250)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.addItem(PcInventory.java:348)
net.sf.l2j.gameserver.model.quest.QuestState.giveItems(QuestState.java:465)
net.sf.l2j.gameserver.model.quest.QuestState.giveItems(QuestState.java:452)
sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.python.core.PyReflectedFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyInstance.invoke(Unknown Source)
org.python.pycode.serializable._pyx1250930761078.onKill$5(__init__.py:114)
org.python.pycode.serializable._pyx1250930761078.call_function(__init__.py)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject._jcallexc(Unknown Source)
org.python.core.PyObject._jcall(Unknown Source)
org.python.proxies.main$Quest$329.onKill(Unknown Source)
net.sf.l2j.gameserver.model.quest.Quest.notifyKill(Quest.java:412)
net.sf.l2j.gameserver.model.actor.L2Attackable$OnKillNotifyTask.run(L2Attackable.java:470)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Finalizer,8,system] (3)
State: WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
--------------
Thread[GameTimeController,10,main] (17)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Thread.sleep(Native Method)
net.sf.l2j.gameserver.GameTimeController$TimerThread.run(GameTimeController.java:188)
--------------
Thread[General Pool-1,5,General Pool] (21)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.addItem(ItemContainer.java:204)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.addItem(PcInventory.java:325)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.addItem(L2PcInstance.java:3034)
net.sf.l2j.gameserver.model.L2Party.distributeItem(L2Party.java:491)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doPickupItem(L2PcInstance.java:4462)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance$AIAccessor.doPickupItem(L2PcInstance.java:301)
net.sf.l2j.gameserver.ai.L2PlayerAI.thinkPickUp(L2PlayerAI.java:313)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtThink(L2PlayerAI.java:349)
net.sf.l2j.gameserver.ai.L2CharacterAI.onEvtArrived(L2CharacterAI.java:712)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:450)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:342)
net.sf.l2j.gameserver.GameTimeController$MovingObjectArrived.run(GameTimeController.java:233)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[General Pool-2,5,General Pool] (26)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.destroyItem(ItemContainer.java:432)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.destroyItem(PcInventory.java:424)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItem(L2PcInstance.java:3205)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemWithoutTrace(L2PcInstance.java:3295)
handlers.itemhandlers.SoulShots.useItem(Unknown Source)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.rechargeAutoSoulShot(L2PcInstance.java:9199)
net.sf.l2j.gameserver.model.actor.L2Character.doAttack(L2Character.java:867)
net.sf.l2j.gameserver.model.actor.L2Character$AIAccessor.doAttack(L2Character.java:3287)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance$AIAccessor.doAttack(L2PcInstance.java:310)
net.sf.l2j.gameserver.ai.L2PlayerAI.thinkAttack(L2PlayerAI.java:250)
net.sf.l2j.gameserver.ai.L2PlayerAI.onEvtThink(L2PlayerAI.java:345)
net.sf.l2j.gameserver.ai.L2CharacterAI.onEvtArrived(L2CharacterAI.java:712)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:450)
net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:342)
net.sf.l2j.gameserver.GameTimeController$MovingObjectArrived.run(GameTimeController.java:233)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[GeneralSTPool-1,5,GeneralSTPool] (15)
State: TIMED_WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
net.sf.l2j.gameserver.SevenSignsFestival$FestivalManager.run(SevenSignsFestival.java:1857)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
java.util.concurrent.FutureTask.runAndReset(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[GeneralSTPool-2,5,GeneralSTPool] (18)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.python.core.PyReflectedFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyInstance.invoke(Unknown Source)
org.python.pycode.serializable._pyx1250930747468.onAdvEvent$3(hellbound.py:142)
org.python.pycode.serializable._pyx1250930747468.call_function(hellbound.py)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject._jcallexc(Unknown Source)
org.python.core.PyObject._jcall(Unknown Source)
org.python.proxies.main$hellbound$4.onAdvEvent(Unknown Source)
net.sf.l2j.gameserver.model.quest.Quest.notifyEvent(Quest.java:398)
net.sf.l2j.gameserver.model.quest.QuestTimer$ScheduleTimerTask.run(QuestTimer.java:41)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[I/O Packet Pool-1,6,I/O Packet Pool] (33)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[I/O Packet Pool-2,6,I/O Packet Pool] (34)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[LoginServerThread,5,main] (28)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.network.serverpackets.CharSelectionInfo.loadCharacterSelectInfo(CharSelectionInfo.java:203)
net.sf.l2j.gameserver.network.serverpackets.CharSelectionInfo.<init>(CharSelectionInfo.java:53)
net.sf.l2j.gameserver.LoginServerThread.run(LoginServerThread.java:318)
--------------
Thread[MySQL Statement Cancellation Timer,5,main] (14)
State: WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)
--------------
Thread[Normal Packet Pool-1,6,Normal Packet Pool] (35)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1437)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1266)
net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1243)
net.sf.l2j.gameserver.model.itemcontainer.ItemContainer.destroyItem(ItemContainer.java:432)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.destroyItem(PcInventory.java:424)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.destroyItemByItemId(PcInventory.java:472)
net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemByItemId(L2PcInstance.java:3312)
net.sf.l2j.gameserver.model.quest.QuestState.takeItems(QuestState.java:613)
sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.python.core.PyReflectedFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyInstance.invoke(Unknown Source)
org.python.pycode.serializable._pyx1250930747468.onTalk$4(hellbound.py:180)
org.python.pycode.serializable._pyx1250930747468.call_function(hellbound.py)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyTableCode.call(Unknown Source)
org.python.core.PyFunction.__call__(Unknown Source)
org.python.core.PyMethod.__call__(Unknown Source)
org.python.core.PyObject.__call__(Unknown Source)
org.python.core.PyObject._jcallexc(Unknown Source)
org.python.core.PyObject._jcall(Unknown Source)
org.python.proxies.main$hellbound$4.onTalk(Unknown Source)
net.sf.l2j.gameserver.model.quest.Quest.notifyTalk(Quest.java:426)
net.sf.l2j.gameserver.model.actor.L2Npc.showQuestWindow(L2Npc.java:1560)
net.sf.l2j.gameserver.model.actor.L2Npc.onBypassFeedback(L2Npc.java:1093)
net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.onBypassFeedback(L2NpcInstance.java:514)
net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:124)
net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:76)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Normal Packet Pool-2,6,Normal Packet Pool] (36)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:198)
net.sf.l2j.gameserver.model.itemcontainer.PcInventory.restoreVisibleInventory(PcInventory.java:570)
net.sf.l2j.gameserver.model.CharSelectInfoPackage.<init>(CharSelectInfoPackage.java:63)
net.sf.l2j.gameserver.network.serverpackets.CharSelectionInfo.restoreChar(CharSelectionInfo.java:287)
net.sf.l2j.gameserver.network.serverpackets.CharSelectionInfo.loadCharacterSelectInfo(CharSelectionInfo.java:210)
net.sf.l2j.gameserver.network.serverpackets.CharSelectionInfo.<init>(CharSelectionInfo.java:53)
net.sf.l2j.gameserver.network.clientpackets.RequestRestart.runImpl(RequestRestart.java:154)
net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:76)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Reference Handler,10,system] (2)
State: WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
--------------
Thread[SelectorThread-29,5,main] (29)
State: TIMED_WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Thread.sleep(Native Method)
org.mmocore.network.SelectorThread.run(SelectorThread.java:273)
--------------
Thread[Signal Dispatcher,9,system] (4)
State: RUNNABLE
isAlive: true | isDaemon: true | isInterrupted: false
--------------
Thread[Status,10,main] (30)
State: RUNNABLE
isAlive: true | isDaemon: false | isInterrupted: false
java.net.PlainSocketImpl.socketAccept(Native Method)
java.net.PlainSocketImpl.accept(Unknown Source)
java.net.ServerSocket.implAccept(Unknown Source)
java.net.ServerSocket.accept(Unknown Source)
net.sf.l2j.status.Status.run(Status.java:53)
--------------
Thread[Thread-30,10,main] (46)
State: RUNNABLE
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Thread.dumpThreads(Native Method)
java.lang.Thread.getAllStackTraces(Unknown Source)
net.sf.l2j.status.GameStatusThread.debugAll(GameStatusThread.java:1189)
net.sf.l2j.status.GameStatusThread.run(GameStatusThread.java:677)
--------------
Thread[Thread-31,5,GeneralSTPool] (47)
State: TIMED_WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Object.wait(Native Method)
net.sf.l2j.gameserver.model.olympiad.OlympiadManager.run(OlympiadManager.java:297)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Thread-34,5,GeneralSTPool] (50)
State: TIMED_WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Thread.sleep(Native Method)
net.sf.l2j.gameserver.model.olympiad.OlympiadGameTask.runGame(OlympiadGame.java:1164)
net.sf.l2j.gameserver.model.olympiad.OlympiadGameTask.run(OlympiadGame.java:1024)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Thread-35,5,GeneralSTPool] (51)
State: TIMED_WAITING
isAlive: true | isDaemon: false | isInterrupted: false
java.lang.Thread.sleep(Native Method)
net.sf.l2j.gameserver.model.olympiad.OlympiadGameTask.runGame(OlympiadGame.java:1164)
net.sf.l2j.gameserver.model.olympiad.OlympiadGameTask.run(OlympiadGame.java:1024)
java.lang.Thread.run(Unknown Source)
--------------
Thread[Timer-0,5,main] (10)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)
--------------
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main] (11)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
--------------
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main] (12)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
--------------
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main] (13)
State: TIMED_WAITING
isAlive: true | isDaemon: true | isInterrupted: false
java.lang.Object.wait(Native Method)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
--------------
Thread[pool-1-thread-1,5,main] (37)
State: WAITING
isAlive: true | isDaemon: false | isInterrupted: false
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
## Thread Pool Manager Statistics ##
STP:
+ Effects:
|- ActiveThreads: 2
|- getCorePoolSize: 2
|- PoolSize: 2
|- MaximumPoolSize: 2147483647
|- CompletedTasks: 166696674
|- ScheduledTasks: 9180
| -------
+ General:
|- ActiveThreads: 2
|- getCorePoolSize: 2
|- PoolSize: 2
|- MaximumPoolSize: 2147483647
|- CompletedTasks: 14649047
|- ScheduledTasks: 2972
| -------
+ AI:
|- ActiveThreads: 2
|- getCorePoolSize: 2
|- PoolSize: 2
|- MaximumPoolSize: 2147483647
|- CompletedTasks: 61256019
|- ScheduledTasks: 6368
TP:
+ Packets:
|- ActiveThreads: 2
|- getCorePoolSize: 2
|- MaximumPoolSize: 4
|- LargestPoolSize: 2
|- PoolSize: 2
|- CompletedTasks: 9960249
|- QueuedTasks: 2272
| -------
+ I/O Packets:
|- ActiveThreads: 0
|- getCorePoolSize: 2
|- MaximumPoolSize: 2147483647
|- LargestPoolSize: 2
|- PoolSize: 2
|- CompletedTasks: 12661
|- QueuedTasks: 0
| -------
+ General Tasks:
|- ActiveThreads: 2
|- getCorePoolSize: 2
|- MaximumPoolSize: 4
|- LargestPoolSize: 2
|- PoolSize: 2
|- CompletedTasks: 3622390
|- QueuedTasks: 131
| -------
+ AI:
|- Not Done
Please support.I have crushing problems 1 month so far.The server is working normal and suddenly all clients get stuck and starting to disconnect 1 by 1 on the Gameserver cmd window.
Thank you in advance.
Sudden crush of gameserver.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Sudden crush of gameserver.
MYSQL problem, not responding.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 29
- Joined: Sat Jun 06, 2009 1:04 am
Re: Sudden crush of gameserver.
Thank you for support!
I am using mysql 5.0.I tried to install the final version of 5.1.37 x86 or 5.1.37 x64 or 5.4.1 x64 and in all cases the installation got canceled on Windows 2003 64bit R2 OS.I have read in mysql forum that it is a known issue that they are working on it.
So I ended up installing mysql 5.0
Is there any optimization that I could do on mysql to eliminate this problem?
Are there any settings that I could tweak on the my.ini to improve performance?
I am running also the acm(for account creation) on the same machine.
Can this cause the mysql not responding?
Thank you in advance.

I am using mysql 5.0.I tried to install the final version of 5.1.37 x86 or 5.1.37 x64 or 5.4.1 x64 and in all cases the installation got canceled on Windows 2003 64bit R2 OS.I have read in mysql forum that it is a known issue that they are working on it.
So I ended up installing mysql 5.0

Is there any optimization that I could do on mysql to eliminate this problem?
Are there any settings that I could tweak on the my.ini to improve performance?
I am running also the acm(for account creation) on the same machine.
Can this cause the mysql not responding?
Thank you in advance.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Sudden crush of gameserver.
By quick looking on the result - IMHO site consume all available mysql connections.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 29
- Joined: Sat Jun 06, 2009 1:04 am
Re: Sudden crush of gameserver.
Thank you for quick answer.
I am going to shut down for 2 days the website and see how things will go.
Thanks again for the support.
I am going to shut down for 2 days the website and see how things will go.
Thanks again for the support.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Sudden crush of gameserver.
Also using at least default threadpool config is recommended (by me).
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- leanndr
- Posts: 92
- Joined: Fri Dec 04, 2009 1:01 am
Re: Sudden crush of gameserver.
hi guys
i'm new with this server thing xD
Trying to set up a server to test...
login server its fine, but I have this error when starting the game server :

i'm new with this server thing xD
Trying to set up a server to test...
login server its fine, but I have this error when starting the game server :

"Arrogance diminishes wisdom" / "Arrogância diminui a sabedoria"
-
- Posts: 82
- Joined: Thu Apr 21, 2005 2:14 pm
Re: Sudden crush of gameserver.
How about starting a new thread ?
How about reading the actuall error report ?
How about re-reading the countless documentations we got here ? Wiki anyone ?
How about reading the actuall error report ?
How about re-reading the countless documentations we got here ? Wiki anyone ?