Default to four pre-spawned children.
They should be cheap memory wise, and save quite a bit of latency. Keep 1 for debug mode - to make attaching to the right process easier. Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Change-Id: I230be6ae61874f36b47ffc93d888d455bea3a7d8pull/8972/head
parent
e88d9340a0
commit
8b558a2372
|
@ -427,6 +427,10 @@ experimental_msg="disabled by default"
|
|||
bundle_msg="using uglified bundled JS and CSS"
|
||||
LOK_LOG_ASSERTIONS=0
|
||||
log_asserts_msg="disabled"
|
||||
|
||||
# a reasonable default
|
||||
NUM_PRESPAWN_CHILDREN=4
|
||||
|
||||
AC_MSG_CHECKING([whether to enable debug build])
|
||||
if test "$enable_debug" = "yes"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
|
@ -441,6 +445,9 @@ if test "$enable_debug" = "yes"; then
|
|||
BROWSER_LOGGING="true"
|
||||
debug_msg="low security debugging mode"
|
||||
|
||||
# helps attaching to the right process
|
||||
NUM_PRESPAWN_CHILDREN=1
|
||||
|
||||
AC_MSG_CHECKING([whether to bundle JS and CSS files])
|
||||
if test "$enable_bundle" != "yes"; then
|
||||
ENABLE_BUNDLE=false
|
||||
|
@ -467,6 +474,7 @@ AC_SUBST(ENABLE_BUNDLE)
|
|||
AC_SUBST(COOLWSD_LOGLEVEL)
|
||||
AC_SUBST(COOLWSD_LOG_TO_FILE)
|
||||
AC_SUBST(BROWSER_LOGGING)
|
||||
AC_SUBST(NUM_PRESPAWN_CHILDREN)
|
||||
|
||||
if test "$enable_debug_protocol" = no; then
|
||||
ENABLE_DEBUG_PROTOCOL=false
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<experimental_features desc="Enable/Disable experimental features" type="bool" default="@ENABLE_EXPERIMENTAL@">@ENABLE_EXPERIMENTAL@</experimental_features>
|
||||
|
||||
<memproportion desc="The maximum percentage of available memory consumed by all of the @APP_NAME@ processes, after which we start cleaning up idle documents. If cgroup memory limits are set, this is the maximum percentage of that limit to consume." type="double" default="80.0"></memproportion>
|
||||
<num_prespawn_children desc="Number of child processes to keep started in advance and waiting for new clients." type="uint" default="1">1</num_prespawn_children>
|
||||
<num_prespawn_children desc="Number of child processes to keep started in advance and waiting for new clients." type="uint" default="4">@NUM_PRESPAWN_CHILDREN@</num_prespawn_children>
|
||||
<!-- <fetch_update_check desc="Every number of hours will fetch latest version data. Defaults to 10 hours." type="uint" default="10">10</fetch_update_check> -->
|
||||
<per_document desc="Document-specific settings, including LO Core settings.">
|
||||
<max_concurrency desc="The maximum number of threads to use while processing a document." type="uint" default="4">4</max_concurrency>
|
||||
|
|
Loading…
Reference in New Issue