High CPU Utilization - Designer - Foundation 23.2 - Foundation 23.2 - Ready - Hyland RPA - external

Hyland RPA Designer

Hyland RPA
Foundation 23.2

Issue: Some activities, such as OCR, may utilize all available CPU cores, which might lead to conflicts when other performance-intensive background tasks are running.

Solution: To limit the CPU utilization of the activities, do the following:

  1. Place the Invoke VB Code activity before your OCR Activity, preferably right at the start of your process.

  2. Click Edit Code and insert the following code:

    System.Diagnostics.Process.GetCurrentProcess().ProcessorAffinity = New IntPtr(5)

This code sets the CPU affinity of the process to the first and third core, so that the process does not utilize all CPU cores and background tasks performance is not affected.