<?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[How to increase max memory?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">It appears that the max memory flag is hardcoded here:<br />
<a href="https://git.cloudron.io/cloudron/minecraft-app/-/blob/master/backend/minecraft.js#L28" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/minecraft-app/-/blob/master/backend/minecraft.js#L28</a></p>
<p dir="auto">I am seeing frequent crashes and I think it may be due to max memory being capped at 1GB. How can I overcome this?</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Ross</p>
]]></description><link>https://forum.cloudron.io/topic/4328/how-to-increase-max-memory</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 14:30:06 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4328.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Jan 2021 20:28:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to increase max memory? on Wed, 03 Feb 2021 18:28:56 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> how do we mass adjust 50+ apps? <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=ceaf42e9406" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
]]></description><link>https://forum.cloudron.io/post/24807</link><guid isPermaLink="true">https://forum.cloudron.io/post/24807</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 03 Feb 2021 18:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Wed, 03 Feb 2021 17:49:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> said in <a href="/post/24736">How to increase max memory?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> How does this affect running apps of an upgraded system?</p>
</blockquote>
<p dir="auto">Only newly installed apps get the new allocation %. Existing apps run with 50% as before. If you want to change it, you can just adjust the memory of the app a bit and it will reallocate with new strategy.</p>
]]></description><link>https://forum.cloudron.io/post/24798</link><guid isPermaLink="true">https://forum.cloudron.io/post/24798</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 03 Feb 2021 17:49:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Wed, 03 Feb 2021 12:30:23 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> hmmm good to know. I will update and check it again.</p>
]]></description><link>https://forum.cloudron.io/post/24761</link><guid isPermaLink="true">https://forum.cloudron.io/post/24761</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Wed, 03 Feb 2021 12:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Wed, 03 Feb 2021 01:16:15 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> How does this affect running apps of an upgraded system?</p>
<p dir="auto">Is there a new default?</p>
]]></description><link>https://forum.cloudron.io/post/24736</link><guid isPermaLink="true">https://forum.cloudron.io/post/24736</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 03 Feb 2021 01:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Tue, 02 Feb 2021 22:53:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: brutalbirdie">@<bdi>brutalbirdie</bdi></a> said in <a href="/post/24727">How to increase max memory?</a>:</p>
<blockquote>
<p dir="auto">Cloudron allocates 50% of this value as RAM and 50% as swap.</p>
</blockquote>
<p dir="auto">In 6.1, we have changed this strategy. Cloudron now allocates the % based on the system's proportion of RAM and Swap. We found that when a server has lots of memory, it was still busy swapping because we always allocated 50-50.</p>
]]></description><link>https://forum.cloudron.io/post/24731</link><guid isPermaLink="true">https://forum.cloudron.io/post/24731</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 02 Feb 2021 22:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Tue, 02 Feb 2021 21:53:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said in <a href="/post/24621">How to increase max memory?</a>:</p>
<blockquote>
<p dir="auto">I've tried to fixup the app to dynamically adjust the java memory: <a href="https://git.cloudron.io/cloudron/minecraft-app/-/commit/1d86c23c59c04d343bd35c112722b22fb33c9e6d" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/minecraft-app/-/commit/1d86c23c59c04d343bd35c112722b22fb33c9e6d</a></p>
<p dir="auto">I also uploaded a version to test this with https://my.&lt;<a href="http://domain.com" target="_blank" rel="noopener noreferrer nofollow ugc">domain.com</a>&gt;/#/appstore/net.minecraft.cloudronapp?version=1.3.7</p>
<p dir="auto">Would be good to get feedback if this is the fix you expected, then I can make a package release.</p>
</blockquote>
<p dir="auto">Hmm<br />
When setting the App to 10G Memory with cloudron I get this</p>
<pre><code>Feb 02 22:50:38 start minecraft server with memory limit 5120 M
</code></pre>
<p dir="auto">Which is kinda correct since</p>
<pre><code>Cloudron allocates 50% of this value as RAM and 50% as swap.
</code></pre>
<p dir="auto">But still feels a bit misleading.</p>
]]></description><link>https://forum.cloudron.io/post/24727</link><guid isPermaLink="true">https://forum.cloudron.io/post/24727</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Tue, 02 Feb 2021 21:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Tue, 02 Feb 2021 00:11:30 GMT]]></title><description><![CDATA[<p dir="auto">Thanks everyone for your replies and suggestions.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I've deployed that version and it looks good to me. Thanks for your work! I'll keep an eye on the server once the package is released and if the server crashes again I'll be able to see in the crash report how much memory it was using at the time.</p>
]]></description><link>https://forum.cloudron.io/post/24685</link><guid isPermaLink="true">https://forum.cloudron.io/post/24685</guid><dc:creator><![CDATA[rossmaclean]]></dc:creator><pubDate>Tue, 02 Feb 2021 00:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Mon, 01 Feb 2021 11:35:42 GMT]]></title><description><![CDATA[<p dir="auto">I've tried to fixup the app to dynamically adjust the java memory: <a href="https://git.cloudron.io/cloudron/minecraft-app/-/commit/1d86c23c59c04d343bd35c112722b22fb33c9e6d" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/minecraft-app/-/commit/1d86c23c59c04d343bd35c112722b22fb33c9e6d</a></p>
<p dir="auto">I also uploaded a version to test this with https://my.&lt;<a href="http://domain.com" target="_blank" rel="noopener noreferrer nofollow ugc">domain.com</a>&gt;/#/appstore/net.minecraft.cloudronapp?version=1.3.7</p>
<p dir="auto">Would be good to get feedback if this is the fix you expected, then I can make a package release.</p>
]]></description><link>https://forum.cloudron.io/post/24621</link><guid isPermaLink="true">https://forum.cloudron.io/post/24621</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 01 Feb 2021 11:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Mon, 01 Feb 2021 11:14:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rossmaclean" aria-label="Profile: rossmaclean">@<bdi>rossmaclean</bdi></a> Funny I worked on my custom paper mc minecraft app last weekend and can agree this does not get dynamically updated.<br />
<a href="https://git.cloudron.io/BrutalBirdie/papermc-minecraft-app/-/tree/feature/v1.6.5" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/BrutalBirdie/papermc-minecraft-app/-/tree/feature/v1.6.5</a></p>
<p dir="auto">Here with the line you mentioned:<br />
<a href="https://git.cloudron.io/BrutalBirdie/papermc-minecraft-app/-/blob/feature/v1.6.5/backend/minecraft.js#L28" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/BrutalBirdie/papermc-minecraft-app/-/blob/feature/v1.6.5/backend/minecraft.js#L28</a><br />
(Custom app with paper mc instead of vanilla since I want some plugins <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ceaf42e9406" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> )</p>
<p dir="auto">Also I am not 100% sure if it needs to be updated at all.</p>
<p dir="auto">I also followed the <a href="https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/" target="_blank" rel="noopener noreferrer nofollow ugc">Tuning the JVM – G1GC Garbage Collector Flags for Minecraft</a> guide from the creator of PaperMC (but scrapped the <code>-XX:+AlwaysPreTouch</code> due to crashing.)</p>
<p dir="auto">Also noting that with Minecraft 1.17 release the <code>openjdk-8-jdk-headless</code> need to upgraded to <code>openjdk-11-jdk-headless</code> which I tried and ended up with a non working app, so I switched back to <code>openjdk-8-jdk-headless</code></p>
]]></description><link>https://forum.cloudron.io/post/24619</link><guid isPermaLink="true">https://forum.cloudron.io/post/24619</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Mon, 01 Feb 2021 11:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Mon, 01 Feb 2021 01:15:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimcavoli" aria-label="Profile: jimcavoli">@<bdi>jimcavoli</bdi></a> yeah. I didn’t realize this was done for meta base. I was actually working on that in my forked repo for forge minecraft</p>
]]></description><link>https://forum.cloudron.io/post/24576</link><guid isPermaLink="true">https://forum.cloudron.io/post/24576</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 01 Feb 2021 01:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Mon, 01 Feb 2021 00:02:18 GMT]]></title><description><![CDATA[<p dir="auto">This should likely get the same fix as the Metabase package did to make the JVM limits better reflect the available resources.</p>
<p dir="auto">Context: <a href="https://forum.cloudron.io/topic/3588/frequent-java-lang-outofmemoryerror-java-heap-space-errors/5?_=1612137576983">https://forum.cloudron.io/topic/3588/frequent-java-lang-outofmemoryerror-java-heap-space-errors/5?_=1612137576983</a><br />
Fix (for Metabase): <a href="https://git.cloudron.io/cloudron/metabase-app/-/blob/master/start.sh#L38-42" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/metabase-app/-/blob/master/start.sh#L38-42</a></p>
<p dir="auto">cc <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a></p>
]]></description><link>https://forum.cloudron.io/post/24568</link><guid isPermaLink="true">https://forum.cloudron.io/post/24568</guid><dc:creator><![CDATA[jimcavoli]]></dc:creator><pubDate>Mon, 01 Feb 2021 00:02:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to increase max memory? on Sun, 31 Jan 2021 21:05:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rossmaclean" aria-label="Profile: rossmaclean">@<bdi>rossmaclean</bdi></a> Weird. I feel like I've seen mine exceed 1GB but I'll monitor it next time there is activity on the server and let you know what I find.</p>
]]></description><link>https://forum.cloudron.io/post/24552</link><guid isPermaLink="true">https://forum.cloudron.io/post/24552</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 31 Jan 2021 21:05:17 GMT</pubDate></item></channel></rss>