Game Development Community

Memory eater: console

by Thomas Huehn · in Torque Game Engine · 09/17/2007 (3:50 am) · 1 replies

I'am not sure its the right forum to post this but i thought its usefull for everybody who's running a dedicated server.
After some days running a dedicated server i found out it consumes more and more memory. First I thought its a memory leak somewhere but finally I found out its the console log buffer. You can easy try this out with:

for ($i=0;$i<10000000;$i++) echo($i SPC "oepwj firoepwj firoepj firoepj firoep jfwiroep fjiroepw jfiroep fjiroepf iroep");

Which finally stop the server with following message: "Alert: Torque Memory Error Error allocating memory. Shutting down. "

To fix this you can set:

$Con::logBufferEnabled=false;

Edit: Or disable it by default in console.cc.

#1
09/17/2007 (4:27 am)
Useful tip, thanks Thomas.

BTW: Where in germany are you located? (me=Hamburg)