<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Resource limits on Nerdsid.com</title><link>https://nerdsid.com/tags/resource-limits/</link><description>Recent content in Resource limits on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Jul 2026 13:30:50 +0000</lastBuildDate><atom:link href="https://nerdsid.com/tags/resource-limits/index.xml" rel="self" type="application/rss+xml"/><item><title>Container Cpu Limit Configuration</title><link>https://nerdsid.com/posts/docker-container-cpu-limits/</link><pubDate>Wed, 01 Jul 2026 13:30:50 +0000</pubDate><guid>https://nerdsid.com/posts/docker-container-cpu-limits/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>In this lab, you&amp;rsquo;ll limit the CPU usage of a Docker container that consumes excessive CPU resources.&lt;/p>
&lt;h2 id="scenario">Scenario&lt;/h2>
&lt;p>A container named &lt;code>cpu_test&lt;/code> is running from the &lt;code>myapp:cpu&lt;/code> image and performs CPU-intensive computations. When monitored with &lt;code>docker stats&lt;/code>, the container regularly consumes 150–200% CPU, utilizing multiple CPU cores and impacting other services on the host.&lt;/p>
&lt;h2 id="task">Task&lt;/h2>
&lt;p>Recreate the container with a CPU limit of 500m CPU so that &lt;code>docker stats&lt;/code> reports CPU usage consistently below 60% during validation.&lt;/p></description></item></channel></rss>