mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	commands: Make error on setting rlimit a warning only
And reduce it to 10000. Closes #3582
This commit is contained in:
		| @@ -75,11 +75,11 @@ func tweakLimit() { | ||||
| 		jww.ERROR.Println("Unable to obtain rLimit", err) | ||||
| 	} | ||||
| 	if rLimit.Cur < rLimit.Max { | ||||
| 		rLimit.Max = 999999 | ||||
| 		rLimit.Cur = 999999 | ||||
| 		rLimit.Max = 10000 | ||||
| 		rLimit.Cur = 10000 | ||||
| 		err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) | ||||
| 		if err != nil { | ||||
| 			jww.ERROR.Println("Unable to increase number of open files limit", err) | ||||
| 			jww.WARN.Println("Unable to increase number of open files limit", err) | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user