<?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[Mango Using 100% CPU]]></title><description><![CDATA[<p dir="auto">Re: [Mango consuming 100% CPU](web interface not responding)</p>
<p dir="auto">Hey Guys, I reference whileoneloop's similar issues, although I'm having the same issues on a number of mango installations I have around the traps recently. They are all responding very slowly and timing out on the web interface and the CPU on the box running them is using over 100%.</p>
<pre><code>
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 2678 root      20   0  711504 365344  13468 S 110.6 17.6  73:34.81 java

</code></pre>
<p dir="auto">I'm not quite sure where to go from here.<br />
I can't find where whileoneloop was talking about putting the JAVAOPTS into the startup file, would this be <a href="http://ma-start.sh" rel="nofollow ugc">ma-start.sh</a>?</p>
<p dir="auto">Regards<br />
Dan</p>
]]></description><link>https://forum.mango-os.com/topic/3749/mango-using-100-cpu</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 13:16:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3749.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Sep 2018 05:40:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mango Using 100% CPU on Fri, 07 Sep 2018 22:10:13 GMT]]></title><description><![CDATA[<p dir="auto">Weird!</p>
<p dir="auto">I would try copying your databases folder into the new installation. If that works, I would stop Mango, move the old installation directory, move the new one where the old one was, and start Mango again, which will get the license working.</p>
]]></description><link>https://forum.mango-os.com/post/19784</link><guid isPermaLink="true">https://forum.mango-os.com/post/19784</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 07 Sep 2018 22:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Fri, 07 Sep 2018 21:54:10 GMT]]></title><description><![CDATA[<p dir="auto">I can run up a fresh instance with no data points etc and it seems to run, I'll check what version JVM is on there.<br />
Cheers</p>
]]></description><link>https://forum.mango-os.com/post/19782</link><guid isPermaLink="true">https://forum.mango-os.com/post/19782</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 07 Sep 2018 21:54:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Fri, 07 Sep 2018 15:48:49 GMT]]></title><description><![CDATA[<p dir="auto">Oof. I have seen that error before, but haven't found its exact cause. Something is usually off kilter with either the installation of the core or the Java installation. If you try running up 2.8.8 in a new directory (new installation) do you still see that? What version of Java is installed? I would guess it's an older on! You can download the latest ARM 32bit JVM and unpack it over the existing JVM (which you may need to <code>ls -l /etc/alternatives/java</code> to locate, but it's probably at <code>/usr/lib/jvm/</code>) or you can unpack it someplace else and set JAVA_HOME in your <code>/etc/environment</code></p>
]]></description><link>https://forum.mango-os.com/post/19773</link><guid isPermaLink="true">https://forum.mango-os.com/post/19773</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 07 Sep 2018 15:48:49 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Fri, 07 Sep 2018 01:38:05 GMT]]></title><description><![CDATA[<p dir="auto">ok, so I went back to the original upgrade process, this time extracting the zip which contains the modules also.</p>
<p dir="auto">now the mango process seems to be starting then restarting, looping..<br />
one of the errors I see is:</p>
<pre><code>ERROR 2018-09-07 11:39:27,544 (com.serotonin.m2m2.Lifecycle.fullyInitializeWebContext:971) -
java.lang.NullPointerException
        at com.serotonin.m2m2.Lifecycle.fullyInitializeWebContext(Lifecycle.java:967)
        at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:324)
        at com.serotonin.m2m2.Main.main(Main.java:115)
ERROR 2018-09-07 11:39:27,555 (com.serotonin.m2m2.Main.main:119) - Error during initialization
java.lang.NullPointerException
        at com.serotonin.m2m2.Lifecycle.configureStartupDwr(Lifecycle.java:1023)
        at com.serotonin.m2m2.Lifecycle.fullyInitializeWebContext(Lifecycle.java:974)
        at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:324)
        at com.serotonin.m2m2.Main.main(Main.java:115)

</code></pre>
]]></description><link>https://forum.mango-os.com/post/19770</link><guid isPermaLink="true">https://forum.mango-os.com/post/19770</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 07 Sep 2018 01:38:05 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Thu, 06 Sep 2018 21:20:01 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for that, I'll try that one.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.mango-os.com/post/19768</link><guid isPermaLink="true">https://forum.mango-os.com/post/19768</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 06 Sep 2018 21:20:01 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Thu, 06 Sep 2018 15:25:05 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, that's the right place. My mistake in using the world bundle, I thought it appeared there but it doesn't not. The full core downloads in the top section of the page (two for the latest 3.x enterprise and free, two for 2.8.8) contain modules. Where the cores in the section labelled 'Core Only - No Modules' do not.contain modules.</p>
]]></description><link>https://forum.mango-os.com/post/19763</link><guid isPermaLink="true">https://forum.mango-os.com/post/19763</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 06 Sep 2018 15:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Wed, 05 Sep 2018 22:32:45 GMT]]></title><description><![CDATA[<p dir="auto">Hey Phil, I can't seem to find a bundle pack with all the modules..</p>
<p dir="auto"><img src="https://camo.nodebb.org/55155d3baf4b06aa09253a600b6671d87678eae3?url=https%3A%2F%2Fi.imgur.com%2FZtO8UNZ.png" alt="0_1536187014714_47eecce0-06f3-412c-9179-3a0852d67aa8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Am I looking in the right place?</p>
]]></description><link>https://forum.mango-os.com/post/19759</link><guid isPermaLink="true">https://forum.mango-os.com/post/19759</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 05 Sep 2018 22:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Wed, 05 Sep 2018 21:14:15 GMT]]></title><description><![CDATA[<p dir="auto">Ah I see, that makes sense ;)<br />
I'll try that and come back to you.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.mango-os.com/post/19758</link><guid isPermaLink="true">https://forum.mango-os.com/post/19758</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 05 Sep 2018 21:14:15 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Wed, 05 Sep 2018 14:16:07 GMT]]></title><description><![CDATA[<p dir="auto">Hmm. From your log it appears you maybe only downloaded the core, and not the bundle (which also has the modules). I would suggest downloading the 2.8.8 bundle from <a href="https://store.infiniteautomation.com/core" rel="nofollow ugc">https://store.infiniteautomation.com/core</a> and placing it in your Mango/ directory with the name m2m2-core-2.8.8.zip then trying to start Mango. It should reinstall 2.8.8 and have the 2.8.x versions of the modules in the Mango/web/modules directory (which you could also just copy out of the zip bundle).</p>
]]></description><link>https://forum.mango-os.com/post/19751</link><guid isPermaLink="true">https://forum.mango-os.com/post/19751</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 05 Sep 2018 14:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:46:01 GMT]]></title><description><![CDATA[<p dir="auto">this was the result of the overrides folder...</p>
<pre><code>root@water:/opt/mango# find /opt/mango/overrides/
/opt/mango/overrides/
/opt/mango/overrides/properties
/opt/mango/overrides/properties/env.properties
/opt/mango/overrides/lib
/opt/mango/overrides/lib/libjdns_sd.so

</code></pre>
]]></description><link>https://forum.mango-os.com/post/19741</link><guid isPermaLink="true">https://forum.mango-os.com/post/19741</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:42:32 GMT]]></title><description><![CDATA[<p dir="auto">OK. Now it's looking better, but it's not starting the modules for some reason. Should it be removing the old modules in favour of new ones?<br />
<a href="https://pastebin.com/nFwmvse0" rel="nofollow ugc">https://pastebin.com/nFwmvse0</a></p>
]]></description><link>https://forum.mango-os.com/post/19740</link><guid isPermaLink="true">https://forum.mango-os.com/post/19740</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:42:32 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:36:45 GMT]]></title><description><![CDATA[<p dir="auto">Ah looks like it hadn't finished deleting the lib folder.<br />
File operations on these ES boxes seem a little sluggish at times.</p>
<p dir="auto">I'll try again now.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.mango-os.com/post/19739</link><guid isPermaLink="true">https://forum.mango-os.com/post/19739</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:36:45 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:36:21 GMT]]></title><description><![CDATA[<p dir="auto">Can you check if you have any override class files by doing a,</p>
<p dir="auto"><code>find /opt/mango/overrides/</code></p>
<p dir="auto">and sharing any output. I also wonder if 2.4 is so long ago that you would have manually had to delete the contents of the Mango/lib/ directory before unzipping the update (the Mango/bin/ scripts didn't always perform the upgrade for you, I suspect 2.4 is that way) . I would check your Mango/lib/ directory for jars with duplicate names like ma-core-x.y.z.jar</p>
<p dir="auto">I would expect you're running it under the root user, so permissions shouldn't be an issue.</p>
]]></description><link>https://forum.mango-os.com/post/19738</link><guid isPermaLink="true">https://forum.mango-os.com/post/19738</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:36:21 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:24:31 GMT]]></title><description><![CDATA[<p dir="auto">hmm, looks like there's something on the wing...</p>
<p dir="auto">It's cycling the startup script now, re-spawning over and over. There are a couple of issues I see in the ma.log</p>
<pre><code>ERROR 2018-09-05 08:26:33,604 (org.springframework.web.context.ContextLoader.initWebApplicationContext:220) - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Method 'delegatingApplicationListener' must not be private, final or static; change the method's modifiers to continue
Offending resource: class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]

ERROR 2018-09-05 08:26:26,624 (org.springframework.web.context.ContextLoader.initWebApplicationContext:220) - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Method 'delegatingApplicationListener' must not be private, final or static; change the method's modifiers to continue
Offending resource: class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
        at org.springframework.context.annotation.ConfigurationClassMethod.validate(ConfigurationClassMethod.java:61)
        at org.springframework.context.annotation.ConfigurationClass.validate(ConfigurationClass.java:139)
        at org.springframework.context.annotation.ConfigurationClassParser.validate(ConfigurationClassParser.java:167)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:198)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:142)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
        at org.eclipse.jetty.server.Server.doStart(Server.java:258)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
        at com.serotonin.m2m2.Lifecycle.webServerInitialize(Lifecycle.java:735)
        at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:177)
        at com.serotonin.m2m2.Main.main(Main.java:106)
ERROR 2018-09-05 08:26:26,794 (com.serotonin.m2m2.Lifecycle.terminate:360) - com.serotonin.provider.InputStreamEPollProvider
ERROR 2018-09-05 08:26:26,796 (com.serotonin.m2m2.Lifecycle.terminate:368) - com.serotonin.provider.ProcessEPollProvider
ERROR 2018-09-05 08:26:26,818 (com.serotonin.m2m2.Main.main:111) - Error during initialization
java.lang.NullPointerException
        at com.serotonin.m2m2.Lifecycle.configureStartupDwr(Lifecycle.java:792)
        at com.serotonin.m2m2.Lifecycle.webServerInitialize(Lifecycle.java:741)
        at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:177)
        at com.serotonin.m2m2.Main.main(Main.java:106)

</code></pre>
<p dir="auto">Then in the dmesg output it looks like it's cycling the process. I might try a reboot, I'll also double check permissions haven't changed after the extraction of the new version?</p>
<pre><code>[318213.951971] init: mango main process ended, respawning
[318220.950731] init: mango main process ended, respawning
[318227.939019] init: mango main process ended, respawning
[318235.510695] init: mango main process ended, respawning
[318242.501926] init: mango main process ended, respawning

</code></pre>
]]></description><link>https://forum.mango-os.com/post/19737</link><guid isPermaLink="true">https://forum.mango-os.com/post/19737</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 22:06:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for that I'll see how the upgrade goes..</p>
<p dir="auto">Cheers<br />
Dan</p>
]]></description><link>https://forum.mango-os.com/post/19736</link><guid isPermaLink="true">https://forum.mango-os.com/post/19736</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 22:06:46 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 21:38:08 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">see the reports folder is massive, it doesn't seem to purge reports after it's sent them via email.</p>
</blockquote>
<p dir="auto">I think that was fixed somewhere in the 2.7 series.</p>
<blockquote>
<p dir="auto">I'm not quite sure how to tell which database it's using,</p>
</blockquote>
<p dir="auto">Your last image reveals it to be the H2 database (so you have a Mango/databases/mah2.h2.db file, I would guess). This means you shouldn't have to worry about a database conversion before doing the upgrade.</p>
<blockquote>
<p dir="auto">That's SQL I think?</p>
</blockquote>
<p dir="auto">It is. Derby, H2, and MySQL are all SQL databases.</p>
<blockquote>
<p dir="auto">I'll give it a go, I've copied the whole folder sideways,</p>
</blockquote>
<p dir="auto">Sounds good. If that doesn't solve the issue, it could be caused by a few other things like,</p>
<ol>
<li>A meta point with multiple points from the same data source updating context. This used to drive CPU usage up quite far.</li>
<li>An infinite event loop --&gt; point A generates an event for B, B for A, etc. (less likely in 2.4 since fewer things had context update options)</li>
<li>The events table is large.</li>
</ol>
<p dir="auto">I'm not sure if that 2GB size reflects the NoSQL, the H2, or both, but you may also see performance improvements by doing a restore, via: create a backup from the SQL backup configuration section of the system settings page, stopping Mango, moving the Mango/databases/mah2.h2.db file for safe keeping, starting Mango and doing a restore. This should shrink your H2 database substantially, which should accelerate everything some. We can investigate that if necessary.</p>
]]></description><link>https://forum.mango-os.com/post/19735</link><guid isPermaLink="true">https://forum.mango-os.com/post/19735</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 04 Sep 2018 21:38:08 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 21:14:53 GMT]]></title><description><![CDATA[<p dir="auto">Hey Phil, thanks for the info. I'll try the upgrade to 2.8.8.<br />
I'm not quite sure how to tell which database it's using, I do see info about Mango NoSQL in the System Settings page. It doesn't seem very large, although I did purge a heap of historic data when I first noticed it going slow in the GUI.</p>
<p dir="auto"><img src="https://camo.nodebb.org/a2a56c5c5dfa6eea002fb7a53eb725aa81a565cb?url=https%3A%2F%2Fi.imgur.com%2FTVI6bra.png" alt="0_1536095846731_8d0a68e5-346e-4298-bc06-b8386c595e82-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Or is it the top part... H2? That's SQL I think?</p>
<p dir="auto"><img src="https://camo.nodebb.org/62d2fa4e97cfa4a06a82ccfb4d76e3bb53572864?url=https%3A%2F%2Fi.imgur.com%2FIfRWZ3z.png" alt="0_1536095930518_edd784bc-3427-400c-bab6-dbc168218301-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I'll give it a go, I've copied the whole folder sideways, I see the reports folder is massive, it doesn't seem to purge reports after it's sent them via email.</p>
<p dir="auto">Cheers<br />
Dan</p>
]]></description><link>https://forum.mango-os.com/post/19734</link><guid isPermaLink="true">https://forum.mango-os.com/post/19734</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 04 Sep 2018 21:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Tue, 04 Sep 2018 15:52:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi Dan,</p>
<p dir="auto">From what I recall of 2.4.2, you very likely will see the problem resolved entirely by upgrading to 2.8.8. I can't recall if that means you're on a DERBY database, but if so I would advise converting to MySQL before updating.</p>
<blockquote>
<p dir="auto">I guess the enterprise licence it came with won't upgrade?</p>
</blockquote>
<p dir="auto">MangoES licenses are similar to Enterprise licenses in that they are unrestricted. A difference is that they cannot be transferred to other machines. Upgrade licenses for 2 to 3 on MangoES licenses are $500, I believe.</p>
]]></description><link>https://forum.mango-os.com/post/19731</link><guid isPermaLink="true">https://forum.mango-os.com/post/19731</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 04 Sep 2018 15:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Using 100% CPU on Sat, 01 Sep 2018 06:28:54 GMT]]></title><description><![CDATA[<p dir="auto">This unit is an older MangoES hardware unit, it's running 2.4.2 still. I wonder if I should upgrade to the latest version. I guess the enterprise licence it came with won't upgrade?</p>
]]></description><link>https://forum.mango-os.com/post/19717</link><guid isPermaLink="true">https://forum.mango-os.com/post/19717</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Sat, 01 Sep 2018 06:28:54 GMT</pubDate></item></channel></rss>