Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,10 @@ run.jvmArgs(
"-noverify",
"-XX:TieredStopAtLevel=1",
"-Dcom.sun.management.jmxremote",
'-Dmicronaut.environments=dev,override'
'-Dmicronaut.environments=dev,override',
// Silence the sun.misc.Unsafe memory-access startup warning (JEP 498) triggered by
// com.google.protobuf.UnsafeUtil (pulled in by gRPC), see https://github.com/kestra-io/kestra/issues/16513
'--sun-misc-unsafe-memory-access=allow'
)

/**********************************************************************************************************************\
Expand Down
6 changes: 5 additions & 1 deletion gradle/jar/selfrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ esac
# Opens java.lang due to https://github.com/kestra-io/kestra/issues/1755, see https://github.com/micronaut-projects/micronaut-core/issues/9573
JAVA_ADD_OPENS="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED"

# Allow sun.misc.Unsafe memory-access (JEP 498) to silence the startup warning triggered by
# com.google.protobuf.UnsafeUtil (pulled in by gRPC), see https://github.com/kestra-io/kestra/issues/16513
JAVA_UNSAFE_MEMORY_ACCESS="--sun-misc-unsafe-memory-access=allow"

# Fix required to use new DucksDB versions along side RocksDB
# https://github.com/kestra-io/plugin-jdbc/issues/165
LIBSTDC="/lib/x86_64-linux-gnu/libstdc++.so.6"
Expand All @@ -35,5 +39,5 @@ fi
KESTRA_JAVA_OPTS="-XX:MaxRAMPercentage=50.0"

# Exec
exec java ${KESTRA_JAVA_OPTS} ${JAVA_OPTS} ${JAVA_ADD_OPENS} --enable-native-access=ALL-UNNAMED -jar "$0" "$@"
exec java ${KESTRA_JAVA_OPTS} ${JAVA_OPTS} ${JAVA_ADD_OPENS} ${JAVA_UNSAFE_MEMORY_ACCESS} --enable-native-access=ALL-UNNAMED -jar "$0" "$@"
exit 127
Loading