User avatar
johan
GpsGate
Posts: 14390
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

GUIDE: Speed up scripting.

Thu Apr 27, 2017 4:06 pm

If you have many scripts, Device Mapper Scripts and Scripts Expression, your server will benefit greatly from enabling multi-threaded garbage collection. Experience from production servers shows that a report can be processed sometimes as much as 3 times faster with this option enabled.

Multi-threaded garbage collection is a new feature in .NET 4.5 and later. If you have not already upgraded your server to use .NET 4.6, do it now: viewtopic.php?f=29&t=19575

How to enable multi-threaded garbage collection

1. Backup C:\GpsGateServer\Franson NMEA Service\GpsGate.Service.exe.config

2. Add the <runtime> tag below inside the <configuration> tag in GpsGate.Service.exe.config

Code: Select all

<configuration>  

  <!-- here you have a lot of other tags!! -->

  <!-- Add this one -->
  <runtime> 
     <gcConcurrent enabled="true" /> 
     <gcServer enabled="true" />
  </runtime>  
  
</configuration>


3. Save and restart the Service.

Now you have memory management on your server takes full advantage of all CPU cores rather than just one as before.
Regards,
Johan

GpsGate Support

kentravis
Posts: 8
Joined: Wed Sep 17, 2014 12:35 am
Location: USA

Re: GUIDE: Speed up scripting.

Fri Feb 09, 2018 9:43 pm

Is there someway to know or test if this is working?

Return to “GpsGate Server - How to setup and use”