summaryrefslogtreecommitdiffstats
path: root/loolwsd.xml.in
diff options
context:
space:
mode:
authorGabriel Masei <gabriel.masei@1and1.ro>2020-06-08 13:41:03 +0300
committerMichael Meeks <michael.meeks@collabora.com>2020-06-09 11:25:44 +0200
commitac17984226dac695fbd68699e168e2332f1ab9c7 (patch)
tree5c6bdd0fb4469b2fbb85853420b295a23d10beb7 /loolwsd.xml.in
parentMobile: Add world count icon to the hamburger menu (diff)
downloadonline-ac17984226dac695fbd68699e168e2332f1ab9c7.tar.gz
online-ac17984226dac695fbd68699e168e2332f1ab9c7.zip
admin: cleanup resource consuming kits
Change-Id: Ifafbadc61b788adc90c03fb92e0231f9e599c360 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95794 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'loolwsd.xml.in')
-rw-r--r--loolwsd.xml.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/loolwsd.xml.in b/loolwsd.xml.in
index e66f3526d5..27e1d6e879 100644
--- a/loolwsd.xml.in
+++ b/loolwsd.xml.in
@@ -30,6 +30,13 @@
<limit_num_open_files desc="The maximum number of files allowed to each document process to open. 0 for unlimited." type="uint">0</limit_num_open_files>
<limit_load_secs desc="Maximum number of seconds to wait for a document load to succeed. 0 for unlimited." type="uint" default="100">100</limit_load_secs>
<limit_convert_secs desc="Maximum number of seconds to wait for a document conversion to succeed. 0 for unlimited." type="uint" default="100">100</limit_convert_secs>
+ <cleanup desc="Checks for resource consuming (bad) documents and kills associated kit process. A document is considered resource consuming (bad) if is in idle state for idle_time_secs period and memory usage passed limit_dirty_mem_mb or CPU usage passed limit_cpu_per" enable="false">
+ <cleanup_interval_ms desc="Interval between two checks" type="uint" default="10000">10000</cleanup_interval_ms>
+ <bad_behavior_period_secs desc="Minimum time period for a document to be in bad state before associated kit process is killed. If in this period the condition for bad document is not met once then this period is reset" type="uint" default="60">60</bad_behavior_period_secs>
+ <idle_time_secs desc="Minimum idle time for a document to be candidate for bad state" type="uint" default="300">300</idle_time_secs>
+ <limit_dirty_mem_mb desc="Minimum memory usage for a document to be candidate for bad state" type="uint" default="3072">3072</limit_dirty_mem_mb>
+ <limit_cpu_per desc="Minimum CPU usage for a document to be candidate for bad state" type="uint" default="85">85</limit_cpu_per>
+ </cleanup>
</per_document>
<per_view desc="View-specific settings.">