|
You last visited: Today at 16:19
Advertisement
Cpu Usage Problem
Discussion on Cpu Usage Problem within the CO2 Private Server forum part of the Conquer Online 2 category.
04/28/2013, 14:42
|
#1
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
Cpu Usage Problem
I have Problem My Cpu Usage take alot i have 6 Cpu and take 91%
Mysqld it's only take all usage
|
|
|
04/28/2013, 14:43
|
#2
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
I take it this is while your running a server?
|
|
|
04/28/2013, 15:13
|
#3
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
Yea when i close Server Cpu back to 0 usage it's big Vps 16 gigaRam and 6 Cpu
|
|
|
04/28/2013, 15:59
|
#4
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Yeah, the problem is that your server is written badly, no real surprise there.
|
|
|
04/28/2013, 18:59
|
#5
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
Quote:
Originally Posted by Korvacs
Yeah, the problem is that your server is written badly, no real surprise there.
|
So....
32 Viewer and no Resolved
|
|
|
04/28/2013, 22:31
|
#6
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by magnon
So....
32 Viewer and no Resolved
|
Nope, the only way to resolve this is to rewrite your server, and since you have copy pasted most of your server from other servers its no wonder its broken to ****. lol
|
|
|
04/28/2013, 22:36
|
#7
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Do you run any infinite loops that doesn't sleep for at least 1 miillisecond?
|
|
|
04/28/2013, 23:39
|
#8
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
I Resolved it it's was from programe.cs have alot of Save i just Delete it
|
|
|
04/28/2013, 23:50
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by magnon
I Resolved it it's was from programe.cs have alot of Save i just Delete it
|
Unbelievable
|
|
|
04/29/2013, 00:15
|
#10
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Good job! I usually do like that too, delete the saving parts. Mehh, who cares what they do - just select it all and delete! As long as it works, right?
Do you do consultant job?
|
|
|
04/29/2013, 00:38
|
#11
|
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
|
well i really would want to be sarcastic but i suck at it anyway
why would you save everything with loop from "programe.cs" instead of saving them from the event itself ?
what i mean is
lets assume that you are smart and only saving for online players
and lets assume that you give a good sleep for your saving maybe 5 ms or something
that will end you up saving maybe 200 variable for 50 players which is an avg of updating the database with 10,000 variable each 5 ms which is 120k variable per min
instead of saving variables at there own events
ex.
when someone jump you save check for the coords to be valid or not then save them as current , save the old as previous , calculate whatever you want for eliminating speedhacks (what's what i was personally doin in nextco if i recall correctly)
|
|
|
04/29/2013, 02:01
|
#12
|
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
|
how about memoryusage high , any tip where would i look
|
|
|
04/29/2013, 03:41
|
#13
|
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
|
Quote:
Originally Posted by marcbacor6666
how about memoryusage high , any tip where would i look
|
Maps? :| That is the reason that servers will have a high memory usage, what u have to worry is how scalable is what u are coding, not the "base memory usage"
|
|
|
04/29/2013, 05:34
|
#14
|
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
|
if you ask me the only good way to save is,
when the player logoff and when the server shutdown. thats all.
|
|
|
04/29/2013, 05:51
|
#15
|
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
|
Quote:
Originally Posted by LordGragen.
if you ask me the only good way to save is,
when the player logoff and when the server shutdown. thats all.
|
so when player buy something you don't update his cps/gold until he relogin ?
when player trade/sellthrowbooth you don't remove the items from his inventory or update cps until he relogin ?
and count on that so many stuff :\
i still insist that the best way for updating the db is on the event itself , not with a timer and not on player logging off or even server shutting down
maybe you do not suffer from that at trinity as it's all well coded on changing cps it update the clients but if it wasn't done you was to understand why it should be there
|
|
|
 |
|
Similar Threads
|
CPU Usage
03/06/2013 - Conquer Online 2 - 0 Replies
Can someone do some coding and get rid of this problem? Or tell me how I can do it? I formated and reinstalled windows 7.. CO leaked before but was manageable. Now it runs at 98 pct CPU, drains my physical memory down to 42 free and all this is making my poor cpu run at 92 degrees C.
Ive been on all types of forums, shut down essentially everything running in windows and even tried the dumb process explorer "Kill the extra conquer.exes" which only served to disconnect me constantly. PLEASE...
|
[PROBLEM] CPU usage 80% or even more while playing
08/15/2012 - Archlord - 8 Replies
Hi guys, since today i've started to have this problem with my PC, i don't know if this is normal while playing AL or if i'm being paranoic, or if my procesator have any kind of problem.
I have an Intel Core 2 duo E7300 and 3gb Memory ram, while i'm playing AL (With 1 account) i see that my Memory ram total usage is around 40%/50% that's normal, but when i see Procesator total usage, it stay in 60%, 70% and sometimes it goes to 100%.
This is normal or while playing AL?, thanks in advance.
|
CPU Usage
03/07/2012 - Kal Online - 13 Replies
Any one know how to solve this problem, my kalonline using 70 - 80% of my cpu, my cpu is intel petium dual core E2220 @2,40GHz, im using windows 7 64 bits with 4gb memory, if any one know any solution please say Thx.
|
[Problem]Excessive Item Usage
07/28/2011 - Flyff Private Server - 0 Replies
hat sich geklärt funz jetzt alles!
mfg NiGHT
|
All times are GMT +1. The time now is 16:19.
|
|