Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   CoD Multiplayer (http://forum.fulqrumpublishing.com/forumdisplay.php?f=192)
-   -   memory leak solution for servers(maybe) (http://forum.fulqrumpublishing.com/showthread.php?t=24285)

Thee_oddball 07-03-2011 05:20 PM

memory leak solution for servers(maybe)
 
Quote:

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

Quote:

Originally Posted by TheEnlightenedFlorist (Post 305294)
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

Quote:

Originally Posted by TheEnlightenedFlorist (Post 305676)
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


All times are GMT. The time now is 07:47 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.