<?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 OOM error]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I have a test install of Mango 3.1.1 running in an AWS t2.micro (free tier) instance, with 512MB memory. Approx every week or so Mango will crash because Java runs out of memory:</p>
<pre><code>Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f65c452d000, 12288, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/mango/hs_err_pid25504.log
</code></pre>
<p dir="auto">I am running Ubuntu 14.04.05 LTS with:</p>
<pre><code># JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
</code></pre>
<p dir="auto">Is there any suggested way I can configure Java (or Mango) so that it runs more happily on this server?</p>
<p dir="auto">I should also add that I am running another application on this server (a PHP-based network monitor called LibreNMS) which I'm sure is not helping things.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.mango-os.com/topic/2871/java-oom-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 08:18:02 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2871.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jul 2017 17:57:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Java OOM error on Thu, 27 Jul 2017 21:36:48 GMT]]></title><description><![CDATA[<p dir="auto">Great, thanks Joel – I'll check that out. Mango reports that the JVM free memory is 144 MB  and JVM maximum available memory is 241 MB.</p>
]]></description><link>https://forum.mango-os.com/post/15098</link><guid isPermaLink="true">https://forum.mango-os.com/post/15098</guid><dc:creator><![CDATA[jeremyh]]></dc:creator><pubDate>Thu, 27 Jul 2017 21:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Java OOM error on Wed, 26 Jul 2017 18:08:29 GMT]]></title><description><![CDATA[<p dir="auto">Two things that might help.</p>
<ol>
<li>
<p dir="auto">Go to the Internal Metrics page and check to see how much memory Mango has to work with.</p>
</li>
<li>
<p dir="auto">you can use a start up extension: <a href="https://help.infiniteautomation.com/using-startup-extensions/" rel="nofollow ugc">https://help.infiniteautomation.com/using-startup-extensions/</a> to assign more memory to Mango.  You have to be careful as the OS needs memory too and with only 512 mb ram you don't have much to play with.  I would normally use a minimum of 1gb of ram and we have many Amazon installs like this running fine.</p>
</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/15081</link><guid isPermaLink="true">https://forum.mango-os.com/post/15081</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Wed, 26 Jul 2017 18:08:29 GMT</pubDate></item></channel></rss>