[jboss-jira] [JBoss JIRA] Commented: (JBAS-4948) errors in bin/run.sh on OSX

Ernst de Haan (JIRA) jira-events at lists.jboss.org
Mon Mar 29 06:48:38 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBAS-4948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12522529#action_12522529 ] 

Ernst de Haan commented on JBAS-4948:
-------------------------------------

Here's a patch that works for me, on Max OS X 10.6.2:

--- bin/run.sh.orig     2010-03-29 12:39:58.000000000 +0200
+++ bin/run.sh  2010-03-29 12:42:47.000000000 +0200
@@ -79,7 +79,12 @@
 
 # Increase the maximum file descriptors if we can
 if [ "$cygwin" = "false" ]; then
-    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ "$darwin" != "true" ]; then
+       MAX_FD_LIMIT=`ulimit -H -n`
+    else
+       MAX_FD_LIMIT=`sysctl -n kern.maxfilesperproc`
+    fi
+
     if [ $? -eq 0 ]; then
        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then
            # use the system max

> errors in bin/run.sh on OSX
> ---------------------------
>
>                 Key: JBAS-4948
>                 URL: https://jira.jboss.org/jira/browse/JBAS-4948
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: JBossAS-4.2.2.GA
>         Environment: osx 10.5
>            Reporter: Jon Stevens
>            Assignee: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: patch.txt
>
>
> I see this when I run run.sh:
> ./bin/run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
> run.sh: Could not set maximum file descriptor limit: unlimited
> Doesn't seem to affect the rest of the script.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list