Jump to content
  • 0

Force Restart Server After Lots Ddos


Question

Posted

Hello, i wanna ask, there some l2jfrozen code (java) when server got lots ddos, its force restart himself, because now server stuck in lag and no one can connect to server after lots ddos.

Its realy immportant. thanks.

(this vps now testing i use cheap one, after fixing lots bugs i buy better one)

Recommended Posts

  • 0
Posted (edited)

DDoS got nothing to do with gameserver, it has to be blocked way before packets are able to reach server, aka a firewall / IPTables.

Edited by Tryskell
  • 0
Posted (edited)

http://www.hmaserv.net, i used.

But still, i think server have to know get lots flood in gameserver or something. because i got those errors

WARN  com.mchange.v2.resourcepool.BasicResourcePool@6c3708b3 -- 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.l2jfrozen.util.database.L2DatabaseFactory_c3p0.getConnection(L2DatabaseFactory_c3p0.java:147)
    at com.l2jfrozen.gameserver.network.serverpackets.CharSelectInfo.loadCharacterSelectInfo(CharSelectInfo.java:234)
    at com.l2jfrozen.gameserver.network.serverpackets.CharSelectInfo.<init>(CharSelectInfo.java:69)
    at com.l2jfrozen.gameserver.thread.LoginServerThread.run(LoginServerThread.java:365)
ERROR L2DatabaseFactory: getConnection() failed, trying again
java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    at com.l2jfrozen.util.database.L2DatabaseFactory_c3p0.getConnection(L2DatabaseFactory_c3p0.java:147)
    at com.l2jfrozen.gameserver.network.serverpackets.CharSelectInfo.loadCharacterSelectInfo(CharSelectInfo.java:234)
    at com.l2jfrozen.gameserver.network.serverpackets.CharSelectInfo.<init>(CharSelectInfo.java:69)
    at com.l2jfrozen.gameserver.thread.LoginServerThread.run(LoginServerThread.java:365)
Caused by: 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)
    ... 5 more
WARN  com.mchange.v2.resourcepool.BasicResourcePool@6c3708b3 -- 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.l2jfrozen.util.database.L2DatabaseFactory_c3p0.getConnection(L2DatabaseFactory_c3p0.java:147)
    at com.l2jfrozen.gameserver.managers.AutoSaveManager$AutoCleanDBTask.run(AutoSaveManager.java:180)
    at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
ERROR L2DatabaseFactory: getConnection() failed, trying again
java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.InterruptedException
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    at com.l2jfrozen.util.database.L2DatabaseFactory_c3p0.getConnection(L2DatabaseFactory_c3p0.java:147)
    at com.l2jfrozen.gameserver.managers.AutoSaveManager$AutoCleanDBTask.run(AutoSaveManager.java:180)
    at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: 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)
    ... 11 more

Edited by Mellion
  • 0
Posted

http://www.hmaserv.net, i used.

But still, i think server have to know get lots flood in gameserver or something.

 

Gameserver got strictly nothing to do with that, really.

 

If you're attacked that's generally your loginserver, and that's to rainbowtable your database searching passwords.

 

Config your firewall correctly and you will see by yourself.

  • 0
Posted

You just need a simple DDoS Protect. No java code for restartr on heavy ddos. 

Why u even bother open server when  udont even know that gs doesnt block ddos? 

Learn the basics then go for server 

  • 0
Posted

Why u even bother open server when  udont even know that gs doesnt block ddos? 

Learn the basics then go for server 

I never tried for a server lol.

  • 0
Posted

i didin't say block ddos, i say after server stuck in lag, force to restart server.

If you're in huge attack server will go down anyway and will be shutted down by itsself.So even if such code can be exist it's useless.Just buy a good protection.

  • 0
Posted

you just need a simple DDoS Protect. No java code for restartr on heavy ddos.

 

i don't understand what you mean simple?

there vps selling whit simple ddos protection, and everyone sucks.

  • 0
Posted

If you're in huge attack server will go down anyway and will be shutted down by itsself.So even if such code can be exist it's useless.Just buy a good protection.

I use this vps for fixing problems,  i can't do on expensive vps which cost 50eu month for fixing bugs.

  • 0
Posted

I use this vps for fixing problems,  i can't do on expensive vps which cost 50eu month for fixing bugs.

So fix the bugs as you say and buy a greater one when you're ready to open the project.

  • 0
Posted

So fix the bugs as you say and buy a greater one when you're ready to open the project.

oh nice, but still my friend use acis pack, aftter heavy ddos he just make somehow force to restart server if server got stuck in lag.

but he now leave l2 and delete that pack.

  • 0
Posted

oh nice, but still my friend use acis pack, aftter heavy ddos he just make somehow force to restart server if server got stuck in lag.

but he now leave l2 and delete that pack.

He probably lied to you,his server just went down and up from the packets.

  • 0
Posted (edited)

Check what exactly your mySQL server got as connections, if your website got a script linked to db removes it to avoid to affect mySQL performance.

 

Your gameserver can't find connections, which mean every is currently used. You prefer to see if server is online on your website, or to be able to play on your server ?

 

Your problem isn't even ls/gs DDoS or packet spam, someone simply burns your mySQL server ressources.

Edited by Tryskell
Guest
This topic is now closed to further replies.


×
×
  • Create New...