<?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 Memory build up over time in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68167#M20772</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have an automation that processes thousands of cases on a single VM. At the beginning, cases take 50 seconds each to complete but over time (After several hours of processing), cases start to take on average up to 4 minutes.&lt;BR /&gt;&lt;BR /&gt;The automation uses a lot of Excel function so we believe that is causing some sort of memory build up.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions on how to fix it up so that it continues to run optimially each and every time?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Max McConchie&lt;BR /&gt;Automation Manager&lt;BR /&gt;Australian Government Department of Finance&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Dec 2021 21:41:00 GMT</pubDate>
    <dc:creator>MaxMcConchie</dc:creator>
    <dc:date>2021-12-06T21:41:00Z</dc:date>
    <item>
      <title>Memory build up over time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68167#M20772</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have an automation that processes thousands of cases on a single VM. At the beginning, cases take 50 seconds each to complete but over time (After several hours of processing), cases start to take on average up to 4 minutes.&lt;BR /&gt;&lt;BR /&gt;The automation uses a lot of Excel function so we believe that is causing some sort of memory build up.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions on how to fix it up so that it continues to run optimially each and every time?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Max McConchie&lt;BR /&gt;Automation Manager&lt;BR /&gt;Australian Government Department of Finance&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2021 21:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68167#M20772</guid>
      <dc:creator>MaxMcConchie</dc:creator>
      <dc:date>2021-12-06T21:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Memory build up over time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68168#M20773</link>
      <description>Hi Max,&lt;BR /&gt;&lt;BR /&gt;Few things that straight away come to my mind are as follows:&lt;BR /&gt;&lt;BR /&gt;- If you are trying to open and close excel a lot of times in your automation, avoid doing that as it can build up a lot of memory and can also result in memory leaks.&lt;BR /&gt;&lt;BR /&gt;- Secondly, if you are using a lot of excel functions, think of a way if there is any chance where you can optimize the solution to just use collections and write it at once in the end. A lot of unnecessary issues can be avoided.&lt;BR /&gt;&lt;BR /&gt;- Many times the second point is not possible to achieve. If that is the case, then you can perhaps create a custom object and use a simple code stage in one of the action that you create with the following code: GC.Collect()&lt;BR /&gt;&lt;BR /&gt;This will forcefully invoke the .NET Garbage Collector which is generally invoked by the OS periodically. After closing the excel file instances, you can perhaps call this action to &lt;SPAN&gt;reclaim memory which has been designated as available to be recovered.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Automation Consultant&lt;BR /&gt;Blueprism 6x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2021 22:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68168#M20773</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-12-06T22:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Memory build up over time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68169#M20774</link>
      <description>Hi Max&lt;BR /&gt;&lt;BR /&gt;If you activate the memory logging function for that machine, you might be able to see where and when the consumption creeps up.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17628.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17778i85D8BEDD2BE1D15C/image-size/large?v=v2&amp;amp;px=999" role="button" title="17628.png" alt="17628.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And to add to Devneet's advice, check if you are inadvertently leaving 'ghost' instances of excel.exe hanging around in Task Manager.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2021 09:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Memory-build-up-over-time/m-p/68169#M20774</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-12-07T09:18:00Z</dc:date>
    </item>
  </channel>
</rss>

