Machine DCs [Support/Discussion]

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Machine DCs [Support/Discussion]

Post by Pere »

These last months the machine where my 3rd server is hosted began to get disconnected from the network. Yeah, it had to be restarted from hard and then I found tons of SQL connection errors on the logs, which log hours were while the machine was "crashed". So what I guess from here is that the machine works, and only gets disconnected from the network.
Then I tried with another machine which I was using for my 1rst server (same population, more or less) and the same happened there, and it didn't happen before while hosting the 1st server!
The most amazing thing is that they use the same .jar file, only configs and some data are different.

What do you think that it could be? I'm really thinking about to close this "cursed" server, lol

Thank you
Bones tardes amics meus tots!
Deadmeat
Posts: 286
Joined: Fri Sep 22, 2006 1:03 am
Location: Red Rock, Mars

Re: Machine DCs [Support/Discussion]

Post by Deadmeat »

Have you check the memory and thread settings in the game server batch file, is it the same MySQL config settings, and what is the error in the log file?
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Machine DCs [Support/Discussion]

Post by Pere »

Everything exactly the same except rates and such those things, and the errors look like:

Code: Select all

INFO: An exception occurred while acquiring a poolable resource. Will retry.com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.	at sun.reflect.GeneratedConstructorAccessor100.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:2214)	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:781)	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)	at sun.reflect.GeneratedConstructorAccessor85.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:352)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)	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 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.	at sun.reflect.GeneratedConstructorAccessor100.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.<init>(MysqlIO.java:343)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2137)	... 16 moreCaused by: java.net.ConnectException: Connection timed out: connect	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.PlainSocketImpl.doConnect(Unknown Source)	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)	at java.net.PlainSocketImpl.connect(Unknown Source)	at java.net.SocksSocketImpl.connect(Unknown Source)	at java.net.Socket.connect(Unknown Source)	at java.net.Socket.connect(Unknown Source)	at java.net.Socket.<init>(Unknown Source)	at java.net.Socket.<init>(Unknown Source)	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)	... 17 more 
Can a java program kill the whole server's ping????
Bones tardes amics meus tots!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Machine DCs [Support/Discussion]

Post by _DS_ »

Copy entire "working" server on this machine for tests.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Machine DCs [Support/Discussion]

Post by Pere »

I was asking only info about if you knew about the possibility of java.exe to kill a network driver (which is fixed on machine restart) u.U
Bones tardes amics meus tots!
User avatar
rocoder
Posts: 66
Joined: Thu Feb 04, 2010 8:52 am

Re: Machine DCs [Support/Discussion]

Post by rocoder »

I think you have diff mysql config... try with this

Code: Select all

max_connections=400table_cache=4000
Image
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Machine DCs [Support/Discussion]

Post by Pere »

It didn't happen again moving the "cursed" server on a better machine (12GB DDR3 o.O)
Thank you so much anyways!!!
Bones tardes amics meus tots!
User avatar
DrHouse
L2j Inner Circle
L2j Inner Circle
Posts: 912
Joined: Mon Jan 22, 2007 12:14 am
Location: Spain

Re: Machine DCs [Support/Discussion]

Post by DrHouse »

Image

Leadership and management are not talk and talk, but talk and do

Proud of being a part of this project
Post Reply