summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/demo/Glacier2/callback/config.glacier28
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/callback/config.glacier2 b/cpp/demo/Glacier2/callback/config.glacier2
index f55fc9e5f41..155e9323961 100644
--- a/cpp/demo/Glacier2/callback/config.glacier2
+++ b/cpp/demo/Glacier2/callback/config.glacier2
@@ -52,6 +52,14 @@ Glacier2.Client.SleepTime=500
Glacier2.Server.SleepTime=500
#
+# We must set the stack size of new threads created by Glacier2. The
+# default on Linux is typically in the 10MB range, which is way too
+# high, given that we allocate two threads per client.
+#
+Glacier2.Server.ThreadStackSize=262144
+Glacier2.Client.ThreadStackSize=262144
+
+#
# Glacier2 always disables active connection management so there is no
# need to configure this manually. Connection retry does not need to
# be disabled, as it's safe for Glacier2 to retry outgoing connections