<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>performance &amp;mdash; Simple Engineering</title>
    <link>https://getsimple.works/tag:performance</link>
    <description></description>
    <pubDate>Mon, 20 Apr 2026 16:49:01 +0000</pubDate>
    <item>
      <title>nodejs memory issues</title>
      <link>https://getsimple.works/nodejs-memory-issues?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[One of the reasons nodejs applications slow is lacking accountability when it comes to managing memory. We normally defer that memory management tasks the garbage collection. That is an answer to a couple of issues, that turned out to also to be a problem. &#xA;&#xA;This blog takes a different approach, and only states facts about key memory hogs operations, and provides quick fixes, whenever there is, without going into too many details -- or references. &#xA;&#xA;In this article we will talk about: &#xA;&#xA;Identifying memory leak issues. &#xA;Tracing nodejs application memory issues&#xA;Cleaning nodejs long-lasting objects &#xA;Production grade memory leak detection tools &#xA;&#xA;  Even though this blog post was designed to offer complementary materials to those who bought my Testing nodejs Applications book, the content can help any software developer to tuneup working environment. You use this link to buy the book.  Testing nodejs Applications Book Cover&#xA;&#xA;Memory Leak&#xA;&#xA;Managing memory can be a daunting task in nodejs environment. Some strategies to detect and correct memory leaks can be found in the following articles.&#xA;&#xA;  This article is unfinished business and will be adding more content as I experience memory leak problems, or find some interesting use cases off Github and StackOverflow. &#xA;&#xA;Hunting a Ghost - Finding a Memory Leak in nodejs ~ RisingStack Blog&#xA;Simple Guide to Finding a JavaScript Memory Leak in nodejs ~ Alex Kras Blog&#xA;Tracking down Memory leaks in nodejs - A nodejs Holiday Season ~ Mozilla Hacks&#xA;Export this: Interface Design Patterns for nodejs Modules ~ GoodEggs&#xA;Node runs out of memory running our builds&#xA;nodejs Performance Tip of the Week: Managing Garbage Collection ~ StrongLoop Blog&#xA;Memory management reference&#xA;Understanding Garbage Collection and hunting Memory Leaks in nodejs ~ Dynatrace Blog&#xA;Expose gc not working, a GitHub issue&#xA;Expose gc in Chrome-based testing environments ~ StackOverflow query&#xA;Using process.memoryUsage() to track heap use in nodejs apps ~ nodejs documentation&#xA;How to monitor Monitor memory usage for nodejs ~ StackOverflow Query 56,418 Views so far&#xA;&#xA;Conclusion&#xA;&#xA;In this article, we focused on identifying potential sources of memory leaks in nodejs applications and provided early detection mechanisms so that the same problem cannot happen again. There are additional complimentary materials on memory management in the &#34;Testing nodejs Applications book&#34; book.&#xA;&#xA;#snippets #performance #nodejs #memory-leak]]&gt;</description>
      <content:encoded><![CDATA[<p>One of the reasons <code>nodejs</code> applications slow is lacking accountability when it comes to managing memory. We normally defer that memory management tasks the garbage collection. That is an answer to a couple of issues, that turned out to also to be a problem.</p>

<p>This blog takes a different approach, and only states facts about key memory hogs operations, and provides quick fixes, whenever there is, without going into too many details — or references.</p>

<p><strong><em>In this article we will talk about:</em></strong></p>
<ul><li>Identifying memory leak issues.</li>
<li>Tracing <code>nodejs</code> application memory issues</li>
<li>Cleaning <code>nodejs</code> long-lasting objects</li>
<li>Production grade memory leak detection tools</li></ul>

<blockquote><p>Even though this blog post was designed to offer complementary materials to those who bought my <strong><em><a href="https://bit.ly/2ZFJytb">Testing <code>nodejs</code> Applications book</a></em></strong>, the content can help any software developer to tuneup working environment. <strong><em><a href="https://bit.ly/2ZFJytb">You use this link to buy the book</a></em></strong>.  <a href="https://bit.ly/2ZFJytb"><img src="https://snap.as/a/42OS2vs.png" alt="Testing nodejs Applications Book Cover"/></a></p></blockquote>

<h2 id="memory-leak" id="memory-leak">Memory Leak</h2>

<p>Managing memory can be a daunting task in <code>nodejs</code> environment. Some strategies to detect and correct memory leaks can be found in the following articles.</p>

<blockquote><p>This article is unfinished business and will be adding more content as I experience memory leak problems, or find some interesting use cases off Github and StackOverflow.</p></blockquote>
<ul><li>Hunting a Ghost – Finding a Memory Leak in <code>nodejs</code> ~ <a href="https://blog.risingstack.com/finding-a-memory-leak-in-node-js/">RisingStack Blog</a></li>
<li>Simple Guide to Finding a JavaScript Memory Leak in <code>nodejs</code> ~ <a href="https://www.alexkras.com/simple-guide-to-finding-a-javascript-memory-leak-in-node-js/">Alex Kras Blog</a></li>
<li>Tracking down Memory leaks in <code>nodejs</code> – A <code>nodejs</code> Holiday Season ~ <a href="https://hacks.mozilla.org/2012/11/tracking-down-memory-leaks-in-node-js-a-node-js-holiday-season/">Mozilla Hacks</a></li>
<li>Export <code>this</code>: Interface Design Patterns for <code>nodejs</code> Modules ~ <a href="https://bites.goodeggs.com/posts/export-this/">GoodEggs</a></li>
<li><a href="https://github.com/angular/angular/issues/5229">Node runs out of memory running our builds</a></li>
<li><code>nodejs</code> Performance Tip of the Week: Managing Garbage Collection ~ <a href="https://strongloop.com/strongblog/node-js-performance-garbage-collection/">StrongLoop Blog</a></li>
<li><a href="https://www.memorymanagement.org/index.html">Memory management reference</a></li>
<li>Understanding Garbage Collection and hunting Memory Leaks in <code>nodejs</code> ~ <a href="https://www.dynatrace.com/blog/understanding-garbage-collection-and-hunting-memory-leaks-in-node-js/">Dynatrace Blog</a></li>
<li><a href="https://github.com/karma-runner/karma-chrome-launcher/issues/138#issuecomment-309017301">Expose <code>gc</code> not working, a GitHub issue</a></li>
<li>Expose <code>gc</code> in Chrome-based testing environments ~ <a href="https://stackoverflow.com/a/41023961/132610">StackOverflow query</a></li>
<li>Using <code>process.memoryUsage()</code> to track heap use in <code>nodejs</code> apps ~ <a href="https://nodejs.org/dist/latest-v8.x/docs/api/process.html#process_process_memoryusage"><code>nodejs</code> documentation</a></li>
<li>How to monitor Monitor memory usage for <code>nodejs</code> ~ <a href="https://stackoverflow.com/a/30087518/132610">StackOverflow Query</a> <strong><em>56,418 Views so far</em></strong></li></ul>

<h2 id="conclusion" id="conclusion">Conclusion</h2>

<p>In this article, we focused on identifying potential sources of memory leaks in <code>nodejs</code> applications and provided early detection mechanisms so that the same problem cannot happen again. There are additional complimentary materials on memory management in the <strong><a href="https://bit.ly/2ZFJytb">“Testing <code>nodejs</code> Applications book”</a></strong> book.</p>

<p><a href="https://getsimple.works/tag:snippets" class="hashtag"><span>#</span><span class="p-category">snippets</span></a> <a href="https://getsimple.works/tag:performance" class="hashtag"><span>#</span><span class="p-category">performance</span></a> <a href="https://getsimple.works/tag:nodejs" class="hashtag"><span>#</span><span class="p-category">nodejs</span></a> <a href="https://getsimple.works/tag:memory" class="hashtag"><span>#</span><span class="p-category">memory</span></a>-leak</p>
]]></content:encoded>
      <guid>https://getsimple.works/nodejs-memory-issues</guid>
      <pubDate>Thu, 17 Jun 2021 04:58:03 +0000</pubDate>
    </item>
  </channel>
</rss>