Page 1 of 1

Crash server

Posted: Wed Jan 13, 2010 11:32 pm
by energy
L2J Revision Number: 3790
L2JDP Revision Number:6867
server :windows server 2008 64 bit 8gb ram

hello all,
my server works fine but with the last update to this rev.,every 7-10 hours i get this error in the
game cosole and after this error server freeze and all player disconnect abnormally!
ty from now for help! :D
p.s.i dont think thats the problem is from the java something!
because before half hour i was on my test server loged in and get disconnect .
show in the console and has this error too.in same time with the other server.
the other server was running for 8 hours and the test 1 hour so something else make this crash!
ty


this is the error:
Jan 14, 2010 12:53:25 AM com.mchange.v2.resourcepool.BasicResourcePool prelimCheckoutResource
WARNING: com.mchange.v2.resourcepool.BasicResourcePool@49938039 -- an attempt to checkout a resource was interrupted, and the pool is still live: some other thread must have either interrupted the Thread attempting checkout!
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at net.sf.l2j.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:220)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.storeCharBase(L2PcInstance.java:7785)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.store(L2PcInstance.java:7760)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.store(L2PcInstance.java:7768)
at net.sf.l2j.gameserver.network.L2GameClient.saveCharToDisk(L2GameClient.java:300)
at net.sf.l2j.gameserver.network.L2GameClient$AutoSaveTask.run(L2GameClient.java:727)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

then all players disconnect abnormally
my gameserver.bat is:
@echo off
title Game Server Console
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx5120m -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
java -server -Xmx5120m -Xms2560m -Xmn1534m -XX:PermSize=1024m -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 -Xmx4096m -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

Re: Crash server

Posted: Thu Jan 14, 2010 6:43 am
by ThePhoenixBird
First try support forums.

Re: Crash server

Posted: Thu Jan 14, 2010 7:44 pm
by energy
sorry for double post but nobody can help me?
ty
its bad for my server every 7-10 hours to disconnect

Re: Crash server

Posted: Thu Jan 14, 2010 7:50 pm
by janiii
probably some wrong database settings. check forum for some input on database settings.

Re: Crash server

Posted: Thu Jan 14, 2010 8:11 pm
by qwerty13
rev 3790 dont have net.sf.l2j imports.

Re: Crash server

Posted: Thu Jan 14, 2010 8:16 pm
by janiii
qwerty13 wrote:rev 3790 dont have net.sf.l2j imports.
he has it probably from nightly.. it states the latest revisions, but is still gracia final.

Re: Crash server

Posted: Thu Jan 14, 2010 9:01 pm
by energy
qwerty13 wrote:rev 3790 dont have net.sf.l2j imports.
#
version = 6867

#
builddate = 20100109_1633

#
version = 3790

#
builddate = 20100109_1633

svn from here:http://www.l2jserver.com/svn/trunk/L2_GameServer
http://www.l2jdp.com/svn/trunk/datapack_development

so before post something clever think before!!!

anyway ty janiii for some answer,but i am newbie on mysql,when someone can help me post it
ty

Re: Crash server

Posted: Thu Jan 14, 2010 9:05 pm
by janiii
energy wrote:
qwerty13 wrote:rev 3790 dont have net.sf.l2j imports.
#
version = 6867

#
builddate = 20100109_1633

#
version = 3790

#
builddate = 20100109_1633

svn from here:http://www.l2jserver.com/svn/trunk/L2_GameServer
http://www.l2jdp.com/svn/trunk/datapack_development

so before post something clever think before!!!
can't be. you really have net.sf package, which is not gracia epilogue
my gameserver.bat is:
@echo off
title Game Server Console
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx5120m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer

Re: Crash server

Posted: Thu Jan 14, 2010 9:27 pm
by energy
janiii wrote:
energy wrote:
qwerty13 wrote:rev 3790 dont have net.sf.l2j imports.
#
version = 6867

#
builddate = 20100109_1633

#
version = 3790

#
builddate = 20100109_1633

svn from here:http://www.l2jserver.com/svn/trunk/L2_GameServer
http://www.l2jdp.com/svn/trunk/datapack_development

so before post something clever think before!!!
can't be. you really have net.sf package, which is not gracia epilogue
my gameserver.bat is:
@echo off
title Game Server Console
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx5120m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
what is that??? :
Image

Re: Crash server

Posted: Thu Jan 14, 2010 9:30 pm
by MELERIX
try upgrading your server properly, don't mix old files with new files.

Re: Crash server

Posted: Thu Jan 14, 2010 9:32 pm
by janiii
also in nightly are shown latest revisions even if it is gracia final release, so not the latest revisions.

MELERIX is right, if you have version from svn, update and build and replace the files properly.

Re: Crash server

Posted: Sat Apr 24, 2010 11:07 am
by thorl2
i had the same problem

24.04.2010 12:00:38 com.l2jserver.gameserver.model.actor.L2Character$HitTask run
SEVERE: Failed executing HitTask.
java.lang.NullPointerException
24.04.2010 13:32:20 com.mchange.v2.resourcepool.BasicResourcePool prelimCheckoutResource
WARNING: com.mchange.v2.resourcepool.BasicResourcePool@527736bd -- an attempt to checkout a resource was interrupted, and the pool is still live: some other thread must have either interrupted the Thread attempting checkout!
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at com.l2jserver.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:221)
at com.l2jserver.gameserver.model.L2ItemInstance.updateInDb(L2ItemInstance.java:1521)
at com.l2jserver.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1338)
at com.l2jserver.gameserver.model.L2ItemInstance.updateDatabase(L2ItemInstance.java:1309)
at com.l2jserver.gameserver.model.itemcontainer.ItemContainer.addItem(ItemContainer.java:266)
at com.l2jserver.gameserver.model.itemcontainer.PcInventory.addItem(PcInventory.java:424)
at com.l2jserver.gameserver.model.itemcontainer.PcInventory.addAdena(PcInventory.java:344)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.addAdena(L2PcInstance.java:3301)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.doAutoLoot(L2PcInstance.java:4677)
at com.l2jserver.gameserver.model.actor.L2Attackable.doItemDrop(L2Attackable.java:1501)
at com.l2jserver.gameserver.model.actor.L2Attackable.doItemDrop(L2Attackable.java:1412)
at com.l2jserver.gameserver.model.actor.L2Attackable.calculateRewards(L2Attackable.java:578)
at com.l2jserver.gameserver.model.actor.L2Character.doDie(L2Character.java:2103)
at com.l2jserver.gameserver.model.actor.L2Npc.doDie(L2Npc.java:1358)
at com.l2jserver.gameserver.model.actor.L2Attackable.doDie(L2Attackable.java:506)
at com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance.doDie(L2MonsterInstance.java:206)
at com.l2jserver.gameserver.model.actor.status.CharStatus.reduceHp(CharStatus.java:197)
at com.l2jserver.gameserver.model.actor.status.NpcStatus.reduceHp(NpcStatus.java:51)
at com.l2jserver.gameserver.model.actor.status.AttackableStatus.reduceHp(AttackableStatus.java:49)
at com.l2jserver.gameserver.model.actor.L2Character.reduceCurrentHp(L2Character.java:6810)
at com.l2jserver.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:477)
at com.l2jserver.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:413)
at com.l2jserver.gameserver.skills.l2skills.L2SkillDrain.useSkill(L2SkillDrain.java:183)
at com.l2jserver.gameserver.model.actor.L2Character.callSkill(L2Character.java:6560)
at com.l2jserver.gameserver.model.actor.L2Character.onMagicHitTimer(L2Character.java:6159)
at com.l2jserver.gameserver.model.actor.L2Character$MagicUseTask.run(L2Character.java:2552)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

maybe is a thread pool missconfig?