cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule - Blueprism process is not releasing memory

KiranPudi
Level 3
Hi All,

We developed a Huge process with more than 18 Objects and process got terminated due to out of memory issue. After discussing with our internal COE team they suggested to go with Schedules where only specific objects will be utilized in the schedules.

Schedule     Schedule Time                                 Objects Used
     1              4:00 AM - 8:00 AM                   Object 1, Object 2 & Object 3 
     2              8:15 AM - 12:15 PM                 Object 4, Object 5 & Object 6 
     3              12:30 PM - 4:30 PM                 Object 7, Object 8 & Object 9 
     4              4:45 PM - 8:45 PM                   Object 10, Object 11 & Object 12 
     5              9:00 PM - 1:00 AM                   Object 13, Object 14 & Object 15 
     6              1:15 AM - 3:45 AM                   Object 16, Object 17 & Object 18 


For each schedule we have given 15 minutes interval. We have written C# to get memory taken by Blue prism process and Available RAM

Now When the Schedule 1  starts we observed Memory taken initially is 35 MB but slowly it increases to 200 MB and schedule 1 gets completed. Hence Blue prism process also gets closed. But when the schedule 2 starts we observed memory taken by Blue prism is 200 MB which is accumulated from Schedule 1.

Now the question is Blue prism releases all the memory taken by the process when it gets completed. But why it is not releasing the memory.
The memory is accumulated by every schedule and again process is terminated with Out of memory. 

Thanks,
 Kiran






------------------------------
Kiran Pudi
------------------------------
6 REPLIES 6

dmma
Level 5
Hi Kiran, 
Just a question out of curiosity are you using BP 32 bit or BP 64 bit.
And also another question - what kind of Windows are you using on your VDIs. Is it windows 7 or windows 10?

Maybe if that is possible in your case, try to install and use 64Bit version. Performance might be slightly different. and also if it possible maybe you can increase RAM amount on your VDIs, just for trial.



------------------------------
Kind regards,

Dmitrij Mamajev
RPA Developer
Volvo Cars
Gothenburg - Sweden
------------------------------
Kind regards, [FirstName] [LastName] [Designation] [JobTitle] [CompanyName] [City] [State] [Phone]

dmma
Level 5
Another quick solution might be just to restart the resource after each time your process finish, that should trigger complete memory cleanup.


------------------------------
Kind regards,

Dmitrij Mamajev
RPA Developer
Volvo Cars
Gothenburg - Sweden
------------------------------
Kind regards, [FirstName] [LastName] [Designation] [JobTitle] [CompanyName] [City] [State] [Phone]

Thank you Dmitrij Mamajev for your quick response
Blue Prism is 32 bit

System configuration
Microsoft Windows Server 2016 Datacenter
4 GB RAM
Virtual Memory: Max Size:  6,552 MB
Processor : 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 85 Stepping 4 GenuineIntel ~2500 Mhz

All the BOTS have the same configuration(Image) and we cant any modify hardware. 

Regarding Restarting of the machine for every schedule its not possible. Since we are giving 15 mins idle for BP.




------------------------------
Kiran Pudi
------------------------------

Try maybe to check this article, maybe that can somehow help in order to resolve your issue:
https://rpadevops.com/discussion/16/how-do-i-avoid-out-of-memory-issues-in-the-blue-prism


------------------------------
Kind regards,

Dmitrij Mamajev
RPA Developer
Volvo Cars
Gothenburg - Sweden
------------------------------
Kind regards, [FirstName] [LastName] [Designation] [JobTitle] [CompanyName] [City] [State] [Phone]

JerinJose
Level 10
Hi Kiran,Dmitrij Mamajev

even if you use the 64Bit installation of BP the underlying process is still 32 bit and it cannot claim more than 4GB. you can use garbage collection in your code to release un used memmory and let system reclaim it. also reduce logging levels in your objects and following logging best practices that BP recommends would help reducing the memory consumption
even after doing all the above steps if you are still facing out of memmory issues, you need to introduce Login and logout process atleast once or twice in a day which will re initiate the resource pc and release the memory

------------------------------
Jerin Jose
RPA Product SME
EY
Asia/Kolkata
------------------------------

Hello Kiran, 

Here is another article that goes over techniques to prevent memory issues when working with Blue Prism objects:

https://portal.blueprism.com/customer-support/support-center#/path/Automation-Design/Studio/Visual-Business-Objects/1141772192/Are-there-any-techniques-for-preventing-memory-issues-when-working-with-B...



------------------------------
Jorge Barajas
Blue Prism
Senior Product Consultant
Austin, Texas
------------------------------
Jorge Barajas Blue Prism Senior Product Consultant Austin, Texas