<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Discourse memory problem]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> said in <a href="/post/85013">Increase minimum RAM for NocoDB</a>:</p>
<blockquote>
<p dir="auto">which makes me think this loop is going to continue for that long before it gives up... Is there a 1hr hard coded limit?</p>
</blockquote>
<p dir="auto">there is some backoff in docker that if it keeps crashing, it does an exponential backoff for restarts.</p>
<p dir="auto">Is this problem sorted out now? Was this related to disk space?</p>
]]></description><link>https://forum.cloudron.io/topic/11360/discourse-memory-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 22:05:21 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/11360.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Mar 2024 12:55:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Discourse memory problem on Wed, 20 Mar 2024 21:33:14 GMT]]></title><description><![CDATA[<p dir="auto">The Discourse app that eventually installed when I upped the memory to 5.13 GB RAM, but which I've never even opened, just ran out of RAM <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=11345d81604" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /> which just doesn't seem right.</p>
<p dir="auto">(<a class="plugin-mentions-group plugin-mentions-a" href="/groups/staff" aria-label="Profile: staff">@<bdi>staff</bdi></a> I guess perhaps we should move all these posts from #5 onwards into the Discourse category?)</p>
]]></description><link>https://forum.cloudron.io/post/85379</link><guid isPermaLink="true">https://forum.cloudron.io/post/85379</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Wed, 20 Mar 2024 21:33:14 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 18:12:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> said in <a href="/post/85078">Increase minimum RAM for NocoDB</a>:</p>
<blockquote>
<p dir="auto">Makes me wonder if there might be some errors in my RAM or something (any ideas how I'd check that?)</p>
</blockquote>
<p dir="auto">I installed memtester on the server and tested 4GB 4 times and it all came out OK:</p>
<pre><code>memtester 4G 4
memtester version 4.5.1 (64-bit)
Copyright (C) 2001-2020 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 4096MB (4294967296 bytes)
got  4096MB (4294967296 bytes), trying mlock ...locked.
Loop 1/4:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         
  8-bit Writes        : ok
  16-bit Writes       : ok

Loop 2/4:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         
  8-bit Writes        : ok
  16-bit Writes       : ok

Loop 3/4:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         
  8-bit Writes        : ok
  16-bit Writes       : ok

Loop 4/4:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         
  8-bit Writes        : ok
  16-bit Writes       : ok

</code></pre>
]]></description><link>https://forum.cloudron.io/post/85080</link><guid isPermaLink="true">https://forum.cloudron.io/post/85080</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 18:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 17:56:03 GMT]]></title><description><![CDATA[<p dir="auto">Tested on the demo (although that's on 7.7.0 whereas I'm still on 7.6.4) and Discourse installed fine with 4GB RAM.</p>
<p dir="auto">But on my system it just will not install with 4GB, the same thing happens every time. Makes me wonder if there might be some errors in my RAM or something (any ideas how I'd check that?)</p>
<p dir="auto">But If I crank the memory up, it installs: I just tried yet another test, failed exactly as above. Then cranked it up to 6.25 and now it's running...</p>
<p dir="auto">Just tested with 5.13 GB too and that also worked...</p>
<p dir="auto">On my system Discourse fails to instal with 4.88 GB, but with 5.13 GB it works (the existing slider makes it basically impossible for me to test anything between these figures)</p>
]]></description><link>https://forum.cloudron.io/post/85078</link><guid isPermaLink="true">https://forum.cloudron.io/post/85078</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 17:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 17:18:21 GMT]]></title><description><![CDATA[<p dir="auto">Tested on the demo (although that's on 7.7.0 whereas I'm still on 7.6.4) and Discourse installed fine with 4GB RAM.</p>
<p dir="auto">But on my system it just will not install with 4GB, the same thing happens every time. Makes me wonder if there might be some errors in my RAM or something (any ideas how I'd check that?)</p>
<p dir="auto">But If I crank the memory up, it installs: I just tried yet another test, failed exactly as above. Then cranked it up to 6.25 and now it's running...</p>
]]></description><link>https://forum.cloudron.io/post/85077</link><guid isPermaLink="true">https://forum.cloudron.io/post/85077</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 17:18:21 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 16:23:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> said in <a href="/post/85070">Increase minimum RAM for NocoDB</a>:</p>
<blockquote>
<p dir="auto">I've just bumped the memory up to 4.25 to see what happens...</p>
</blockquote>
<p dir="auto">Didn't make any difference... bumped it to 4.5...</p>
]]></description><link>https://forum.cloudron.io/post/85073</link><guid isPermaLink="true">https://forum.cloudron.io/post/85073</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 16:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 15:58:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/85046">Increase minimum RAM for NocoDB</a>:</p>
<blockquote>
<p dir="auto">Was this related to disk space?</p>
</blockquote>
<p dir="auto">I don't think so as this repeat test was done after sorting out my disk space issue.</p>
<p dir="auto">It's still looping through the same thing and running out of memory on the hour.</p>
<p dir="auto"><img src="/assets/uploads/files/1710431846716-ffba4e2f-c6a3-4566-b203-ae1fe07ba190-image.png" alt="ffba4e2f-c6a3-4566-b203-ae1fe07ba190-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I've just bumped the memory up to 4.25 to see what happens...</p>
]]></description><link>https://forum.cloudron.io/post/85070</link><guid isPermaLink="true">https://forum.cloudron.io/post/85070</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 15:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse memory problem on Thu, 14 Mar 2024 08:17:37 GMT]]></title><description><![CDATA[<p dir="auto">Hmz, the same thing just happened when installing Discourse and that's already got a 4GB minimum! Literally haven't even opened it and it's already run out of memory twice, but the graphs don't show it going up over 2GB <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=11345d81604" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<p dir="auto"><img src="/assets/uploads/files/1710392639445-d90ecda0-3ed0-45b1-98ca-dbb965b64908-image.png" alt="d90ecda0-3ed0-45b1-98ca-dbb965b64908-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I don't think it ever actually started running. Just kept going into Not Responding.</p>
<p dir="auto">And it's still the same after cranking it up to nearly 8GB... although, when I looked at the logs it was obviously still doing stuff and starting up, so not sure why it was already showing as Not Responding? But with the increased memory it did eventually get to Running.</p>
<p dir="auto">But now, just to test again, I'm trying to install another instance to see if that runs out of memory before I even open it too...</p>
<p dir="auto">... but for the last <s>10</s> <s>15</s> 20 (and counting) minutes it's been doing this over and over again:</p>
<pre><code>==&gt; Pre-compiling assets
Mar 14 05:13:35$ /app/code/app/assets/javascripts/node_modules/.bin/ember build
Mar 14 05:13:35Node.js heap_size_limit (1481.5) is less than 2048MB. Setting --max-old-space-size=2048.
Mar 14 05:13:35fatal: not a git repository (or any of the parent directories): .git
Mar 14 05:13:35yarn run v1.22.19
Mar 14 05:13:37Building
Mar 14 05:13:37Environment: development
Mar 14 05:13:37WARNING: Ember CLI v5.0.0 is not tested against Node v20.11.0. See "https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md" to find out which version of Node is best to use.
Mar 14 05:13:38WARNING: ember-test-selectors: You are using an unsupported ember-cli-babel version. data-test properties are not automatically stripped from your JS code.
Mar 14 05:13:38building...
Mar 14 05:13:40...[Babel: @embroider/macros &gt; applyPatches]
Mar 14 05:13:40...[Babel: discourse-widget-hbs &gt; applyPatches]
Mar 14 05:13:40...[Babel: ember-source &gt; applyPatches]
Mar 14 05:13:40...[ConfigLoader]
Mar 14 05:13:40=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 05:13:43...[Babel: @ember/legacy-built-in-components &gt; applyPatches]
Mar 14 05:13:43...[Babel: @ember/test-helpers &gt; applyPatches]
Mar 14 05:13:43...[Babel: dialog-holder &gt; applyPatches]
Mar 14 05:13:43...[Babel: discourse-common &gt; applyPatches]
Mar 14 05:13:43...[Babel: ember-resize-observer-service &gt; applyPatches]
Mar 14 05:13:43...[Babel: float-kit &gt; applyPatches]
Mar 14 05:13:43...[Babel: pretty-text &gt; applyPatches]
Mar 14 05:13:43...[ember-testing.js]
Mar 14 05:13:44...[@embroider/compat/app]
Mar 14 05:13:44...[Babel: select-kit &gt; applyPatches]
Mar 14 05:13:45...[@embroider/webpack]
Mar 14 05:13:50=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 05:13:51...[@embroider/webpack]
Mar 14 05:13:57...[@embroider/webpack]
Mar 14 05:14:00=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 05:14:06Killed
Mar 14 05:14:06error Command failed with exit code 137.
Mar 14 05:14:06info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Mar 14 05:14:07==&gt; Changing permissions
Mar 14 05:14:07==&gt; Configuring discourse
Mar 14 05:14:07==&gt; Creating directories
Mar 14 05:14:07==&gt; Creating symlinks for built-in plugins
Mar 14 05:14:07==&gt; Migrating database
Mar 14 05:14:09fatal: not a git repository (or any of the parent directories): .git
Mar 14 05:14:10=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
</code></pre>
<p dir="auto">I think perhaps something is not right with the package. And looking at my notifications about the memory time outs, it seems they were almost exactly every hour... which makes me think this loop is going to continue for that long before it gives up... Is there a 1hr hard coded limit?</p>
<p dir="auto">Eventually the logs said:</p>
<pre><code>Mar 14 05:31:2212:M 14 Mar 2024 05:31:22.020 * 10 changes in 300 seconds. Saving...
Mar 14 05:31:2212:M 14 Mar 2024 05:31:22.020 * Background saving started by pid 37
Mar 14 05:31:2237:C 14 Mar 2024 05:31:22.045 * DB saved on disk
Mar 14 05:31:2237:C 14 Mar 2024 05:31:22.046 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
Mar 14 05:31:2212:M 14 Mar 2024 05:31:22.120 * Background saving terminated with success
</code></pre>
<p dir="auto">Which I think is when the app finally went from Starting... to Not responding, but it's still just stuck on going through the above loop over and over again...</p>
<p dir="auto">I need to go to bed, but I reckon I'll see an out of memory notification around 06:13 after it's done this for an hour and then given up...</p>
<p dir="auto">...it was a bit sooner, then hourly:</p>
<p dir="auto"><img src="/assets/uploads/files/1710404199111-8953bb28-ccc4-471c-919e-cdb07c4657bf-image.png" alt="8953bb28-ccc4-471c-919e-cdb07c4657bf-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It's still just looping through this:</p>
<pre><code>Mar 14 08:16:09==&gt; Pre-compiling assets
Mar 14 08:16:10=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 08:16:10fatal: not a git repository (or any of the parent directories): .git
Mar 14 08:16:11Node.js heap_size_limit (1481.5) is less than 2048MB. Setting --max-old-space-size=2048.
Mar 14 08:16:11yarn run v1.22.19
Mar 14 08:16:11$ /app/code/app/assets/javascripts/node_modules/.bin/ember build
Mar 14 08:16:12WARNING: Ember CLI v5.0.0 is not tested against Node v20.11.0. See "https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md" to find out which version of Node is best to use.
Mar 14 08:16:12Building
Mar 14 08:16:12Environment: development
Mar 14 08:16:13WARNING: ember-test-selectors: You are using an unsupported ember-cli-babel version. data-test properties are not automatically stripped from your JS code.
Mar 14 08:16:14building...
Mar 14 08:16:15...[ConfigLoader]
Mar 14 08:16:15...[Babel: @embroider/macros &gt; applyPatches]
Mar 14 08:16:16...[Babel: ember-source &gt; applyPatches]
Mar 14 08:16:18...[Babel: @glimmer/component &gt; applyPatches]
Mar 14 08:16:18...[Babel: pretty-text &gt; applyPatches]
Mar 14 08:16:19...[Babel: discourse-common &gt; applyPatches]
Mar 14 08:16:19...[Babel: @ember/legacy-built-in-components &gt; applyPatches]
Mar 14 08:16:19...[Babel: @ember/test-helpers &gt; applyPatches]
Mar 14 08:16:19...[Babel: dialog-holder &gt; applyPatches]
Mar 14 08:16:19...[Babel: ember-on-resize-modifier &gt; applyPatches]
Mar 14 08:16:19...[Babel: float-kit &gt; applyPatches]
Mar 14 08:16:19...[Babel: select-kit &gt; applyPatches]
Mar 14 08:16:20=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 08:16:20...[@embroider/compat/app]
Mar 14 08:16:21...[@embroider/webpack]
Mar 14 08:16:27...[@embroider/webpack]
Mar 14 08:16:30=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 08:16:33...[@embroider/webpack]
Mar 14 08:16:40=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 08:16:50=&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.17.195:80
Mar 14 08:16:55Killed
Mar 14 08:16:55error Command failed with exit code 137.
Mar 14 08:16:55info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Mar 14 08:16:56==&gt; Creating directories
Mar 14 08:16:56==&gt; Configuring discourse
Mar 14 08:16:56==&gt; Creating symlinks for built-in plugins
Mar 14 08:16:56==&gt; Changing permissions
Mar 14 08:16:56==&gt; Migrating database
Mar 14 08:16:5712:M 14 Mar 2024 08:16:57.060 * 10 changes in 300 seconds. Saving...
Mar 14 08:16:5712:M 14 Mar 2024 08:16:57.060 * Background saving started by pid 70
Mar 14 08:16:5770:C 14 Mar 2024 08:16:57.087 * DB saved on disk
Mar 14 08:16:5770:C 14 Mar 2024 08:16:57.088 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 1 MB
Mar 14 08:16:5712:M 14 Mar 2024 08:16:57.161 * Background saving terminated with success
Mar 14 08:16:57fatal: not a git repository (or any of the parent directories): .git
</code></pre>
]]></description><link>https://forum.cloudron.io/post/85013</link><guid isPermaLink="true">https://forum.cloudron.io/post/85013</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 14 Mar 2024 08:17:37 GMT</pubDate></item></channel></rss>