summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespabase/src/vespa-configserver.service.in4
-rw-r--r--vespabase/src/vespa.service.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/vespabase/src/vespa-configserver.service.in b/vespabase/src/vespa-configserver.service.in
index 4c9a1648e91..f160c2ea8ad 100644
--- a/vespabase/src/vespa-configserver.service.in
+++ b/vespabase/src/vespa-configserver.service.in
@@ -8,6 +8,10 @@ Type=forking
PIDFile=@CMAKE_INSTALL_PREFIX@/var/run/configserver.pid
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/vespa-start-configserver
ExecStop=@CMAKE_INSTALL_PREFIX@/bin/vespa-stop-configserver
+LimitNOFILE=32768:262144
+LimitCORE=0:infinity
+LimitNPROC=32768:409600
+LimitStack=8388608:16777216
[Install]
WantedBy=multi-user.target
diff --git a/vespabase/src/vespa.service.in b/vespabase/src/vespa.service.in
index 0b1887b8a78..e10724ef736 100644
--- a/vespabase/src/vespa.service.in
+++ b/vespabase/src/vespa.service.in
@@ -8,6 +8,10 @@ Type=forking
PIDFile=@CMAKE_INSTALL_PREFIX@/var/run/sentinel.pid
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/vespa-start-services
ExecStop=@CMAKE_INSTALL_PREFIX@/bin/vespa-stop-services
+LimitNOFILE=32768:262144
+LimitCORE=0:infinity
+LimitNPROC=32768:409600
+LimitStack=8388608:16777216
[Install]
WantedBy=multi-user.target