Forums
First  << 1  2  3  4  5 >>  Last
Forum Main>>Announcements>> Lag Spikes #2
Super secret reinforced spam barrier 2.0

ID:
Level:
Posts:
Score:
 []Edit | Reply | Quote | Report

Posted on Sat Feb 10, 2007 09:59:02
this game yesterday wos shit it would not let mi any thinkit wos stopping and stopping:|

Super secret reinforced spam barrier 2.0
Marshmallow
ID: 127232
Level: 71
Posts: 7636
Score: 958
Marshmallow [127232]Reply | Quote | Report

Posted on Sat Feb 10, 2007 09:59:43
excellent suggestion shahost...

30 mins time is great option :-))

Super secret reinforced spam barrier 2.0
Marshmallow
ID: 127232
Level: 71
Posts: 7636
Score: 958
Marshmallow [127232]Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:00:52
oops sorry good suggestion to My cat

Super secret reinforced spam barrier 2.0

ID:
Level:
Posts:
Score:
 []Edit | Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:16:39
usally these types of problems are caused by server errors and mainly the connections and there are alot of people trying to log on to the site and the servers are usally the source i hope

Super secret reinforced spam barrier 2.0
Doomsday
ID: 86124
Level: 52
Posts: 53
Score: 8
Doomsday [86124]Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:19:30
There were a lot of issues with lock waits not being downgraded when using stored functions rather than stored procedures in InnoDB versions 5.30.

Can anyone tell me whether stored functions are being used and what version of InnoDB is used?

Super secret reinforced spam barrier 2.0
Chedburn

ID: 1
Level: 30
Posts: 6393
Score: 11059
Chedburn [1]Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:27:45
"killing all the connections fixes it....for another 24 hours. "

It just ends the current spike, another spike starts again sometimes quite shortly after.

Super secret reinforced spam barrier 2.0
Spliffeh
ID: 315389
Level: 56
Posts: 10445
Score: 6461
Spliffeh [315389]Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:28:53
thanx ched

I'm Black with a vengance.
Super secret reinforced spam barrier 2.0

ID:
Level:
Posts:
Score:
 []Edit | Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:43:05
Persistent connections stay open at the end of PHP script execution. While this can certainly give you better performance, it's not at all the same as a connection pool. There is no pool manager, you cannot set upper or lower limits, each process can open an additional connection, etc. On a high-traffic site, using p_connect can actually kill your database by overloading it with too many opened connection

There are a couple of additional caveats to keep in mind when using persistent connections. One is that when using table locking on a persistent connection, if the script for whatever reason cannot release the lock, then subsequent scripts using the same connection will block indefinitely and may require that you either restart the httpd server or the database server. Another is that when using transactions, a transaction block will also carry over to the next script which uses that connection if script execution ends before the transaction block does. In either case, you can use register_shutdown_function() to register a simple cleanup function to unlock your tables or roll back your transactions. Better yet, avoid the problem entirely by not using persistent connections in scripts which use table locks or transactions (you can still use them elsewhere).

www.total-domination.org/persistent.txt


Other usefull monitor tools:

It's also worth using iostat -x 10 to see whether the server is short of disk seeks. Particularly likely if you're doing a lot of transactions and don't have a write caching disk controller. If setting innodb_flush_log_at_trx_commit=2 solves the problem that strongly supports this theory.

Using vmstat 10 during this to look for swapping/faulting activity is also useful, since a large number of active connections may have caused swapping to start.



* vnstat: an application to monitor data transfer at the network interface. Highly recommended!
* mytop: an application similar to 'top' but which monitors a MySQL server.
* innotop - A MySQL and InnoDB monitor program.
* mysqlreport: a perl script that generates an analysis of MySQL performance.



Edited by: ---shahost--- on 10/02/07 at 12:58:24 PM

Super secret reinforced spam barrier 2.0

ID:
Level:
Posts:
Score:
 []Edit | Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:47:22
sheesh
thats bad
what r u gonna do???

Super secret reinforced spam barrier 2.0
Ping
ID: 59347
Level: 55
Posts: 423
Score: 66
Ping [59347]Reply | Quote | Report

Posted on Sat Feb 10, 2007 10:48:29
Just check who are online at the time of the spikes. Perhaps it will be coincidence but you will find some interesting congruence. There are several statistic tests who will lead to.....

http://tinyurl.com/kr53es
Super secret reinforced spam barrier 2.0
MrPink
ID: 95850
Level: 40
Posts: 1276
Score: -16
MrPink [95850]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:10:55
Yes!
My knowledge got pwned by yours

Turns out, I know jack **** about php and MySQL....

Well...at least I got you lot talking

Carry on!

I will be in that corner....reading some books..._

Super secret reinforced spam barrier 2.0
_Psychosocial_

ID: 309085
Level: 56
Posts: 1827
Score: 50
eVø_Psychosocial_ [309085]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:16:32
sorry dude, i ahve no idea


Super secret reinforced spam barrier 2.0
Sildraco
ID: 369974
Level: 50
Posts: 31
Score: 0
Sildraco [369974]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:29:25
Persistent connections stay open at the end of PHP script execution. While this can certainly give you better performance, it's not at all the same as a connection pool. There is no pool manager, you cannot set upper or lower limits, each process can open an additional connection, etc. On a high-traffic site, using p_connect can actually kill your database by overloading it with too many opened connection

There are a couple of additional caveats to keep in mind when using persistent connections. One is that when using table locking on a persistent connection, if the script for whatever reason cannot release the lock, then subsequent scripts using the same connection will block indefinitely and may require that you either restart the httpd server or the database server. Another is that when using transactions, a transaction block will also carry over to the next script which uses that connection if script execution ends before the transaction block does. In either case, you can use register_shutdown_function() to register a simple cleanup function to unlock your tables or roll back your transactions. Better yet, avoid the problem entirely by not using persistent connections in scripts which use table locks or transactions (you can still use them elsewhere).

http://www.total-domination.org/persistent.txt


I'm not too hot on PHP but MySQL by default uses a connection pool manager. I know from experience that there is a bug in the .NET connector that causes the DB max connections to be hit. By putting 'pooling=false' at the end of the DB connection string you can get round this. This may also be the same with whatever PHP uses.

By default doesn't MySQL have some stupid timeout value of like 8 hours before it kills a DB connection. Maybe all the dead connections hanging round are building up and causing the lag?


Edited by: Sildraco on 10/02/07 at 12:06:40 PM

Super secret reinforced spam barrier 2.0
327535
ID: 327535
Level: 9
Posts: 16
Score: 0
327535 [327535]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:30:29
o_O

Take the Risk, Feel the Rush
Super secret reinforced spam barrier 2.0
Sildraco
ID: 369974
Level: 50
Posts: 31
Score: 0
Sildraco [369974]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:31:12
edit


Edited by: Sildraco on 10/02/07 at 12:01:34 PM

Super secret reinforced spam barrier 2.0
Sildraco
ID: 369974
Level: 50
Posts: 31
Score: 0
Sildraco [369974]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:35:53
edit


Edited by: Sildraco on 10/02/07 at 12:02:12 PM

Super secret reinforced spam barrier 2.0
Defences
ID: 263839
Level: 21
Posts: 59
Score: 37
Defences [263839]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:43:39
I am a very experienced with PC's and that things but i never have saw about this... Maybe people are downloading things and can cause lags at the game or if people comes logging in at the same moment... Thats what i think...

Checkout my bazaar people! xD
http://www.torn.com/#/forums.php?forumID=4&ID=10637932 is my thread about bazaars.
Super secret reinforced spam barrier 2.0
_Cynic_

ID: 206537
Level: 74
Posts: 8735
Score: 5210
_Cynic_ [206537]Reply | Quote | Report

Posted on Sat Feb 10, 2007 11:46:06
Well im not hot on DB's or programing etc. But I am shit hot on networking, servers, infrastructure and work with enough DB people to say your issue here is NOT down to the number of connections.

Looking at the data, it doesn't show a gradual increase in load.
System load is jumping quickly which suggest a single process suddenly causing the problem.

Also if the issue was with persistant connections then it doesnt explain why it happens around the same period consistantly.

I think you need to see what else is happening around this time, other system processes that could be running and locking up files such as anti-virus, if you have any installed, is it updating around that time and running a scan afterwards?
I would suggest running process monitoring tools around the time to see what other processes could be causing an effect.

Super secret reinforced spam barrier 2.0
Defences
ID: 263839
Level: 21
Posts: 59
Score: 37
Defences [263839]Reply | Quote | Report

Posted on Sat Feb 10, 2007 12:01:55
a good idea Cynic...

Checkout my bazaar people! xD
http://www.torn.com/#/forums.php?forumID=4&ID=10637932 is my thread about bazaars.
Super secret reinforced spam barrier 2.0
Bernetty
ID: 242823
Level: 20
Posts: 25
Score: 0
Bernetty [242823]Reply | Quote | Report

Posted on Sat Feb 10, 2007 12:10:55
well if it is an innoDB problem, there'll probably be some info on its website...

http://www.innodb.com/ibman.php
thats the link to the innoDB refernce manual... but

http://dev.mysql.com/doc/refman/5.0/en/innodb-troubleshooting.html

this link coming from the innoDB website has a bit about troubleshooting and perfornace related problems. i dunno if that can help seeming as my knowledge only extends to innoDB being a storage system or something that works with MySQL, but i hope it can.
Good luck ched:D

I live in but a shadow of the world.
dont click this link
or this one
Super secret reinforced spam barrier 2.0
My_Cat_Quit
ID: 165026
Level: 30
Posts: 126
Score: 0
My_Cat_Quit [165026]Reply | Quote | Report

Posted on Sat Feb 10, 2007 12:40:29
@Ched:
Are the Beta servers still available? Can you do a DB backup and restore on the Beta?
If you can, run with no connections and if the performance is OK, then open it back up to users.
It needs to be representative though, with all crons etc working.
Open it for 48hrs and tell as many users as possible to be on the Beta system (perhaps a reward for the most active).

I know that Beta environments don't always exhibit the same faults, but if the Beta environment is faster we could stay there... jk

You have lost your Donater Status. You will no longer recieve 5 energy every 10 minutes and your 150 energy bar has been reduced to 100. If you would like them back, please go here to donate again.
In a word... NO!!!

*You haven't voted at TOPRPG yet
Super secret reinforced spam barrier 2.0
DemonSkye

ID: 37124
Level: 77
Posts: 2454
Score: 1006
eVøDemonSkye [37124]Reply | Quote | Report

Posted on Sat Feb 10, 2007 12:43:07
heh... I know a TON about php / mysql, but you did say theres about 10 MILLION lines of php / sql / crons / assorted other code ... so i doubt i could isolate the info.
Check for zombie processes spawned from ddos / dos atacks that use malformed syn / syn/ack / ack packets to exploit the old 3-way handshake bug, (its a long running way to covertly &*^& apache webservers)

also, is the auction market done in real time? item market as well? why not change those to updating every 30-45 sec. Same with pts / users online / etc.

I have a lot of ideas.... but... ya know. there probably all thought of / mentioned before.


If you like something I've done on the forums send me a morphine, I'm running out!
Super secret reinforced spam barrier 2.0
BlackRoseKiller
ID: 271707
Level: 33
Posts: 1223
Score: 59
BlackRoseKiller [271707]Reply | Quote | Report

Posted on Sat Feb 10, 2007 12:50:43
Well im not hot on DB's or programing etc. But I am shit hot on networking, servers, infrastructure and work with enough DB people to say your issue here is NOT down to the number of connections.

Looking at the data, it doesn't show a gradual increase in load.
System load is jumping quickly which suggest a single process suddenly causing the problem.

Also if the issue was with persistant connections then it doesnt explain why it happens around the same period consistantly.

I think you need to see what else is happening around this time, other system processes that could be running and locking up files such as anti-virus, if you have any installed, is it updating around that time and running a scan afterwards?
I would suggest running process monitoring tools around the time to see what other processes could be causing an effect.


i agree with the anti virus..whenever avast or avg is working my computer goes slow as does TC..but other wise i have no problem with TC...maybe its something thats running on our computers:s




Super secret reinforced spam barrier 2.0
cobrachang

ID: 343620
Level: 39
Posts: 394
Score: 0
cobrachang [343620]Reply | Quote | Report

Posted on Sat Feb 10, 2007 13:08:53
Everything will run smoothtly in time we have faith in you guys. If our only problems on TC were system lag we would all be happy.



Super secret reinforced spam barrier 2.0
DirtyWarlock

ID: 116791
Level: 74
Posts: 1188
Score: 71
DirtyWarlock [116791]Reply | Quote | Report

Posted on Sat Feb 10, 2007 13:48:06
agreed looks like the spike happens and hits critical within 10 min - at which point I am guessing you kill access to the servers? Deadlock is coursed when one process is waiting on another before it can continue. so.. maybe try checking the crons that have been moved around. see if some that where supposed to interact with each other at certain times are now unavailable to get the data they require before they can continue..

DW

Super secret reinforced spam barrier 2.0
GH-Tony_Montana
ID: 353206
Level: 40
Posts: 6422
Score: 316
GH-Tony_Montana [353206]Reply | Quote | Report

Posted on Sat Feb 10, 2007 14:19:05
is the lag what is also causing the connection loss ?
or is that just me constantly losing connection to tc

Super secret reinforced spam barrier 2.0
FIN

ID: 57057
Level: 59
Posts: 2010
Score: 47
SUNFIN [57057]Reply | Quote | Report

Posted on Sat Feb 10, 2007 14:42:38
Ched, I'm not saying I'm an expert, but I know my share of databases and such.

I think that if you want a decent advice, we need more info then just the lag peaks.

If one wants to find out what's causing these peaks, one needs to know what happens in the databases at that moment, to find the relations between them.

For example user-counts? Is there a sudden increase of people logging in? (Maybe the West Coast of the USA gets up at that time for instance)

Certain crons running at that moment (Job payouts, city stats gathering)?

Actually, in short: One should be able to see where all these connections are going to.

I would love to get more in-depth in the problem, but I think one needs more information for that.



The UK gets out of school at about 4. And must be on torn by half past!!

Super secret reinforced spam barrier 2.0
thecrow

ID: 241519
Level: 60
Posts: 142
Score: 5
thecrow [241519]Reply | Quote | Report

Posted on Sat Feb 10, 2007 14:44:14
over my head lol but keep up the good work on tryin to fix it

Super secret reinforced spam barrier 2.0
Legend

ID: 233886
Level: 87
Posts: 784
Score: 237
MMCPLegend [233886]Reply | Quote | Report

Posted on Sat Feb 10, 2007 16:17:51
Impressive, shahost..!

Super secret reinforced spam barrier 2.0
Shippoe_Crazzy

ID: 114544
Level: 55
Posts: 444
Score: 216
Shippoe_Crazzy [114544]Reply | Quote | Report

Posted on Sat Feb 10, 2007 17:30:15
:p

Forum Main>>Announcements>> Lag Spikes #2
First  << 1  2  3  4  5 >>  Last

This thread has been locked.