For AWS Lambda, which is better "Workstation GC" or "Server GC". #1193
|
Hi there. https://levelup.gitconnected.com/improving-memory-usage-and-stability-on-aws-lambda-net-7c0c47c5b52e My project settings
|
Replies: 3 comments
|
@sudoudaisuke Most of the time you need not manage garbage collection by yourself if you are disposing off the resources properly in your application logic. Based on the 1st article, it proposes the following: So, it appears that Workstation GC might be the better approach for Lambda environment where memory is limited. |
|
I found Microsoft document. ## GC using Docker and small containers
When multiple containerized apps are running on one machine, Workstation GC might be more performant than Server GC. For more information, see [Running with Server GC in a Small Container](https://devblogs.microsoft.com/dotnet/running-with-server-gc-in-a-small-container-scenario-part-0/) and [Running with Server GC in a Small Container Scenario Part 1 – Hard Limit for the GC Heap](https://devblogs.microsoft.com/dotnet/running-with-server-gc-in-a-small-container-scenario-part-1-hard-limit-for-the-gc-heap/). |
|
Hello! Reopening this discussion to make it searchable. |
@sudoudaisuke Most of the time you need not manage garbage collection by yourself if you are disposing off the resources properly in your application logic. Based on the 1st article, it proposes the following: