PDA

View Full Version : Dual Xeon 3.0ghz sometimes go to 96% cpu load why?


rodier
01.06.2006, 16:32
edit by rodier 3.6.2006 - look on my 3. post here.. All db problems repaired, but still little laggy sometimes.. 2sec ss lags.... and cpu go to 96% load.. with 300ppl online.......



this was old post what I find solution and repaired it:

Hi all
I today re-launched our server after few month pause. I dont have SQL 2005 full, so Im using trial version.. I uninstall it, install it again attached db..

server working for 20-30min /maybe depend on ppl or what they do/
and then cacheD start writing many very weird errors.. i can't find it in books online.. technet.. nowhere :(
First start with this:
06/01/2006 17:45:xx.xx5, different write count 6c830(99c25d6c) 31 != 1
06/01/2006 17:45:xx.xx5, [ffffffab]
06/01/2006 17:45:xx.xx5, [ffffffd7]
06/01/2006 17:45:xx.xx5, [72]
06/01/2006 17:45:xx.xx5, [a]
06/01/2006 17:45:xx.xx5, [ffffff85]
06/01/2006 17:45:xx.xx5, [6f]
06/01/2006 17:45:xx.xx5, [77]
06/01/2006 17:45:xx.xx5, [77]
06/01/2006 17:45:xx.xx5, [ffffffd6]
06/01/2006 17:45:xx.xx5, [ffffffa8]
06/01/2006 17:45:xx.xx5, [49]
06/01/2006 17:45:xx.xx5, [ffffffcf]
06/01/2006 17:45:xx.xx5, [ffffffbf]
06/01/2006 17:45:xx.xx5, [30]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [1b]
06/01/2006 17:45:xx.xx5, [0]
06/01/2006 17:45:xx.xx5, [26]
06/01/2006 17:45:xx.xx5, [10]
06/01/2006 17:45:xx.xx5, [6e]
06/01/2006 17:45:xx.xx5, [7e]
06/01/2006 17:45:xx.xx5, [ffffff97]
06/01/2006 17:45:xx.xx5, [fffffff9]
06/01/2006 17:45:xx.xx1, different write count 60b24(99df7ee4) 31 != 1
06/01/2006 17:45:xx.xx1, [34]
06/01/2006 17:45:xx.xx1, [34]
....etc..

after some time something liek that:

Error 42000:[Microsoft][SQL Native Client][SQL Server]Internal Query Processor Error: The query processor encountered an unexpected error during execution.

Error HY000:[Microsoft][SQL Native Client]Unspecified error occurred on SQL Server. Connection may have been terminated by the server.
Error sql: EXEC lin_AmountChange 21027, 2122399, -10, 1 (0)

Error 08S01:[Microsoft][SQL Native Client]Named Pipes Provider: No process is on the other end of the pipe.

/i tried find these errors in manuals but nothing usable../

then bunch fo this:

06/01/2006 17:38:xx.xx0, Error sql: EXEC lin_CreateChar N'zrj',N'smrdim',28034,0,0,0,0,0,1,-72304,257552,-3104,xx.xx0000,xx.xx0000,0,0,1,0,0,0,0,1,0,0 (0)
06/01/2006 17:38:xx.xx0, Error 23000:[Microsoft][SQL Native Client][SQL Server]Cannot insert duplicate key row in object 'dbo.user_data' with unique index 'idx_user_data1'.

and after all .. bunch of this:


06/01/2006 17:45:xx.xx3, Error sql: EXEC lin_CharLogout 21974, 7 (0)
06/01/2006 17:45:xx.xx3, Error 08S01:[Microsoft][SQL Native Client]Communication link failure

then L2 crash l2npc crash..

you see there is some "progress"....... I dont understand installing and setting sql 100% but I make it like all guides.. and never have any problems..

any help pls?

rodier
01.06.2006, 20:11
old problems - solved

L2 LinError:

Server Up Time Thu Jun 01 21:42:04 2006

Current Time : Thu Jun 01 22:03:20 2006

Elapsed Time : 0 days 0 hours 21 minutes 16 seconds
IOBufferPool - 4581

[(5880) 2006/06/01 22:03:20]: =======================
an Access Violation in module l2server.exe at 001b:0053a11a.
start at 2006/6/1 21:42:03
Write to location 70b13000 caused an access violation.

Registers:
EAX=5492deaa CS=001b EIP=0053a11a EFLGS=00010207
EBX=6ec7fc94 SS=0023 ESP=6ec7fbf8 EBP=703dfea0
ECX=38f86baa DS=0023 ESI=708dfb9b FS=003b
EDX=e4550003 ES=0023 EDI=70b12fff GS=0000
Bytes at CS:EIP:
f3 a5 8b ca 83 e1 03 f3 a4 8b f8 8b 44 24 1c 0f
Stack dump:
6ec7fbf8: 99a137d4 703dde90 6ec7fc40 00000000 004dfbcb 703ddea2 00001ffe 005d25fb
6ec7fc18: 6ec7fc84 00000000 00000000 00000000 99a137d8 169d25a0 6ec7fc1c 6ec7fc68
6ec7fc38: 005ab7b0 ffffffff 6ec7fc74 004dfca8 005d25f8 6ec7fc84 00000000 00000000
6ec7fc58: 00000000 00000007 6ec7fe50 6ec7fc50 6ec7fe50 005ab7c0 ffffffff 6ec7fe5c
6ec7fc78: 006b85d5 99a137d4 005d25f8 16151413 00000000 e4550003 701aaa43 00000000
6ec7fc98: 2da09248 77e6bb6d c0ac5e00 98dd7f34 98dd7f34 704c9480 6ec7fd94 005a4160
6ec7fcb8: 00000000 6ec7fd20 00440157 96926794 00000000 c0f54580 00000000 410d0790
6ec7fcd8: 00000000 0000002e 41bc0038 2e90a22c c194b398 410d07c9 6ec7fcdc 6ec7fd24
6ec7fcf8: 005a41b0 00000000 6ec7fd30 004413a2 41bc0024 0000002e 41bc0024 2e90a22c
6ec7fd18: 00000010 00000000 7c8213e4 71b2192f 00050340 00000000 00000000 6aca2314


ver = Jun 8 2004____15:38:30 thread id=2

void IOThread_common(void *arglist) <--
void CDBPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
cpacket::oniocallback_funccall <--
static bool LoadCharacterPacket(CDBSocket *socket, const unsigned char *packet) <--
void CSocket::Send(const char* format, ...) <--
void CSocket::SendV(const char* format, va_list va)

Thread[0] (good): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (ahehe): Lock Stack :

Thread[3] (good): Lock Stack :



[(5880) 2006/06/01 22:03:20]: *ioc.cpp:665(Sat May 15 01:37:29 2004) exception

rodier
01.06.2006, 23:32
solved


hmm I tried use

USE lin2world
GO

ALTER DATABASE lin2world SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO

DBCC CHECKDB('lin2world', REPAIR_REBUILD)
go

ALTER DATABASE lin2world SET MULTI_USER
GO

It repaired 58 of 60 problems with consistency and I repaired the last 2 errors..

but now I see many columns set as PK ..... I removed this modifications..
now BIG lags even with 50 ppl on 4GB dual xeon with this error:

http://xx.xx8.xx.xx/download/chyba.gif
+ the unrecognized errors:
item [id:some_weird_number] null at file{Usersocket.cpp], line 898
invalid warehouse

- solved by adding PK again..

rodier
03.06.2006, 02:35
hmm I found solution... repaired some things in db and now its without error..
but still laggy...

Truffe
03.06.2006, 12:01
At least explained how you solved your problem :|
That could help some people...

rodier
03.06.2006, 12:43
i explained.. I simply use that code to repair db consistency.
that was all ..... the second problem - http://xx.xx8.xx.xx/download/chyba.gif - was because I deleted the PK keys .. and that was big mistake.. if you delete it, database will slow down a lot = deadlocks..

btw > but I still have problems with slow db... dual xeon, 4gbram and with 300 ppl I have sometimes 2sec ss lags and dont know why.. + server going to 96% cpu usage............ any help? its only sometime..