Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add file: Dockerfile-jemalloc #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wuzhihui1123
Copy link

Add the Dockerfile-jemalloc file to build the imaginary of jemalloc. solve the memory leak problem

@h2non
Copy link
Owner

h2non commented Aug 7, 2021

Can you please provide some additional information about the underlying issue and how does jemalloc solves the problem?

@polarathene
Copy link

polarathene commented Aug 21, 2021

Can you please provide some additional information about the underlying issue

#342 , #314 , #198

Some have identified MALLOC_ARENA_MAX as helpful, which has been reflected in the project README. Others noticed switching to jemalloc can further resolve the issue, where it's been clarified in issues on the libvips project repo IIRC, and one user in the imaginary linked issues references imgproxy docs that details both of these memory tweaks/fixes together.

This PR should probably document somewhere such as the README about why jemalloc variant may be relevant to try. Could be as simple as copy/paste or link referencing imgproxy docs on the subject.

Probably would be good if someone verifies with a before & after result of the Dockerfile resolving the issue too.

@angelo-hub
Copy link
Contributor

@polarathene I'm curious if I should pull this into our current fork, can you provide some benchmarks, as well as docker stats if possible?

@angelo-hub
Copy link
Contributor

@polarathene Also there was a small update to the docker file to upgrade to golang 1.17, can you merge them in here too?

@polarathene
Copy link

@angelo-hub I'm not the author of this PR, I do not use imaginary.

My comment was added when I was looking at the project among others, I saw this PR and thought I'd pass some information along at the time. I have no time available for contributions sorry :(

@zenyui
Copy link

zenyui commented Jun 28, 2023

@angelo-hub do you maintain a more recent fork/build of imaginary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants