Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/kafka-run-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ while [ $# -gt 0 ]; do
DAEMON_MODE="true"
shift
;;
--soft-file-limit)
ulimit -n $2
shift 2
;;
*)
break
;;
Expand Down
6 changes: 5 additions & 1 deletion bin/kafka-server-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if [ $# -lt 1 ];
then
echo "USAGE: $0 [-daemon] server.properties [--override property=value]*"
echo "USAGE: $0 [-daemon] [--soft-file-limit number] server.properties [--override property=value]*"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, if it would make sense to have it as part of kafka-env.sh, as suggested in KAFKA-1566?

exit 1
fi
base_dir=$(dirname $0)
Expand All @@ -37,6 +37,10 @@ case $COMMAND in
EXTRA_ARGS="-daemon "$EXTRA_ARGS
shift
;;
--soft-file-limit)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doesn't work if you provide them in the reverse order (i.e., --soft-file-limit <number> -daemon, which I would assume would be possible)? I think you'd need a while loop around this.

EXTRA_ARGS="--soft-file-limit ${2} "$EXTRA_ARGS
shift 2
;;
*)
;;
esac
Expand Down