-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvdbench
executable file
·47 lines (35 loc) · 1.28 KB
/
vdbench
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
#
#
# Author: Henk Vandenbergh.
#
# Directory where script was started from:
dir=`dirname $0`
# If the first parameter equals -SlaveJvm then this means that
# the script must start vdbench with more memory.
# Since all the real work is done in a slave, vdbench itself can be
# started with just a little bit of memory, while the slaves must
# have enough memory to handle large amount of threads and buffers.
# Set classpath.
# $dir - parent of $dir/solaris/solx86/linux/aix/hp/mac subdirectory
# $dir/../classes - for development overrides
# $dir/vdbench.jar - everything, including vdbench.class
cp=$dir/:$dir/classes:$dir/vdbench.jar
# Proper path for java:
java=java
# When out of memory, modify the first set of memory parameters. See above.
# '-client' is an option for Sun's Java. Remove if not needed.
#
# If you need to increase java heap size for Vdbench utilities like 'dsim',
# increase the value for 'Vdbmain'.
#
# When your version of java supports 64bit you may replace '-client' with '-d64'
if [ "$1" == "SlaveJvm" ]; then
$java -client -Xmx1024m -Xms128m -cp $cp Vdb.SlaveJvm $*
exit $?
else
$java -client -Xmx512m -Xms64m -cp $cp Vdb.Vdbmain $*
exit $?
fi