Jump to content
  • 0

Force Restart Server After Lots Ddos


Mellion

Question

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)

Link to comment
Share on other sites

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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

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

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...