azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

HGOV processactivator - add options for setting per-process env variables needed for .NET 6 GC control #780

Open itadapter opened 2 years ago

itadapter commented 2 years ago

https://learn.microsoft.com/en-us/dotnet/core/runtime-config/garbage-collector#ways-to-specify-the-configuration

A list of GC control environment variables:

  export DOTNET_gcServer=1
  export DOTNET_GCHeapCount=hex
  export DOTNET_gcConcurrent=1|0
  export DOTNET_GCHeapCount=hex
  export DOTNET_GCHeapAffinitizeMask=hex
  export DOTNET_GCHeapAffinitizeRanges=1-4,8-16
  export DOTNET_GCNoAffinitize=0|1
  export DOTNET_GCHeapHardLimit=hex-byte-size
  export DOTNET_GCHeapHardLimitPercent=hex-percent
  export DOTNET_GCHighMemPercent=hex-percent
  export DOTNET_GCRetainVM=0|1
  export DOTNET_GCLOHThreshold=hex-byte-size
  export DOTNET_GCConserveMemory=0-9
itadapter commented 2 years ago

Related g8#492