You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Eric Pai (Jira)" <ji...@apache.org> on 2021/09/13 02:48:00 UTC
[jira] [Created] (IOTDB-1674) Bad interpret of iotdb-env.sh causing
somaxconn warning failed
Eric Pai created IOTDB-1674:
-------------------------------
Summary: Bad interpret of iotdb-env.sh causing somaxconn warning failed
Key: IOTDB-1674
URL: https://issues.apache.org/jira/browse/IOTDB-1674
Project: Apache IoTDB
Issue Type: Improvement
Components: Others
Reporter: Eric Pai
Assignee: Eric Pai
Fix For: master branch
See the code of iotdb-env.sh
[https://github.com/apache/iotdb/blob/b76a799c4346ba16caf468e0c8f191949ff612b4/server/src/assembly/resources/conf/iotdb-env.sh#L39]
[https://github.com/apache/iotdb/blob/b76a799c4346ba16caf468e0c8f191949ff612b4/server/src/assembly/resources/conf/iotdb-env.sh#L49]
I have tested in my MacBook and a Linux virtual machine, the command outputs are:
Linux
{code:java}
[root@a0933215a07b iotdb]# sysctl net.core.somaxconn
net.core.somaxconn = 128
{code}
MacOS
{code:java}
[myuser iotdb]# sysctl kern.ipc.somaxconn
kern.ipc.somaxconn: 128
{code}
Here we can see using awk '\{print $2}' will get '=' in Linux, casuing the condition check failed.
The best solution is using sysctl *-n* option directly:
Linux
{code:java}
[root@a0933215a07b iotdb]# sysctl -n net.core.somaxconn
128
{code}
MacOS
{code:java}
[myuser iotdb]# sysctl -n kern.ipc.somaxconn
128
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)