dynamically limit number of peer connections based on system memory.