MAX MEMORY SETTINGS SQL SERVER
In sql server , while configuring memory for databases, always leave reserve 20% of memory for spare use of OS.
sql server uses 80% of memory from OS. Depending on your application workload and overhead , you have to calculate and allocate memory to your database accordingly