forked from jafingerhut/clojure-benchmarks
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple java-run.sh script for Java hello program.
- Loading branch information
1 parent
8a4e931
commit c711e8d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
1>&2 echo "usage: `basename $0` <output-file> [ cmd line args for Java program ]" | ||
exit 1 | ||
fi | ||
|
||
source ../env.sh | ||
|
||
OUTP="$1" | ||
shift | ||
|
||
# Use a small limit to avoid using lots of memory. It makes the | ||
# garbage collector collect more often, but the extra CPU time is not | ||
# much. | ||
MAX_HEAP_MB=16 | ||
|
||
../bin/measureproc ${MP_COMMON_ARGS} ${MP_ARGS_FOR_JVM_RUN} --output "${OUTP}" "${JAVA}" ${JAVA_PROFILING} -server -Xmx${MAX_HEAP_MB}m -classpath ./obj/java hello "$@" |