<?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[Electron CPU usage]]></title><description><![CDATA[<p dir="auto">Hey all, new user here.</p>
<p dir="auto">I just installed everything according on my pi3 to the handy guides, using the automatic installer. However my MM lags whenever there’s a big animation like the compliment changing or the news feed updating. Using task manager it seems my electron cpu usage is around 35 percent at rest and over 100 percent during a transition.</p>
<p dir="auto">Any thoughts on this? What information do I need to supply to help identify the problem?</p>
]]></description><link>https://forum.magicmirror.builders/topic/4684/electron-cpu-usage</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 00:03:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4684.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Aug 2017 23:28:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Electron CPU usage on Sat, 13 Jul 2019 06:29:27 GMT]]></title><description><![CDATA[<p dir="auto">Is it just me, that after the most recent rpi firmware update display_rotate/display_hdmi_rotate is not working with the fkms driver?</p>
<p dir="auto">I found the following in the <a href="https://www.raspberrypi.org/documentation/configuration/config-txt/video.md" target="_blank" rel="noopener noreferrer nofollow ugc">official documentation</a>:</p>
<blockquote>
<p dir="auto">If using the VC4 FKMS V3D driver (this is the default on the Raspberry Pi 4), then 90 and 270 degree rotations are not supported. The Screen Configuration utility provides display rotations for this driver.</p>
</blockquote>
<p dir="auto">Unfortunately I have no clue how to run the screen configuration utility. There’s always a black screen even if I run <code>pm2 stop mm</code>.</p>
]]></description><link>https://forum.magicmirror.builders/post/58856</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/58856</guid><dc:creator><![CDATA[Knapoc]]></dc:creator><pubDate>Sat, 13 Jul 2019 06:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 18 Apr 2019 20:39:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vinp" aria-label="Profile: vinp">@<bdi>vinp</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/jaffons" aria-label="Profile: jaffons">@<bdi>jaffons</bdi></a> WOW! Thank you for your comments… Made a huge difference.<br />
After some months I needed to reinstall from scratch (now also hosting octoprint and a remote desktop simultaneously). I thought MM animations were just generally slow, but this made a huge difference compared to the more orthodox setup.<br />
I don’t see why this configuration shouldn’t be preferred over the <a href="https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi" target="_blank" rel="noopener noreferrer nofollow ugc">normal Pi configuration</a>, and the OpenGL driver was also much trickier to get working.</p>
]]></description><link>https://forum.magicmirror.builders/post/56155</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/56155</guid><dc:creator><![CDATA[adamlove86]]></dc:creator><pubDate>Thu, 18 Apr 2019 20:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Sat, 28 Jul 2018 08:37:30 GMT]]></title><description><![CDATA[<p dir="auto">So i ran into this issue as well. I started MM stuff 2-3 weeks ago.</p>
<p dir="auto">When everything was working my logs show:</p>
<ul>
<li>I had the previous mm version ( probably 2.3.1)</li>
<li>Enable the Open GL driver, fake KMS (via raspi-config)</li>
<li>Disabling the screensaver <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=57552" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=57552</a></li>
<li>Autohiding the Mouse Pointer</li>
<li>rotate screen 270deg(CW), <code>display_rotate=3 </code> at /boot/config.txt</li>
<li>I also had the <code>dtoverlay=vc4-fkms-v3d</code> line there</li>
<li>I was getting this error though (thru<code>npm start</code> ):</li>
</ul>
<pre><code>libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
</code></pre>
<p dir="auto">Anyway I messed something on my modules and had to reinstall the Raspbian. Same as before, Stretch 7/-18</p>
<ul>
<li>Rotate screen at /boot/config.txt</li>
<li>installed the MM 2.4.1 and tried it straight away default config and modules. It was working alright</li>
<li>Disabling the screensaver <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=57552" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=57552</a></li>
<li>Autohiding the Mouse Pointer</li>
<li>I think I added the <code>dtoverlay=vc4-fkms-v3d</code> line…
<ul>
<li>and boom animations started lagging (+high CPU)</li>
<li>also <code>npm start dev</code> didnt work. It launched but no mirror was shown and if i had mm running it would stop refreshing.</li>
</ul>
</li>
</ul>
<p dir="auto">Any way I figured out that taking that commenting out that <code># dtoverlay=vc4-fkms-v3d</code> everything works flawlessy. I dont get the “libGL”-error<br />
and I also updated  npm 5.6.0 → 6.2.0 <code>sudo npm i -g npm</code> and <code>npm start dev</code> started working (dev or no dev).</p>
<p dir="auto">My Rpi temperature is under 50C when mm is running (no heatsink).</p>
<p dir="auto">Hope this helps out someone!</p>
]]></description><link>https://forum.magicmirror.builders/post/42682</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/42682</guid><dc:creator><![CDATA[jaffons]]></dc:creator><pubDate>Sat, 28 Jul 2018 08:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Wed, 04 Jul 2018 20:26:28 GMT]]></title><description><![CDATA[<p dir="auto">MM 2.4.1 - if anyone is trying to look for it while searching for forums.  Apologies if it has already been stated</p>
<p dir="auto">So i’ve done it both ways:<br />
<strong>dtoverlay=vc4-kms-v3d</strong><br />
I noticed that my CPU temp is well into the 60-70 degree Celsius with CPU loads mostly in the 1.x, 2.x, and sometimes 3.x ranges</p>
<p dir="auto">When i try the other way :<br />
<strong>dtoverlay=vc4-fkms-v3d</strong><br />
CPU is much lower in temp under 50 degrees Celsius and CPU load rarely goes above 1.x<br />
and i am able to use the tvservice -o and tvservice -p to schedule my monitor to go on and off at certain times</p>
<p dir="auto">Hopefully this helps anyone searching for this issue on new installs like myself</p>
]]></description><link>https://forum.magicmirror.builders/post/41216</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/41216</guid><dc:creator><![CDATA[vinp]]></dc:creator><pubDate>Wed, 04 Jul 2018 20:26:28 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Tue, 29 May 2018 13:12:14 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/binderth" aria-label="Profile: binderth">@<bdi>binderth</bdi></a><br />
the fake-kms was created for keeping omxplayer compatibility but you need to add the “–no-osd” flag to the omxplayer command line</p>
<p dir="auto">you might want to try it</p>
<p dir="auto">dont bet on it, but changing line 101 of node_helper.js to</p>
<pre><code>var args = ["--no-osd", "--live", "--video_queue", "4", "--fps", "30",
</code></pre>
<p dir="auto">might do the trick</p>
]]></description><link>https://forum.magicmirror.builders/post/39922</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39922</guid><dc:creator><![CDATA[cdelaorden]]></dc:creator><pubDate>Tue, 29 May 2018 13:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Tue, 29 May 2018 06:29:09 GMT]]></title><description><![CDATA[<p dir="auto">adding another flavour:<br />
As my Foscam FI9900P got an ONVIF-Update lately and is now capable of RTSP-streaming I installed <a href="https://github.com/shbatm/MMM-RTSPStream" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-RTSPStream</a>.</p>
<ul>
<li>activated fake (or full) OpenGL Desktop driver:<br />
omxplayer crashes</li>
<li>activated non-GL desktop driver:<br />
omxplayer runs</li>
</ul>
<p dir="auto">So, as I see it, the omxplayer problem doesn’t concern MagicMirror - is there another way to reduce Electron CPU usage - except using an Open-GL dekstop driver?</p>
<p dir="auto">PS: activating fake KMS reduced CPU usage as recommended in this thread - but I’d like to have the video-stream of my cam on the MM (unfortunately it doesn’t provide MJPEG)</p>
]]></description><link>https://forum.magicmirror.builders/post/39906</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39906</guid><dc:creator><![CDATA[binderth]]></dc:creator><pubDate>Tue, 29 May 2018 06:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Fri, 25 May 2018 09:13:01 GMT]]></title><description><![CDATA[<p dir="auto">hy i didnot turn off the hdmi,</p>
<p dir="auto">i will turn off the lcd with the gpio’s</p>
<p dir="auto">screen is turning on normal but electron browser is showing a black screen (mous appears at moving)</p>
]]></description><link>https://forum.magicmirror.builders/post/39829</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39829</guid><dc:creator><![CDATA[schmo90]]></dc:creator><pubDate>Fri, 25 May 2018 09:13:01 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 24 May 2018 20:58:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schmo90" aria-label="Profile: schmo90">@<bdi>schmo90</bdi></a> mmm havent had that problem, everything its working fine</p>
<p dir="auto">Have you deactivated the screensaver as its shown in the wiki?</p>
<p dir="auto">Also, are you using a module like MMM-Remote-Control to turn off the screen?</p>
<p dir="auto">If you see a black screen and the mouse but nothing else you are probably missing “sudo chvt 6 &amp;&amp; sudo chvt 7” in your statement after turning hdmi back on. You can test it in ssh after forcing the issue.</p>
<p dir="auto">Also if you are concatenating commands like Hein-Jan did with “tvservice --preferred &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7” have in mind that commands after &amp;&amp; are only executed if no errors are found. So maybe  “tvservice -p” its working correctly but its giving some feedback and things after &amp;&amp; aren’t executed.</p>
<p dir="auto">You could force it by using ; as a separator instead of &amp;&amp; so it doesn’t look for an answear</p>
]]></description><link>https://forum.magicmirror.builders/post/39813</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39813</guid><dc:creator><![CDATA[cdelaorden]]></dc:creator><pubDate>Thu, 24 May 2018 20:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 24 May 2018 20:15:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cdelaorden" aria-label="Profile: cdelaorden">@<bdi>cdelaorden</bdi></a> said in <a href="/post/39786">Electron CPU usage</a>:</p>
<blockquote>
<p dir="auto">the full kms driver isnt compatib</p>
</blockquote>
<p dir="auto">hy now i use the fake kms driver, everything is working fine and realy fast.<br />
but i have the problem that the mirror will go to a black screen after some hours.</p>
<p dir="auto">only a pm2 restart mm helps in this case -.-</p>
]]></description><link>https://forum.magicmirror.builders/post/39812</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39812</guid><dc:creator><![CDATA[schmo90]]></dc:creator><pubDate>Thu, 24 May 2018 20:15:07 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 24 May 2018 14:54:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hein-jan" aria-label="Profile: hein-jan">@<bdi>hein-jan</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/dom1n1c" aria-label="Profile: Dom1n1c">@<bdi>Dom1n1c</bdi></a></p>
<p dir="auto">Please use the fake kms driver instead “dtoverlay=vc4-fkms-v3d”</p>
<p dir="auto">it its known that the full kms driver isnt compatible with tvservice <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=159853" target="_blank" rel="noopener noreferrer nofollow ugc">plus other restrictions</a></p>
<p dir="auto">EDIT:<br />
Also with the fake KMS you can rotate the display from /boot/config.txt so I suggest <a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: michmich">@<bdi>michmich</bdi></a> using it as the preferred method in the wiki</p>
]]></description><link>https://forum.magicmirror.builders/post/39786</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39786</guid><dc:creator><![CDATA[cdelaorden]]></dc:creator><pubDate>Thu, 24 May 2018 14:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 24 May 2018 06:13:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hein-jan" aria-label="Profile: Hein-Jan">@<bdi>Hein-Jan</bdi></a> I got the same issue.<br />
A few minutes, the monitor could be controlled, but then “tvservice -p” fails to power on the monitor.</p>
]]></description><link>https://forum.magicmirror.builders/post/39778</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39778</guid><dc:creator><![CDATA[Dom1n1c]]></dc:creator><pubDate>Thu, 24 May 2018 06:13:43 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Wed, 23 May 2018 19:59:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: michmich">@<bdi>michmich</bdi></a></p>
<p dir="auto">I seem to be running into some kind if trouble. My SD card failed, so I had to do a clean install. I decided to immediately go for the full KMS driver.<br />
“$ tail /boot/config.txt | grep dtoverlay” results in “dtoverlay=vc4-kms-v3d”.</p>
<p dir="auto">The CPU usage is alright, but “/home/pi/.pm2/logs/mm-error-o.log” states:</p>
<pre><code>libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
</code></pre>
<p dir="auto">I am having trouble with the monitor. I am using MMM-Remote-Control.<br />
“MONITOROFF” results in “/home/pi/.pm2/logs/mm-error-o.log”:</p>
<pre><code>Powering off HDMI
</code></pre>
<p dir="auto">“MONITORON”  results in “/home/pi/.pm2/logs/mm-error-o.log”:</p>
<pre><code>Powering on HDMI with preferred settings

[E] Failed to power on HDMI with preferred settings

{ Error: Command failed: tvservice --preferred &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7
[E] Failed to power on HDMI with preferred settings

    at ChildProcess.exithandler (child_process.js:217:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
  killed: true,
  code: null,
  signal: 'SIGTERM',
  cmd: 'tvservice --preferred &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7' }
Powering off HDMI
</code></pre>
<p dir="auto">I may be wrong but I feel this is related to the Full KMS driver.</p>
<p dir="auto">Can anyone confirm? Does anyone have a solution?<br />
I am way out of my depth here…</p>
]]></description><link>https://forum.magicmirror.builders/post/39773</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39773</guid><dc:creator><![CDATA[Hein-Jan]]></dc:creator><pubDate>Wed, 23 May 2018 19:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Sun, 20 May 2018 11:41:44 GMT]]></title><description><![CDATA[<p dir="auto">I added some info about the Open GL driver to the Wiki:<br />
<a href="https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#enable-the-open-gl-driver-to-decrease-electrons-cpu-usage" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#enable-the-open-gl-driver-to-decrease-electrons-cpu-usage</a></p>
]]></description><link>https://forum.magicmirror.builders/post/39681</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39681</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Sun, 20 May 2018 11:41:44 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Sat, 19 May 2018 20:33:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cdelaorden" aria-label="Profile: cdelaorden">@<bdi>cdelaorden</bdi></a> I think you’ve found the issue! Awesome work!</p>
<p dir="auto">For others please note that when you start raspi-config and go to “Advanced Options” &gt; “GL Driver”, the top one will always be selected, no matter which one is active. After selecting one of the two top drivers (GL), it might solve the hi CPU load issue …</p>
<p dir="auto">It solved it on a clean installed Pi 3 for me.</p>
]]></description><link>https://forum.magicmirror.builders/post/39654</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39654</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Sat, 19 May 2018 20:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Tue, 15 May 2018 01:49:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/juju" aria-label="Profile: juju">@<bdi>juju</bdi></a></p>
<p dir="auto">pm2 stop mm<br />
pm2 delete mm<br />
pm2 save<br />
rm ~/mm.sh</p>
]]></description><link>https://forum.magicmirror.builders/post/39488</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39488</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Tue, 15 May 2018 01:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Mon, 14 May 2018 13:35:19 GMT]]></title><description><![CDATA[<p dir="auto">Omg, yes finally! :D<br />
First I followed this installation guide: <a href="https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3">https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3</a><br />
I had the electron CPU issue. So I downgraded to electron version 1.4.15. The CPU usage went down from 90% to 70%. It was still laggy as hell.<br />
I then formatted the microSD card and followed that youtube guide: <a href="https://www.youtube.com/watch?v=0Q04SKvibik" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=0Q04SKvibik</a><br />
Downgraded to 1.4.15 again and now it’s running great with a CPU usage of like 5% with spikes to 50%, when there is an animation on the screen.</p>
<p dir="auto">But I have one question.<br />
<img src="/assets/uploads/files/1526304773443-unbenannt.jpg" alt="0_1526304772560_Unbenannt.JPG" class=" img-fluid img-markdown" /><br />
After I finished the youtube tutorial I have the “MagicMirror” and the “mm”. Both autostart when I boot the raspberry pi.<br />
Which use has the “mm”?</p>
]]></description><link>https://forum.magicmirror.builders/post/39464</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39464</guid><dc:creator><![CDATA[Juju]]></dc:creator><pubDate>Mon, 14 May 2018 13:35:19 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Fri, 11 May 2018 13:17:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/e3v3a" aria-label="Profile: e3v3a">@<bdi>e3v3a</bdi></a><br />
You can check it in the config.txt</p>
<p dir="auto">or just do a “tail /boot/config.txt | grep dtoverlay” to check what version is enabled</p>
<p dir="auto">all the rest of my configuration is the default one after a fresh install from the current version of MM and Raspbian, I havent touched anything from electron</p>
]]></description><link>https://forum.magicmirror.builders/post/39388</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39388</guid><dc:creator><![CDATA[cdelaorden]]></dc:creator><pubDate>Fri, 11 May 2018 13:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 10 May 2018 21:09:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cdelaorden" aria-label="Profile: cdelaorden">@<bdi>cdelaorden</bdi></a></p>
<ul>
<li>How can we check the video driver without using rapsi-conf?<br />
in dmesg? in systemd journal?</li>
<li>How/where do you set the: <code>ELECTRON_FORCE_WINDOW_MENU_BAR=1</code>.</li>
<li>What would be the easiest way for users to check electron version from command line?</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/39374</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39374</guid><dc:creator><![CDATA[E3V3A]]></dc:creator><pubDate>Thu, 10 May 2018 21:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Thu, 10 May 2018 14:54:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">Im new to the forum and this project but I have some small experience with the Pis and having the same issue</p>
<p dir="auto">I think that its related to the video driver, using ‘sudo raspi-config’ and changing the video driver to one of the GL drivers resulted in a much lower cpu load in my case.</p>
<p dir="auto">Doesn’t matter if you choose full KMS or fake KMS as long as you dont use the legacy non-GL driver.</p>
<p dir="auto">It took my 4 CPU from full 100% to idle bellow 35%</p>
<p dir="auto">Im sure someone else with this problem can confirm this</p>
]]></description><link>https://forum.magicmirror.builders/post/39361</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39361</guid><dc:creator><![CDATA[cdelaorden]]></dc:creator><pubDate>Thu, 10 May 2018 14:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Sat, 05 May 2018 11:10:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattn" aria-label="Profile: mattn">@<bdi>mattn</bdi></a> and others.<br />
I have a stable situation with the following:</p>
<ul>
<li>electron 1.4.15 (with<code>ELECTRON_FORCE_WINDOW_MENU_BAR=1</code>).<br />
higher elektron version gives black screen, the environment variable lowers the cpu-usage by elektron considerably).</li>
<li>Magic Mirror 2.3.1 (actually I was quick to install MM2.3.0 but manually downgraded electron, but I am quite sure that amounts to the same as installing MM 2.3.1).</li>
<li>nodejs version v9.11.1. (I used to have a 1.6.x nodejs, but that one caused memory leaks. )</li>
</ul>
<p dir="auto">Is now running in this configuration almost 7 days without interrupt. And no signs of stopping soon. Thanks you all in this forum for the help.</p>
<p dir="auto">(Rasberry pi 3, Jessie, CPU Hardware: BCM2835, Revision: a02082)</p>
]]></description><link>https://forum.magicmirror.builders/post/39216</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39216</guid><dc:creator><![CDATA[martinkooij]]></dc:creator><pubDate>Sat, 05 May 2018 11:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Mon, 23 Apr 2018 18:48:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattn" aria-label="Profile: mattn">@<bdi>mattn</bdi></a> thanks! I love my modules, so difficult to lose one ;).</p>
<p dir="auto">It however seems you have a slow leak too, growing memory usage of ca 200Mbyte in 6 days. Much less than me, but still more than it should be, I guess. Just let us know how you fare! Thanks for sharing.</p>
]]></description><link>https://forum.magicmirror.builders/post/38787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38787</guid><dc:creator><![CDATA[martinkooij]]></dc:creator><pubDate>Mon, 23 Apr 2018 18:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Mon, 23 Apr 2018 18:33:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/martinkooij" aria-label="Profile: martinkooij">@<bdi>martinkooij</bdi></a> TBH, I have no clue how to check my electron version, but I used the MM install script and haven’t downgraded anything. So I’m running the version supplied by the script as of approximately two weeks ago.</p>
<p dir="auto">I’ve not noticed any mem issues. My mirror’s been up 6 days mem usage is ~10% per process:</p>
<pre><code>top - 19:19:50 up 6 days,  8:37,  3 users,  load average: 0.13, 0.24, 0.20
Tasks: 155 total,   1 running, 153 sleeping,   0 stopped,   1 zombie
%Cpu(s): 32.7 us,  4.8 sy,  0.0 ni, 62.5 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    947732 total,   674684 used,   273048 free,    96984 buffers
KiB Swap:   102396 total,        0 used,   102396 free.   288436 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 1099 pi        20   0  310396  98548  55500 S 104.4 10.4 765:21.28 electron
 1111 pi        20   0  366396 102884  51368 S  21.5 10.9 297:36.05 electron
 1071 pi        20   0  474832  84892  58020 S  12.3  9.0 244:20.94 electron
</code></pre>
<p dir="auto">Could it be a module causing it? Or try reinstalling MM with the script and see what happens with the default install/modules</p>
<p dir="auto">As far as my modules go, I’m only using the date and weather mods from standard and then 4 custom mods(technically 2, as 3 are separate instances of the same mod for bus/train times).</p>
<p dir="auto">Regards,</p>
<p dir="auto">Matt</p>
]]></description><link>https://forum.magicmirror.builders/post/38785</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38785</guid><dc:creator><![CDATA[mattn]]></dc:creator><pubDate>Mon, 23 Apr 2018 18:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Mon, 23 Apr 2018 18:21:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattn" aria-label="Profile: mattn">@<bdi>mattn</bdi></a> What version of electron are you running? I downgraded to 1.4.15 electron, have v6.12.3 nodejs and 2.3.1Magic Mirror. I set the environment variable as you indicated. CPU usage goes down remarkably, although not as much as in your case.</p>
<p dir="auto">Did you also got rid of a memory leak? I start with 43% free and this falls to 7% after a day. Stays between 5%-7% for a few days and then after 3-5 days my mirror halts completely with E_NOMEM panic in the log files. Any reader knows of handy memory leak analysistools for nodejs? It seems you keep on having 50% used / 50% free… Not me ;(.</p>
<pre><code>top - 20:03:02 up 21:14,  3 users,  load average: 0,30, 0,33, 0,41
Tasks: 165 total,   2 running, 163 sleeping,   0 stopped,   0 zombie
%Cpu(s):  8,6 us,  4,5 sy,  0,0 ni, 86,9 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:    949580 total,   907688 used,    41892 free,    60200 buffers
KiB Swap:   102396 total,     5172 used,    97224 free.   444532 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 1178 pi        20   0  828888 244624  65840 R  22,5 25,8 327:41.98 electron
 1216 pi        20   0  603272 349144 290184 S  13,6 36,8 132:11.73 electron
  666 root      20   0  200848  58756  28796 S  12,2  6,2 131:39.07 Xorg
24453 pi        20   0    5224   2580   2148 R   1,0  0,3   0:02.03 top
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/38782</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38782</guid><dc:creator><![CDATA[martinkooij]]></dc:creator><pubDate>Mon, 23 Apr 2018 18:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to Electron CPU usage on Sat, 21 Apr 2018 21:01:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doum" aria-label="Profile: Doum">@<bdi>Doum</bdi></a> Yeah, just create the file, paste that line, save and reboot.</p>
]]></description><link>https://forum.magicmirror.builders/post/38709</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38709</guid><dc:creator><![CDATA[mattn]]></dc:creator><pubDate>Sat, 21 Apr 2018 21:01:32 GMT</pubDate></item></channel></rss>