Add macOS tip
This commit is contained in:
		@@ -4,13 +4,13 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
maxOpenFds=65000
 | 
			
		||||
if [[ $(uname) = Darwin ]]; then
 | 
			
		||||
  maxOpenFds=24576 # Appears to be the max permitted on macOS...
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ $(ulimit -n) -lt $maxOpenFds ]]; then
 | 
			
		||||
  ulimit -n $maxOpenFds || {
 | 
			
		||||
    echo "Error: nofiles too small: $(ulimit -n). Failed to run \"ulimit -n $maxOpenFds\"";
 | 
			
		||||
    if [[ $(uname) = Darwin ]]; then
 | 
			
		||||
      echo "Try running |sudo launchctl limit maxfiles 65536 200000| first"
 | 
			
		||||
    fi
 | 
			
		||||
  }
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user