<?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[Log viewer performance does not scale well]]></title><description><![CDATA[<p dir="auto">If an app outputs a reasonable volume of logging (let's say, a few hundred lines), the performance of a browser tab viewing those logs seems to bog down pretty seriously over time.</p>
<p dir="auto">I don't know for sure how the viewer is implemented, but if it's trying to keep the entire log content loaded, that might be a problem with some more chatty apps. And if it's trying to keep it all in the DOM, that's also perhaps a problem.</p>
<p dir="auto">I imagine this isn't an easy problem to solve, just thought I'd report it <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">(I'm using Firefox if it matters).</p>
]]></description><link>https://forum.cloudron.io/topic/4918/log-viewer-performance-does-not-scale-well</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 09:19:04 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4918.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Apr 2021 12:12:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 17:24:11 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> lol, "Just do it!" <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=223f9defb2f" 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/29899</link><guid isPermaLink="true">https://forum.cloudron.io/post/29899</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 16 Apr 2021 17:24:11 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 17:18:37 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> we have the time tag too (it's on each line) . we just have to sort it, but it's not annoyed me enough yet to do it <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/29898</link><guid isPermaLink="true">https://forum.cloudron.io/post/29898</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Apr 2021 17:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 17:09:05 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> sounds like you need a time tag to help sync the previous logs too. Like the "clap" used in in audio/video.</p>
<p dir="auto">Or perhaps be even more clever, and cat the files into a temp file thats aligned, which is then appended by the tail -f.</p>
<p dir="auto">Using a ring buffer to avoid excessive memory usage.</p>
]]></description><link>https://forum.cloudron.io/post/29896</link><guid isPermaLink="true">https://forum.cloudron.io/post/29896</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 16 Apr 2021 17:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 16:53:00 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> yes. they are in different files - app.log and apptask.log . we were lazy and just do <code>tail -f apptask.log app.log</code> . But what needs to happens is to read each file line by line and order the log lines based on the timestamp. This is only a problem for content already existing in the log files. When new log lines get added, it will interleave correctly (because of how tail works).</p>
]]></description><link>https://forum.cloudron.io/post/29893</link><guid isPermaLink="true">https://forum.cloudron.io/post/29893</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Apr 2021 16:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 16:47:59 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> said in <a href="/post/29890">Log viewer performance does not scale well</a>:</p>
<blockquote>
<p dir="auto">On a side note, I also don't like that the apptask logs and app logs are interleaved and thus appear out of order. This is mostly a limitation of our logging system.</p>
</blockquote>
<p dir="auto">can they be tagged differently?</p>
]]></description><link>https://forum.cloudron.io/post/29891</link><guid isPermaLink="true">https://forum.cloudron.io/post/29891</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 16 Apr 2021 16:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 16:46:50 GMT]]></title><description><![CDATA[<p dir="auto">I run into this often in development. In fact, sometimes it freezes firefox entirely <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">On a side note, I also don't like that the apptask logs and app logs are interleaved and thus appear out of order. This is mostly a limitation of our logging system.</p>
]]></description><link>https://forum.cloudron.io/post/29890</link><guid isPermaLink="true">https://forum.cloudron.io/post/29890</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Apr 2021 16:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 16:46:38 GMT]]></title><description><![CDATA[<p dir="auto">How can we get the equivalent of a a <code>tail -n 200</code> + <code>tail -f</code>as the input to the log viewer?</p>
]]></description><link>https://forum.cloudron.io/post/29889</link><guid isPermaLink="true">https://forum.cloudron.io/post/29889</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 16 Apr 2021 16:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to Log viewer performance does not scale well on Fri, 16 Apr 2021 13:24:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robin" aria-label="Profile: robin">@<bdi>robin</bdi></a> This is exactly how it is implemented and indeed not very smart but simple. I've done a couple of basic approaches to fix this, but it gets hard quickly and thus resorted to "just reload the browser for now"</p>
<p dir="auto">Also as a workaround during app packaging, where one might want to keep a long backlog, using the <code>cloudron logs -f</code> in a native terminal will nearly always be better.</p>
]]></description><link>https://forum.cloudron.io/post/29875</link><guid isPermaLink="true">https://forum.cloudron.io/post/29875</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 16 Apr 2021 13:24:36 GMT</pubDate></item></channel></rss>