Skip to content

Conversation

@carlhoerberg
Copy link
Contributor

WHY are these changes introduced?

OpenSSL in alpine is said to have a memory leak.

WHAT is this pull request doing?

Replace openssl with libressl in the alpine image

HOW was this pull request tested?

@carlhoerberg carlhoerberg requested a review from a team as a code owner July 29, 2025 22:54
@carlhoerberg carlhoerberg marked this pull request as draft July 29, 2025 22:54
@jgaskins
Copy link

I'll give this a try this evening, thanks!

@carlhoerberg
Copy link
Contributor Author

Did you manage to try it?

@Fijxu
Copy link

Fijxu commented Sep 9, 2025

Hi, we at https://github.com/iv-org/invidious we use the crystallang/crystal:1.16.3-alpine image to build an image of Invidious and we also have a memory leak, currently, compiling OpenSSL ourselves seems to fix the memory leak issue (https://forum.crystal-lang.org/t/memory-usage-of-http-one-shot-vs-maintaining-a-persistent-connection/8237/3).

I took some time to test LibreSSL instead of compiling OpenSSL, but the memory leak also happens when using LibreSSL from the Alpine repositories.

Reference: iv-org/invidious#5441 (comment) (The 1GB of Memory usage peak is when using LibreSSL from the Alpine repos and ~768MiB is when using self compiled OpenSSL)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants