-
Feature Request
-
Resolution: Won't Do
-
Minor
-
7.1.0.Final
In AS6 run.sh script included an option to raise the limit of open file descriptors. In AS7, where run.sh was replaced by standalone.sh/domain.sh, MAX_FD variable still exists, but it's not used.
If you decide to include this functionality in AS7, it would be great if the flow of the script would be changed, so it doesn't immediately stop when MAX_FD could not be set, but it tries with a lower value. Something like:
STEP_VALUE=50 i=${MAX_FD} while [ ${i} -gt 0 ]; do if ulimit -n ${i} 2> /dev/null 1>&2; then percent=`expr ${i} \* 100 \/ ${MAX_FD}` echo "Open files limit set to ${i} (${percent}% value of desired ${MAX_FD})." exit 0 else i=`expr ${i} - ${STEP_VALUE}` fi done