Skip to content

Commit 0a1360e

Browse files
committed
Bump Vert.x to OpenJDK 24
1 parent 0abcc76 commit 0a1360e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

frameworks/Java/vertx/vertx-postgres.dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.9.0-eclipse-temurin-17 as maven
1+
FROM maven:3.9.9-eclipse-temurin-24-noble as maven
22
WORKDIR /vertx
33
COPY src src
44
COPY pom.xml pom.xml
@@ -9,6 +9,9 @@ EXPOSE 8080
99
CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
1010
sed -i "s|tfb-database|$DBIP|g" /vertx/src/main/conf/config.json && \
1111
java \
12+
--enable-native-access=ALL-UNNAMED \
13+
--sun-misc-unsafe-memory-access=allow \
14+
--add-opens=java.base/java.lang=ALL-UNNAMED \
1215
-Xms2G \
1316
-Xmx2G \
1417
-server \
@@ -22,7 +25,8 @@ CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
2225
-Dvertx.cacheImmutableHttpResponseHeaders=true \
2326
-Dvertx.internCommonHttpRequestHeadersToLowerCase=true \
2427
-Dvertx.eventLoopPoolSize=$((`grep --count ^processor /proc/cpuinfo`)) \
25-
-Dio.netty.buffer.checkBounds=false \
28+
-Dio.netty.noUnsafe=false \
29+
-Dio.netty.buffer.checkBounds=false \
2630
-Dio.netty.buffer.checkAccessible=false \
2731
-jar \
2832
target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar \
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM maven:3.9.0-eclipse-temurin-17 as maven
1+
FROM maven:3.9.9-eclipse-temurin-24-noble as maven
22
WORKDIR /vertx
33
COPY src src
44
COPY pom.xml pom.xml
55
RUN mvn package -q
66

77
EXPOSE 8080
88

9-
CMD ["java", "-Xms2G", "-Xmx2G", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-Djava.lang.Integer.IntegerCache.high=10000", "-Dvertx.disableMetrics=true", "-Dvertx.disableWebsockets=true", "-Dvertx.disableContextTimings=true", "-Dvertx.disableHttpHeadersValidation=true", "-Dvertx.cacheImmutableHttpResponseHeaders=true", "-Dvertx.internCommonHttpRequestHeadersToLowerCase=true", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-jar", "target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar", "src/main/conf/config.json"]
9+
CMD ["java", "--enable-native-access=ALL-UNNAMED", "--sun-misc-unsafe-memory-access=allow", "--add-opens=java.base/java.lang=ALL-UNNAMED", "-Xms2G", "-Xmx2G", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-Djava.lang.Integer.IntegerCache.high=10000", "-Dvertx.disableMetrics=true", "-Dvertx.disableWebsockets=true", "-Dvertx.disableContextTimings=true", "-Dvertx.disableHttpHeadersValidation=true", "-Dvertx.cacheImmutableHttpResponseHeaders=true", "-Dvertx.internCommonHttpRequestHeadersToLowerCase=true", "-Dio.netty.noUnsafe=false", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-jar", "target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar", "src/main/conf/config.json"]

0 commit comments

Comments
 (0)