You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/09/13 14:04:52 UTC
[iotdb] branch rel/0.12 updated: [IOTDB-1674] Fix command interpret
error causing somaxconn warning failed (#3951) (#3952)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 9f1f0fb [IOTDB-1674] Fix command interpret error causing somaxconn warning failed (#3951) (#3952)
9f1f0fb is described below
commit 9f1f0fbaecb153cd8181b455f66a685cd2f41234
Author: BaiJian <er...@hotmail.com>
AuthorDate: Mon Sep 13 22:04:27 2021 +0800
[IOTDB-1674] Fix command interpret error causing somaxconn warning failed (#3951) (#3952)
---
server/src/assembly/resources/conf/iotdb-env.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/assembly/resources/conf/iotdb-env.sh b/server/src/assembly/resources/conf/iotdb-env.sh
index e37dd6a..9d6abe0 100755
--- a/server/src/assembly/resources/conf/iotdb-env.sh
+++ b/server/src/assembly/resources/conf/iotdb-env.sh
@@ -36,7 +36,7 @@ fi
SOMAXCONN=65535
case "$(uname)" in
Linux)
- somaxconn=$(sysctl net.core.somaxconn | awk '{print $2}')
+ somaxconn=$(sysctl -n net.core.somaxconn)
if [ "$somaxconn" -lt $SOMAXCONN ]; then
echo "WARN:"
echo "WARN: the value of net.core.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."
@@ -46,7 +46,7 @@ case "$(uname)" in
fi
;;
FreeBSD | Darwin)
- somaxconn=$(sysctl kern.ipc.somaxconn | awk '{print $2}')
+ somaxconn=$(sysctl -n kern.ipc.somaxconn)
if [ "$somaxconn" -lt $SOMAXCONN ]; then
echo "WARN:"
echo "WARN: the value of kern.ipc.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."