Skip to content

For AWS Lambda, which is better "Workstation GC" or "Server GC". #1193

Answered by ashishdhingra
sudoudaisuke asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

There are 2 types of garbage collection in dotnet core: Workstation GC and Server GC. Server GC is optimized for server usage, under the assumption that CPU usage is more highly prioritized than memory. This type of garbage collection allows for much higher memory usage, which might be no problem on a big server, but for Lambda functions where memory is very often scarce (we are paying for it after all!) this might not always be the best approach. Workstation GC can in many cases be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sudoudaisuke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. module/lambda-client-lib
2 participants