Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

440
Views
dotnet core limit memory usage

I'm trying to run dotnet core project in Kubernetes and I am wondering if there a way to limit memory usage from dotnet core project itself the same way we can set a limit for jvm projects.

I see there is an optional argument in Docker to set memory limit:

docker run --memory="198m" xxx

Also in Kubernetes yaml file, we can set memory limit as well:

resources:
  requests:
    # ~402 MB
    memory: "384Mi"
    cpu: "250m"
  limits:
    # ~1500MB
    memory: "1430Mi"
    cpu: "500m"
over 4 years ago ยท Santiago Trujillo
1 answers
Answer question

0

If you're using dotnet core 2.0.2 or higher I believe it respects Docker's cgroup limits by default.
So all good on 2.0.2+. Just set the resource limits in K8S ๐Ÿ‘

https://github.com/dotnet/coreclr/pull/13895

over 4 years ago ยท Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!