title: Limiting memory on dotnet command
body: <p>I have a web application created with <strong>Angular</strong>, with <strong>.Net</strong> back-end. The app is started with <code>npm run start</code>". the command behind this is:</p>
  
  <blockquote>
    <p>node --max_old_space_size=2048 svg-sprite &amp;&amp; rimraf ./dev/dist &amp;&amp; dotnet run</p>
  </blockquote>
  
  <p>As you can see above I know how to limit the memory used by NodeJs, but my app still fails on my lowly MacBook with 8gb of ram. It fails when it tries to run the:</p>
  
  <blockquote>
    <p>dotnet run</p>
  </blockquote>
  
  <p>I thought about wrapping it in a Docker container and limiting the memory of that, but that doesn't have expected behavior. Is there a way to accomplish what I need without modifying the core codebase? (I can't do that it's not my code).</p>
  
  <p>Edit:</p>
  
  <p>Here are the current failure messages:<br/>
  - <code>System.TimeoutException</code><br/>
  or<br/>
  - <code>JavaScript heap out of memory</code><br/></p>
  
  <p>My guess is the .Net tries to run Angular and it fails somewhere in there.</p>