Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I adjust the system settings to allow more simulated devices to boot at once?

I got the following error message when trying to boot my fourth simulator:

Unable to boot device due to insufficient system resources.

Please see Simulator Help for information on adjusting system settings to allow more simulated devices to boot at once.

maxUserProcs: 709, runningUserProcs: 569, enforcedProcBuffer: 144

I don't know what Simulator Help they are referring to, because I'm not finding anything about this. Google also doesn't help me. It's pretty clear from the error message that if runningUserProcs + enforcedProcBuffer is greater than maxUserProcs, you cannot boot another simulator. What isn't clear is how to change the maxUserProcs setting.

Does anyone know how I can change the maxUserProcs?

like image 513
Erik B Avatar asked Oct 18 '17 20:10

Erik B


2 Answers

sudo launchctl limit maxproc 2000 2500

Source: https://help.apple.com/simulator/mac/9.0/index.html#/dev8a5f2aa4e

like image 115
Erik B Avatar answered Nov 05 '22 07:11

Erik B


This pointer helped me, though, when I run this particular command given above

sudo launchctl limit maxfiles 2000 unlimited

it sets my setting as maxfiles 2000 10240

So I run again this bit different one

sudo launchctl limit maxfiles 65536 200000

and it now the setting got set as maxfiles 65536 200000

And doing this later one only helped me to re run the simulator again successfully. I have a Mojave 10.14.5.

like image 1
Palio Cisona Avatar answered Nov 05 '22 05:11

Palio Cisona