avoid having too many concurrent requests if available memory is low

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>