[jboss-jira] [JBoss JIRA] (AS7-3809) Limit of open file descriptors missing in standalone.sh/domain.sh in AS7

Luka Furlan (JIRA) jira-events at lists.jboss.org
Wed Mar 7 12:15:37 EST 2012


    [ https://issues.jboss.org/browse/AS7-3809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674834#comment-12674834 ] 

Luka Furlan commented on AS7-3809:
----------------------------------

Hi,

sudo doesn't really help here. Sure, you are able to modify the ulimit values using limits.conf or similar, but this only works if you want to make the changes for a certain user/group or system wide. But if you use ulimit directly, it raises or lowers (which I assume caused problems with your tests) limits per process, that is why it is usually put in startup scripts.
This brings us back to the point, where users, who don't want to give too many resources to the whole system/user/group, will just have to implement this functionality by themselves.
                
> 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

        


More information about the jboss-jira mailing list