Skip to content

Commit 75b0178

Browse files
nflorentingnepud
authored andcommitted
uses jemalloc to optimize memory usage
1 parent 65a6e49 commit 75b0178

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Next release
44

55
- Fix a bug: subscripton start date is not correct when member subscribe with offer free days
6-
6+
- improvement: uses jemalloc to decrease memory usage
77

88
## v6.4.14 2025 November 20
99

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ RUN locale-gen C.UTF-8
1111

1212
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -\
1313
&& apt-get update -qq && apt-get install -qq --no-install-recommends \
14-
nodejs \
14+
nodejs libjemalloc2 \
1515
&& apt-get upgrade -qq \
1616
&& apt-get clean \
1717
&& rm -rf /var/lib/apt/lists/*\
1818
&& npm install -g yarn@1
1919

20+
ENV LD_PRELOAD=libjemalloc.so.2
21+
2022
# Fix bug: LoadError: Could not open library '/usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so': Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so)
2123
# add libsass-dev libsass libc6-compat and env below
2224
ENV LD_LIBRARY_PATH=/lib64

0 commit comments

Comments
 (0)