I have a PHP script that triggers the starting of other processes (Chromium instances) on the machine. I want to know if I can somehow get the amount of memory available on the current system so that I know that I can safely start another process without reaching the memory limit (which for instance may cause additional issues with a running Redis instance).
Do I have to do some sort of system call directly through exec()?