Skip to content

Commit

Permalink
GC_UNMAP_THRESHOLD=1 in dockerfile and systemd service file
Browse files Browse the repository at this point in the history
Will return unused memory faster to the OS.
  • Loading branch information
carlhoerberg committed Jul 11, 2024
1 parent d232b47 commit 8fe54c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ RUN apk add --no-cache libssl3 pcre2 libevent libgcc \
COPY --from=builder /tmp/bin/amqproxy /usr/bin/amqproxy
USER 1000:1000
EXPOSE 5673
ENV GC_UNMAP_THRESHOLD=1
ENTRYPOINT ["/usr/bin/amqproxy", "--listen=0.0.0.0"]
1 change: 1 addition & 0 deletions extras/amqproxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ExecStart=/usr/bin/amqproxy --config /etc/amqproxy.ini
Restart=on-failure
DynamicUser=yes
LimitNOFILE=infinity
Environment="GC_UNMAP_THRESHOLD=1"

[Install]
WantedBy=multi-user.target

0 comments on commit 8fe54c0

Please sign in to comment.