@andreiem I added a random sleep time before all the procedures started. The 1st thread starts. and then 2nd thread .. 3 and 4 5 ... Since they do not do the same operations at the same time, they do not consume much processor.
Can you give me more information on how this can be best resolved if there is a way?
Only the developer can solve this problem. You can avoid this problem if you don't allow one browser to take up more than 3-4gb of RAM (Removing unnecessary or used elements on the page).