Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3809

Limit of open file descriptors missing in standalone.sh/domain.sh in AS7

XMLWordPrintable

      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
      

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              lukaf_jira Luka Furlan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: