Apply memory limits to mapserv
[chef.git] / cookbooks / imagery / resources / layer.rb
index 228839838a28d5ac3fd1b1c6c44d93f5ea5ff04a..7da41f7bf4c4154560a37bd65e2858642c588ff2 100644 (file)
@@ -70,6 +70,8 @@ action :create do
                 "MS_DEBUGLEVEL" => "0",
                 "MS_ERRORFILE" => "stderr"
     limit_nofile 16384
+    memory_high "1G"
+    memory_max "2G"
     user "imagery"
     group "imagery"
     exec_start_pre "/bin/rm -f /run/mapserver-fastcgi/layer-#{new_resource.layer}.socket"