Game Development Community

High CPU and memory usage on a dedicated server

by Igor G · in Torque Game Engine · 10/15/2008 (6:53 am) · 6 replies

Hi all,

I have a question and maybe someone can share their experiences about running a live dedicated server.
After about a day, and nearly 6000 logins/logouts, the process starts using more and more CPU and memory - this would be normal with this load, except that when the server is empty, it's using 10% of a core and more memory than usual. I'm trying to debug this problem, and am wondering whether there is something in my TorqueScript or whether this may be a bug in the engine code. Anyone have similar experiences?

Thanks.

#1
10/15/2008 (7:17 am)
What are your specs for your dedicated server? One thing that has really bothered me since day 1 of working with TGE is that it seems to never actually delete objects, and this is noticeable with the stock starter.fps. Memory seems to slowly creeps up when starting and stopping games.
#2
10/15/2008 (7:39 am)
They're Blades - Intel Xeon CPU , pretty powerful. 8 Gigs of RAM. The hardware itself is powerful enough to handle the load. I'm just curious why, after a day and nobody left in the world, the CPU is at 10% for 1 core. So I'm trying to figure out whether it's Torque or maybe a bug in one of my scripts.
#3
10/26/2008 (12:06 am)
Anyone have any suggestions to fix this problem?
#4
10/27/2008 (11:49 am)
I actually figured the problem was an error I made in a script. It was creating and destroying many objects that created triggers. When the object was destroyed, I didn't delete the trigger, so it was constantly 'ticking'. After I did that fix, the server's CPU appeared normal after a few days of usage.

Kyle - You might want to double check everything in your scripts to make sure you are cleaning up everything properly.
#5
11/02/2008 (11:55 am)
I found my problems, thanks :)
#6
11/30/2008 (2:05 pm)
What was the problem ?