[
https://issues.jboss.org/browse/AS7-3809?page=com.atlassian.jira.plugin.s...
]
Stuart Douglas resolved AS7-3809.
---------------------------------
Resolution: Rejected
This caused some problems in our internal tests, and after some discussion we decided that
we were better off without it. We decided that a better approach is just to make sure that
we have adequate documentation on the issue, as in most cases the user is going to need to
use sudo to adjust the system wide limit anyway.
Limit of open file descriptors missing in standalone.sh/domain.sh in
AS7
------------------------------------------------------------------------
Key: AS7-3809
URL:
https://issues.jboss.org/browse/AS7-3809
Project: Application Server 7
Issue Type: Feature Request
Components: Scripts, Server
Affects Versions: 7.1.0.Final
Reporter: Luka Furlan
Assignee: Stuart Douglas
Priority: Minor
Labels: as7, scripts, ulimit
Fix For: 7.1.1.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:
{noformat}
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
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira