CPU Usage to High - 5525 Server

01/25/2012 20:08 TheGreatJava#1
Being having a troubling problem with my 5525 Server for some reason with only around 3 people in the cpu usage is way to high hits around 60-70 percent it does lower but then beings to spike up and down and dont have a clue why

[Only registered and activated users can see links. Click Here To Register...]

Thanks in advance for any help
01/25/2012 20:31 turk55#2
try catch statements makes the memory usage go high, so if you manage to code them differently instead of using the try catch statement, it should become lower
01/26/2012 02:30 pro4never#3
Wrong section

#Moved

With that amount of memory usage and with that few players there's no way it's not a fairly large (aka hopefully obvious issue)

My prediction being same as I said on msn..

#1: Threading system (if it uses looping threads to perform server actions, are they sleeping before re-running? If not then that's gonna eat up memory and cpu super fast)

#2: Infinite loops (with delays). If there were no delay it would eat up all your memory in a few seconds but it could be there's some delay in there causing it to continually spiral out of control.

#3: HUGE try catch statements (Example being your entire threading system being try/catch'd)
01/26/2012 09:20 -Sensei-#4
In my case everytime New Map loaded it gives CPU usage. any tips?
01/26/2012 10:32 Lateralus#5
Try catch blocks are only inefficient when an exception is thrown. They're still bad programming practice and should only be used in "exceptional" circumstances (har har). Worst thing to see in a source is empty try catch blocks all over it in methods that will never throw exceptions, since the compiler has to generate these statements in assembly anyway.

As far as your problem, that could be anything.