PDA

View Full Version : memory leak solution for servers(maybe)


Thee_oddball
07-03-2011, 05:20 PM
It turns out the gcConcurrent setting does not change which garbage collector loads. gcConcurrent only has an impact on the workstation (MsCorWks.dll) implementation of the garbage collector (it is effectively ignored by the server implementation), and furthermore only changes the GC behavior on multiprocessor machines.

With the setting enabled the garbage collector uses an additional thread to build a graph of unreachable objects. The rule of thumb is, gcConcurrent=”true” (default setting) will provide for a more responsive application, but can also let the working set (memory usage) grow larger. You’d have to carefully test an application to see if disabling gcConcurrent actually helps an application’s performance or memory usage. The most detailed source of information I’ve found in one place on this subject is Jeffrey Richter’s book.


in your root folder of steam COD you will find the launcherexe config file open it up and change gcconcurrent from true to false and see if your server still suffers from the eventually overload and lag out that happens after it has been running for a while.

S!

TheEnlightenedFlorist
07-03-2011, 11:57 PM
This probably won't do anything because the vast majority of IL-2 is written in C++. It is possible (though unlikely) to have memory "leaks" in managed code, but a garbage collector can't do anything about that. The memory has to be properly dereferenced to begin with.

Thee_oddball
07-04-2011, 09:56 PM
This probably won't do anything because the vast majority of IL-2 is written in C++. It is possible (though unlikely) to have memory "leaks" in managed code, but a garbage collector can't do anything about that. The memory has to be properly dereferenced to begin with.

would changing it effect how the scripts work?

S!

TheEnlightenedFlorist
07-04-2011, 10:43 PM
Yes. I would not be messing around with the garbage collector, though. You'd be hard pressed to write a script that actually used any significant amount of memory. If your script is crashing the server, using tons of memory, or causing a significant impact on performance, no garbage collector can save you.

Thee_oddball
07-04-2011, 11:12 PM
Yes. I would not be messing around with the garbage collector, though. You'd be hard pressed to write a script that actually used any significant amount of memory. If your script is crashing the server, using tons of memory, or causing a significant impact on performance, no garbage collector can save you.

understood, thnx for the info