You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/12/24 12:19:27 UTC

[GitHub] [iotdb] yanhongwangg commented on a change in pull request #2293: add ulimit

yanhongwangg commented on a change in pull request #2293:
URL: https://github.com/apache/iotdb/pull/2293#discussion_r548513913



##########
File path: cluster/src/assembly/resources/sbin/start-node.sh
##########
@@ -18,6 +18,14 @@
 # under the License.
 #
 
+# Set max number of open files
+Max_Num=$(ulimit -n)
+if [ $Max_Num -ne 65535 ]; then
+    ulimit -n 65535
+    if [ $? -ne 0 ]; then
+        echo "Warning: Failed to set max number of files to be 65535, please use 'ulimit -n 65535' to set it when you use iotdb in production environments."
+    fi
+fi

Review comment:
       Thanks for your guidance, I will make changes




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org