[Critical]GS Problems : Lag-Freze-DC

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
Albo_Trance
Posts: 4
Joined: Wed Mar 25, 2009 6:41 pm
Location: Texas, US
Contact:

[Critical]GS Problems : Lag-Freze-DC

Post by Albo_Trance »

Code: Select all

IOError: Eine vorhandene Verbindung wurde vom Remotehost geschlossenClient [Character: ninfomana - Account: hizoka - IP: *.*.*.*] disconnected abnormally.IOError: Eine vorhandene Verbindung wurde vom Remotehost geschlossenClient [Character: taken - Account: enano1 - IP: *.*.*.*] disconnected abnormally.Client [IP: *.*.*.*] disconnected abnormally.com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@7c157002 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!Exception in thread "SelectorThread-50" Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space        at java.util.Arrays.copyOfRange(Unknown Source)        at java.lang.String.<init>(Unknown Source)        at java.lang.StringBuilder.toString(Unknown Source)        at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)        at java.lang.ClassLoader.loadClass(Unknown Source)        at java.lang.ClassLoader.loadClassInternal(Unknown Source)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner.getMultiLineStatusString(ThreadPoolAsynchronousRunner.java:281)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner.access$100(ThreadPoolAsynchronousRunner.java:36)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:616)        at java.util.TimerThread.mainLoop(Unknown Source)        at java.util.TimerThread.run(Unknown Source)java.lang.OutOfMemoryError: Java heap space        at net.sf.l2j.gameserver.network.L2GamePacketHandler.handlePacket(L2GamePacketHandler.java:205)        at net.sf.l2j.gameserver.network.L2GamePacketHandler.handlePacket(L2GamePacketHandler.java:45)        at org.mmocore.network.SelectorThread.parseClientPacket(SelectorThread.java:811)        at org.mmocore.network.SelectorThread.tryReadPacket2(SelectorThread.java:596)        at org.mmocore.network.SelectorThread.readTCPPacket(SelectorThread.java:389)        at org.mmocore.network.SelectorThread.readPacket(SelectorThread.java:339)        at org.mmocore.network.SelectorThread.run(SelectorThread.java:246)An exception occurred while acquiring a poolable resource. Will retry.java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)        at com.mysql.jdbc.Util.handleNewInstance(Util.java:430)        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Exception in thread "General Pool-4" java.lang.OutOfMemoryError: Java heap space Exception in thread "GameTimeController" java.lang.OutOfMemoryError: Java heap spaceException in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: Java heap spaceAn exception occurred while acquiring a poolable resource. Will retry.com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.        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 com.mysql.jdbc.Util.handleNewInstance(Util.java:406)        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2120)        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)        at sun.reflect.GeneratedConstructorAccessor56.newInstance(Unknown Source)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.        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 com.mysql.jdbc.Util.handleNewInstance(Util.java:406)        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3009)        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:911)        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3953)        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1276)        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)        ... 16 moreCaused by: java.io.EOFException: Can not read response from server. Expected toread 4 bytes, read 0 bytes before connection was unexpectedly lost.        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2455)        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)        ... 22 more Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: Java heap spaceAn exception occurred while acquiring a poolable resource. Will retry.java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)        at com.mysql.jdbc.Util.handleNewInstance(Util.java:430)        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) An exception occurred while acquiring a poolable resource. Will retry.java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)        at com.mysql.jdbc.Util.handleNewInstance(Util.java:430)        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) com.mchange.v2.resourcepool.BasicResourcePool@37a001ff -- an attempt to checkout a resource was interrupted, and the pool is still live: some other thread musthave 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:182)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.transformInsertInfo(L2PcInstance.java:4659)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.store(L2PcInstance.java:7294)        at net.sf.l2j.gameserver.network.L2GameClient.saveCharToDisk(L2GameClient.java:284)        at net.sf.l2j.gameserver.network.L2GameClient$AutoSaveTask.run(L2GameClient.java:679)        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)  Exception in thread "EffectsSTPool-1" java.lang.OutOfMemoryError: Java heap spaceAn exception occurred while acquiring a poolable resource. Will retry.java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)        at com.mysql.jdbc.Util.handleNewInstance(Util.java:430)        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Exception in thread "EffectsSTPool-3" java.lang.OutOfMemoryError: Java heap spaceException in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-12" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-9" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-13" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-14" java.lang.OutOfMemoryError: Java heap space 


Amm , recently i changed to a new & more powerful server machine of
Processor: AMD Opteron 1356
CPU : 4 x 2,3 GHz
Ram: 8 GB
Internet Connection: 100MBit


Any idea what might be wrong with it ?
Although it's a 100MBit connection & the machine's performance is pretty good , the server lags and freezes as if it was updating Seven Signs on a low performance computer ... After a huge ammount of lag, there comes the Freeze, and after that players begin to disconnect . I have to restart to bring it back to normal, but after few hours it does that again and i got no idea what might be causing everything.


If anyone could give a hand to sort it out, i would be thankful .

Regards,
Danny


Edit : I was told by one of the machine's support team that i should install Kernel-1000 HZ optimized for gaming , but i aint sure wether i should do it, because as far as im concerned, optimized versions of kernel, are only for Linux OS ( forgive me if im not right ) .
Image
Torvitas
Posts: 164
Joined: Fri Nov 16, 2007 1:44 am

Re: [Critical]GS Problems : Lag-Freze-DC

Post by Torvitas »

what kind of OS is runing on your server? Windows?
Albo_Trance wrote:because as far as im concerned, optimized versions of kernel, are only for Linux OS ( forgive me if im not right ) .
User avatar
Serra
Posts: 37
Joined: Tue Oct 11, 2005 4:00 pm
Location: Malaysia

Re: [Critical]GS Problems : Lag-Freze-DC

Post by Serra »

from ur error, seems u adjust ur threadpool to high in configuration... lower it down..then u have nice smooth server
I run..run ..run...run..run...run...run then I stop.... hahahahahaha
Andrewzz
Posts: 5
Joined: Fri May 29, 2009 1:15 am

Re: [Critical]GS Problems : Lag-Freze-DC

Post by Andrewzz »

Just run your MySQL Server instance Config Wizard, and change like it show in the pic here, and everything will work fine.

Image

Bye.
Torvitas
Posts: 164
Joined: Fri Nov 16, 2007 1:44 am

Re: [Critical]GS Problems : Lag-Freze-DC

Post by Torvitas »

Changing to such high concurrent connections may cause the server to keep much free memory for your connections and have a deamon for every connection too wich WILL cause the server to slow down too.

Let's take a look at HeapSpace


in the Error there is a massage:

OutOfMemoryError: Java heap space

that says there is not enough memory given to Java to keep handling the Server (More Players=More Memory needed)


What kind of memory options are given to Java in the GameServer_loop.sh (its this values: java -Xms1024m -Xmx1024m )

whith your machine set it to values:

java -Xms2048m -Xmx4096m

this is setting Java HeapSpace. (Memory Java uses)
first value says: Use 2048 MB at startup
seceond says: Use MAXIMUM 4096 MB
Post Reply