MSSQL-Server 2017 Express Edition runs on my Linux server.
The server has 4GB RAM.
The total size of DB is 300MB.
My website and the sqlserver are on the same server, it's a small website with max of 400-300 visitors a day. Memory usage in linux looks fine, mssql takes only 20% memory:
Some additional sql memory information:
Maximum server memory is set to 2147483647
which is the default I guess.
The errors I get:
After restarting the mssql-service there are no problems for something like 2 days and then it repeats it self.
I would happily get an answer that will solve this for me, but I would also like to get a resource where I can learn about memory allocation/cache/pages/ related to sql server because I am not a sql expert, I am a programmer.
SQL Server was unable to run a new system task, either because there is insufficient memory or the number of configured sessions exceeds the maximum allowed in the server. Verify that the server has adequate memory. Use sp_configure with option 'user connections' to check the maximum number of user connections allowed. Use sys.dm_exec_sessions to check the current number of sessions, including user processes.
mysql
db when the server had only 2GB of RAM, I doubled it and replacedmysql
withmssql
and I am getting errors, I am sure it's something related to some preferences that I am not aware of.In order to ensure there is enough free physical memory for the Linux Operating System, the SQL Server process uses only 80% of the physical RAM by default. For some systems which large amount of physical RAM, 20% might be a significant number
. learn.microsoft.com/en-us/sql/linux/… This error is very general and not informative, why it ran out of memory if it says it saves 20% for OS, and why it crashes and not restart? Max connections set to 600 which is more than enough by far!