<?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[JAVA - Out of Memory]]></title><description><![CDATA[<p dir="auto">Our server installation has crashed twice so far in the past week due to this:</p>
<pre><code>ERROR 2017-08-01T15:52:21,362 (com.serotonin.m2m2.rt.maint.BackgroundProcessing$RejectableWorkItemRunnable.run:559) - Error in work item
java.lang.OutOfMemoryError: Java heap space

</code></pre>
<p dir="auto">Version: core 3.1.1+20170620163725 (Build number: 20170620163725) - Enterprise</p>
<p dir="auto">We used to run it with 2GB without any problems, but since we have the available memory I've increased it to 4GB from now on.</p>
<p dir="auto">What's the permanent way to increase java memory size?</p>
<p dir="auto">Is <a href="https://help.infiniteautomation.com/using-startup-extensions/" rel="nofollow ugc">this</a> the method I should?</p>
]]></description><link>https://forum.mango-os.com/topic/2884/java-out-of-memory</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 15:21:30 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2884.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Aug 2017 21:08:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JAVA - Out of Memory on Mon, 26 Nov 2018 04:06:44 GMT]]></title><description><![CDATA[<p dir="auto">Old thread I know, but I've been having this same issue on a RPi installation.<br />
I hard set the memory and I think it might have fixed the issue.</p>
<p dir="auto">Cheers<br />
Dan</p>
]]></description><link>https://forum.mango-os.com/post/20569</link><guid isPermaLink="true">https://forum.mango-os.com/post/20569</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 26 Nov 2018 04:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to JAVA - Out of Memory on Mon, 14 Aug 2017 17:59:30 GMT]]></title><description><![CDATA[<p dir="auto">Glad to hear it!</p>
]]></description><link>https://forum.mango-os.com/post/15191</link><guid isPermaLink="true">https://forum.mango-os.com/post/15191</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 14 Aug 2017 17:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to JAVA - Out of Memory on Mon, 14 Aug 2017 17:37:17 GMT]]></title><description><![CDATA[<p dir="auto">I've been away for two weeks but we haven't had any more crashes since increasing the heap size.  Thank you.</p>
]]></description><link>https://forum.mango-os.com/post/15189</link><guid isPermaLink="true">https://forum.mango-os.com/post/15189</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Mon, 14 Aug 2017 17:37:17 GMT</pubDate></item><item><title><![CDATA[Reply to JAVA - Out of Memory on Wed, 02 Aug 2017 16:14:39 GMT]]></title><description><![CDATA[<p dir="auto">You can see if the JVM has the arguments by doing a <code>ps $(pidof java)</code> at the command line. If you've passed the argument there, Java got it. You should also see it reflected on the internal metrics page.</p>
]]></description><link>https://forum.mango-os.com/post/15144</link><guid isPermaLink="true">https://forum.mango-os.com/post/15144</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 02 Aug 2017 16:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to JAVA - Out of Memory on Wed, 02 Aug 2017 00:38:59 GMT]]></title><description><![CDATA[<p dir="auto">There was one major change, which was the upgrade to 3.0.</p>
<p dir="auto">So I've created a symbolic link as in my original post, since I noticed that it's essentially the same instructions that you gave.</p>
<p dir="auto">How can I confirm that the changes worked?</p>
]]></description><link>https://forum.mango-os.com/post/15140</link><guid isPermaLink="true">https://forum.mango-os.com/post/15140</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Wed, 02 Aug 2017 00:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to JAVA - Out of Memory on Tue, 01 Aug 2017 22:28:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi mihai,</p>
<p dir="auto">Arguments to control the heap size are passed in the ext-available scripts. You probably want a script like....</p>
<pre><code>#!/bin/bash
case "$1" in
    init)
        # Startup with Java Memory setup for Large installation
        JAVAOPTS="$JAVAOPTS -Xms3200m -Xmx3200m"
        ;;
esac
</code></pre>
<p dir="auto">if you're only running Mango on that machine. Place it in ext-enabled.</p>
<p dir="auto">Did anything change in the configuration recently?</p>
]]></description><link>https://forum.mango-os.com/post/15139</link><guid isPermaLink="true">https://forum.mango-os.com/post/15139</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 01 Aug 2017 22:28:44 GMT</pubDate></item></channel></rss>