View Issue Details

IDProjectCategoryView StatusLast Update
0005161Multi Theft Auto : San AndreasServerpublic2010-05-20 19:24
ReporterWilly Assigned ToCazomino05  
Status resolvedResolutionfixed 
Product Version1.0.3 
Target Version1.0.4Fixed in Version1.0.4 
Summary0005161: Connecting players cause huge amount of CPU usage

When a player connects to our server CPU usage goes to 100% on one core (only on one for some reason). Happens between connect and join.

This causes network trouble for the players on the server, which in turn causes them to leave.

According to toady:

<Willy> so lil_Toady you reckon its down to having lots of elements?
<lil_Toady> I guess so, it loops thru them on connect, creates one huge packet and sends it blocking all other packets until this one is done

TagsNo tags attached.


related to 0005165 resolvedCazomino05 Server freezes if too many entries in accounts.xml 



2010-01-04 14:23

administrator   ~~0010936

Last edited: 2010-01-04 14:24

The initial map packet doesn't block chat or cause network trouble, and it definitely does not affect the packet flow to other players.

I would think one of the running resources is hogging the server cpu when a player joins. Stop as many unneeded resources as possible and put 'outputDebugString( "resource name:" .. getTickCount() )' at the start and end of all the remaining onPlayerConnect/onPlayerJoin event handlers. This should show you which one is at fault.


2010-02-02 02:46

administrator   ~~0011037

This was traced to accounts.xml, no?


2010-05-20 19:24

reporter   ~~0011483

Fixed in r1637 assuming it was accounts.xml

Issue History

Date Modified Username Field Change