11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22
23 JAVA="$TESTJAVA/bin/java"
24 JAVA_OPTS="$TESTJAVAOPTS $TESTVMOPTS -cp $TESTCLASSPATH -agentlib:alloc001"
25
26 . ${TESTSRC}/../../../../../test_env.sh
27
28 # Set virtual memory usage limit to be not 'unlimited' on unix platforms
29 # This is workaround for 6683371.
30 case $VM_OS in
31 aix | bsd | linux | solaris)
32 echo "Check virtual memory usage limits"
33 soft_limit=`ulimit -S -v` || ""
34 hard_limit=`ulimit -H -v` || ""
35 echo "Virtual memory usage limit (hard): $hard_limit"
36 echo "Virtual memory usage limit (soft): $soft_limit"
37
38 # Need to set ulimit if currently unlimited or > 4GB (1GB on 32 bit)
39 if [ $VM_BITS -eq 32 ]
40 then
41 max_ulimit=1048576
42 max_heap=256m
43 else
44 # AIX requires a 32-bit value here.
45 max_ulimit=4194303
46 max_heap=512m
47 fi
48
49 should_update_ulimit=0
50 if [ -n "$soft_limit" ]; then
51 if [ "$soft_limit" = "unlimited" ]; then
|
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22
23 JAVA="$TESTJAVA/bin/java"
24 JAVA_OPTS="$TESTJAVAOPTS $TESTVMOPTS -cp $TESTCLASSPATH -agentlib:alloc001"
25
26 . ${TESTSRC}/../../../../../test_env.sh
27
28 # Set virtual memory usage limit to be not 'unlimited' on unix platforms
29 # This is workaround for 6683371.
30 case $VM_OS in
31 aix | bsd | linux)
32 echo "Check virtual memory usage limits"
33 soft_limit=`ulimit -S -v` || ""
34 hard_limit=`ulimit -H -v` || ""
35 echo "Virtual memory usage limit (hard): $hard_limit"
36 echo "Virtual memory usage limit (soft): $soft_limit"
37
38 # Need to set ulimit if currently unlimited or > 4GB (1GB on 32 bit)
39 if [ $VM_BITS -eq 32 ]
40 then
41 max_ulimit=1048576
42 max_heap=256m
43 else
44 # AIX requires a 32-bit value here.
45 max_ulimit=4194303
46 max_heap=512m
47 fi
48
49 should_update_ulimit=0
50 if [ -n "$soft_limit" ]; then
51 if [ "$soft_limit" = "unlimited" ]; then
|