harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5007) [buildtest][eut] adaptor must check the Linux limitations
Date Tue, 23 Oct 2007 14:57:50 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vladimir Beliaev updated HARMONY-5007:
--------------------------------------

             Component/s: build - test - ci
    Estimated Complexity: Moderate
             Description: 
EUT may fail due to resources limitation on the current machine. Like there should be set:

    # max memory size 
    ulimit -m 2000000

    # stack size
    ulimit -s 8182

    # open files
    ulimit -n 8192

I think it worth checking from adaptors these settings are in place be running EUT... This
would safe a lot of time for evaluating EUT failures caused by host limitations.

If someone knows a good way to get the shell command information to ant context - you welcome
to share it (I'm not 'ant' expert)... I'm going to use something like:

    <target name="check-linux-limitation" if="is.linux">
        <exec executable="sh"
              dir="${basedir}"
              failonerror="false"
              logError="false"
              resultproperty="ulimit.memory.size">
              <arg value="-c" />
              <arg value="ulimit -m" />
        </exec>
       <!-- check value of ulimit.memory.size, fail if there is issue-->
    </target>

Thanks
Vladimir Beliaev
             Environment: Linux

> [buildtest][eut] adaptor must check the Linux limitations
> ---------------------------------------------------------
>
>                 Key: HARMONY-5007
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5007
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: build - test - ci
>         Environment: Linux
>            Reporter: Vladimir Beliaev
>
> EUT may fail due to resources limitation on the current machine. Like there should be
set:
>     # max memory size 
>     ulimit -m 2000000
>     # stack size
>     ulimit -s 8182
>     # open files
>     ulimit -n 8192
> I think it worth checking from adaptors these settings are in place be running EUT...
This would safe a lot of time for evaluating EUT failures caused by host limitations.
> If someone knows a good way to get the shell command information to ant context - you
welcome to share it (I'm not 'ant' expert)... I'm going to use something like:
>     <target name="check-linux-limitation" if="is.linux">
>         <exec executable="sh"
>               dir="${basedir}"
>               failonerror="false"
>               logError="false"
>               resultproperty="ulimit.memory.size">
>               <arg value="-c" />
>               <arg value="ulimit -m" />
>         </exec>
>        <!-- check value of ulimit.memory.size, fail if there is issue-->
>     </target>
> Thanks
> Vladimir Beliaev

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message