setMemoryLimit

Helper function to set the system memory to a needed value - If the needed memory is greater than current, will attempt to get more - if in_use is set to true, will also try to take the current memory usage in to account
Parameters Summary
string $needed
bool $in_use = false