Skip to content

Commit

Permalink
issue 30619 jemalloc (#30621)
Browse files Browse the repository at this point in the history
- **feat(perf) adding jemalloc to our java-base image. It is not set by
default but is just available.**
  • Loading branch information
wezell authored Nov 12, 2024
1 parent 786c18d commit 84f04b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# sets the SDKMAN_JAVA_VERSION for dotCMS
# this is the version of java that will be used as the base image for the docker build
java=21.0.4-ms
3 changes: 2 additions & 1 deletion dotCMS/src/main/docker/original/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN apt update && \
libtcnative-1 \
tzdata \
ca-certificates \
libjemalloc2 \
openssl \
libapr1 \
libpq-dev && \
Expand Down Expand Up @@ -98,4 +99,4 @@ EXPOSE 8081
# Connect from proxy, HTTPS/443, secure
EXPOSE 8082
# Direct connect for HTTPS, secure
EXPOSE 8443
EXPOSE 8443
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,5 @@ export CUSTOM_STARTER_URL=${CUSTOM_STARTER_URL:-""}
## This needs to be set in order for catalina to read environmental properties
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource"


## export the environment variable for jemalloc
export LD_PRELOAD=${LD_PRELOAD:-"/usr/lib/`uname -m`-linux-gnu/libjemalloc.so.2"}

0 comments on commit 84f04b4

Please sign in to comment.