[jboss-jira] [JBoss JIRA] (AS7-3809) Limit of open file descriptors missing in standalone.sh/domain.sh in AS7
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Fri Feb 17 09:12:36 EST 2012
[ https://issues.jboss.org/browse/AS7-3809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Cerar reassigned AS7-3809:
--------------------------------
Assignee: Tomaz Cerar (was: Brian Stansberry)
> 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: Tomaz Cerar
> Priority: Minor
> Labels: as7, scripts, ulimit
>
> 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
More information about the jboss-jira
mailing list