<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Embedded PowerBImemory leak in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Embedded-PowerBImemory-leak/m-p/3316298#M43356</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We are developing an application using the Mozilla FrameWork that visualizes a Power BI report using the principles described in the document "Tutorial: Embed Power BI content using a sample embed for your customers' application (&lt;A href="https://learn.microsoft.com/en" target="_blank"&gt;https://learn.microsoft.com/en&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; -us/power-bi/developer/embedded/embed-sample-for-customers) and Power Bi Client NodeJS API.&lt;/SPAN&gt;&lt;SPAN&gt; It works correctly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On the other hand, when we change the active page with the report.setPage API function, the current memory increases very quickly and is not freed. I reproduced the same problem using the Embed for your customers test application in NodeJS (&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers" target="_blank"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; /AppOwnsData) with Firefox, Edge and Chrome browsers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this I modified the code of the file “public/js/index.js” line 46 to change the page every 5 seconds: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Triggers when a report schema is successfully loaded report. on("loaded", function () { console.log("Report load successful"); report. getPages(). then(pages =&amp;gt; { let num = 0; setInterval(() =&amp;gt; { num = (num+1)%pages.length; report.setPage(pages[num].name) }, 5000) }) }); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the task manager, the memory increases very quickly (several hundred Mb per minute) and is only freed when the page is reloaded. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The test was performed with the "Service Principal" authentication method with the report "COVID-19 US Tracking Sample.pbix" (&lt;A href="https://github.com/microsoft/powerbi-desktop-samples/tree/main/Sample" target="_blank"&gt;https://github.com/microsoft/powerbi-desktop-samples/tree/main/Sample&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; %20Reports).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 13:04:51 GMT</pubDate>
    <dc:creator>Cmou</dc:creator>
    <dc:date>2023-07-05T13:04:51Z</dc:date>
    <item>
      <title>Embedded PowerBImemory leak</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedded-PowerBImemory-leak/m-p/3316298#M43356</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are developing an application using the Mozilla FrameWork that visualizes a Power BI report using the principles described in the document "Tutorial: Embed Power BI content using a sample embed for your customers' application (&lt;A href="https://learn.microsoft.com/en" target="_blank"&gt;https://learn.microsoft.com/en&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; -us/power-bi/developer/embedded/embed-sample-for-customers) and Power Bi Client NodeJS API.&lt;/SPAN&gt;&lt;SPAN&gt; It works correctly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On the other hand, when we change the active page with the report.setPage API function, the current memory increases very quickly and is not freed. I reproduced the same problem using the Embed for your customers test application in NodeJS (&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers" target="_blank"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20customers&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; /AppOwnsData) with Firefox, Edge and Chrome browsers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this I modified the code of the file “public/js/index.js” line 46 to change the page every 5 seconds: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Triggers when a report schema is successfully loaded report. on("loaded", function () { console.log("Report load successful"); report. getPages(). then(pages =&amp;gt; { let num = 0; setInterval(() =&amp;gt; { num = (num+1)%pages.length; report.setPage(pages[num].name) }, 5000) }) }); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the task manager, the memory increases very quickly (several hundred Mb per minute) and is only freed when the page is reloaded. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The test was performed with the "Service Principal" authentication method with the report "COVID-19 US Tracking Sample.pbix" (&lt;A href="https://github.com/microsoft/powerbi-desktop-samples/tree/main/Sample" target="_blank"&gt;https://github.com/microsoft/powerbi-desktop-samples/tree/main/Sample&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; %20Reports).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 13:04:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedded-PowerBImemory-leak/m-p/3316298#M43356</guid>
      <dc:creator>Cmou</dc:creator>
      <dc:date>2023-07-05T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded PowerBImemory leak</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedded-PowerBImemory-leak/m-p/3322023#M43404</link>
      <description>&lt;P&gt;You can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; . If you have a Pro license you can consider raising a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 18:09:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedded-PowerBImemory-leak/m-p/3322023#M43404</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-09T18:09:05Z</dc:date>
    </item>
  </channel>
</rss>

