My Robot performance gradually slows down

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.

Thank you.

Hi @Muhammad_Anas_Baloch

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

You can check this for more info

Cheers

1 Like

Can you please let me know from where I can clear the stored data/temp files?

From
The temporary location

Run and %temp%

Cheers

Thank you.

1 Like

@Muhammad_Anas_Baloch

Also during process its better to clear any files that yoi are storing and then that should free up some memory as well

Cheers

I am not storing anything in UiPath. I am storing the result in a txt file.

@Muhammad_Anas_Baloch

Yes i mean in files only…if you are creating many files then clear them once used

Cheers

1 Like

I think those files would not impact the performance as those files are being stored in the computer hard drive.

@Muhammad_Anas_Baloch

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

Cheers

I have cleared cached but it didn’t resolved my problem. My laptop has 32Gb RAM, Core i5.

1 Like

@Muhammad_Anas_Baloch

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

Cheers

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.

@Muhammad_Anas_Baloch

While running did you happen to check the memory percentage from task manager?

Cheers

UiPath Executor uses around 300-400 Mb of RAM and 10-15% utilization of CPU.
UiPath Studio uses around 300 Mb of RAM and 3-5% utilization of CPU.

On disk both contain less than 0.5MB/s

@Muhammad_Anas_Baloch

This looks really low …even while you see 15 seconds still the cpu utilization is same?

Cheers

No at that time UiPath studio consumes 900-1000 Mb of memory and UiPath executor consumes 400-500 Mb of memory. CPU consumption is same for both.

Hello @Muhammad_Anas_Baloch

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.

Thanks

1 Like

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.