453 fi
454
455 # Finally append user provided options to allow them to override.
456 UTIL_ADD_JVM_ARG_IF_OK([$USER_BOOT_JDK_OPTIONS],boot_jdk_jvmargs,[$JAVA])
457
458 AC_MSG_RESULT([$boot_jdk_jvmargs])
459
460 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
461 JAVA_FLAGS=$boot_jdk_jvmargs
462 AC_SUBST(JAVA_FLAGS)
463
464 AC_MSG_CHECKING([flags for boot jdk java command for big workloads])
465
466 # Starting amount of heap memory.
467 UTIL_ADD_JVM_ARG_IF_OK([-Xms64M],boot_jdk_jvmargs_big,[$JAVA])
468 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M
469
470 # Maximum amount of heap memory.
471 JVM_HEAP_LIMIT_32="768"
472 # Running a 64 bit JVM allows for and requires a bigger heap
473 JVM_HEAP_LIMIT_64="1600"
474 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2`
475 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then
476 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL
477 fi
478 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then
479 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL
480 fi
481 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then
482 JVM_HEAP_LIMIT_32=512
483 JVM_HEAP_LIMIT_64=512
484 fi
485
486 if test "x$BOOT_JDK_BITS" = "x32"; then
487 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32
488 else
489 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64
490 fi
491 UTIL_ADD_JVM_ARG_IF_OK([-Xmx${JVM_MAX_HEAP}M],boot_jdk_jvmargs_big,[$JAVA])
492
493 AC_MSG_RESULT([$boot_jdk_jvmargs_big])
|
453 fi
454
455 # Finally append user provided options to allow them to override.
456 UTIL_ADD_JVM_ARG_IF_OK([$USER_BOOT_JDK_OPTIONS],boot_jdk_jvmargs,[$JAVA])
457
458 AC_MSG_RESULT([$boot_jdk_jvmargs])
459
460 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
461 JAVA_FLAGS=$boot_jdk_jvmargs
462 AC_SUBST(JAVA_FLAGS)
463
464 AC_MSG_CHECKING([flags for boot jdk java command for big workloads])
465
466 # Starting amount of heap memory.
467 UTIL_ADD_JVM_ARG_IF_OK([-Xms64M],boot_jdk_jvmargs_big,[$JAVA])
468 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M
469
470 # Maximum amount of heap memory.
471 JVM_HEAP_LIMIT_32="768"
472 # Running a 64 bit JVM allows for and requires a bigger heap
473 JVM_HEAP_LIMIT_64="3200"
474 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2`
475 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then
476 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL
477 fi
478 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then
479 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL
480 fi
481 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then
482 JVM_HEAP_LIMIT_32=512
483 JVM_HEAP_LIMIT_64=512
484 fi
485
486 if test "x$BOOT_JDK_BITS" = "x32"; then
487 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32
488 else
489 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64
490 fi
491 UTIL_ADD_JVM_ARG_IF_OK([-Xmx${JVM_MAX_HEAP}M],boot_jdk_jvmargs_big,[$JAVA])
492
493 AC_MSG_RESULT([$boot_jdk_jvmargs_big])
|