Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/calcite #3

Merged
merged 14 commits into from
Dec 22, 2021
Next Next commit
Add java option comment for attaching a debugger
  • Loading branch information
taewhi committed Dec 14, 2021
commit adc87dd8be305811a0f1294cab86ea3d48b90c86
3 changes: 3 additions & 0 deletions traindb-common/src/main/scripts/traindb-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ fi

TRAINDB_OPTS="$JAVA_HEAP_MAX"

# uncomment if you want to attach a debugger
#TRAINDB_OPTS="$TRAINDB_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"

lines=$("$JAVA" -version 2>&1 | tr '\r' '\n')
ver=$(echo $lines | sed -e 's/.*version "\(.*\)"\(.*\)/\1/; 1q')
if [[ $ver = "1."* ]]; then
Expand Down