Hey, I am automating 2 mobile applications in Mobile Process Automation. I am using invoke method activity to switch between applications in a single process so that I don’t need multiple devices and systems to perform operations on multiple applications simultaneously.
The problem I am facing is that when my robot begins to work it takes some seconds to perform the activities but after an hour its speeds gradually slowed down. (i.e; if one activity was performed in 3 seconds in the beginning it would take around 15-20 seconds after an hour).
If you have any solution to my problem please let me know.
It might be because your memory is consumed a lot . Can you check the task manager and see the percentage or memory used while executing and alao yhere might be so many temp files getting created while working . It wpuld be better to clear them as well may be in your process after some time you can do a kind of health check and free up the memory
You can try doing get process and check what all are running and close which are not needed to freeup the memory
You might be storing so much of data as well its better to clear the used data so that the memory taken will be available
Its mostly like if so much data is stored in variables and files are accessed multiple times more process memory is consumed as it is long running if the variables are not cleaned it might slow it down
Try breaking the xamls into amaller ones and I hope you are remove the old data from your variables or datatable variables so that it will contain lesser data…and if there are loops try using them with linq or if you are doing calculations inside it…donot perform them
Multiple times instead calculate once and store ina variable and use them later
I am assigning the variables null once the loop completes it one iteration so I don’t think so that variables are containing much data. I think there is something else because my tap activities also becomes very slow for example in the beginning it will take less than 2 sec but gradually it will take 5 secs and more.
Before to the execution can you close all the unnecessary applications and if needed clear the Temp folder as well.
As you have mentioned you are doing mobile automation , have you connected the simulator, appium etc to the machine. Maybe it maybe slowing down the system.
I have connected the actual/real device with the machine and used the appium (1.22.3) server. I already closed all other files except UiPath and Appium server. But unfortunately, it didn’t increase the speed of my bot.