Ram or CPU alocation and using OBS

hi, can you please guide me how can i allocate specific amount of RAM for a specific Software, here i have to limit the RAM or CPU usage of OBS .