High memory usage? Over 200MB for mostly-idle container #59
Answered
by
webysther
binarydad
asked this question in
Help wanted
How Shlink is set-upContainerized, version 3.1.2, hosted on ubuntu docker host. Database is mysql on another server. SummaryCurious as to why there is high-RAM usage. I have 2 instances and both use a little above/below 200MB on average. Wondering why this is. Screenshot below is just shy of 200MB, but I've seen it go past that mark. Thanks! |
Answered by
webysther
Feb 19, 2026
Replies: 3 comments 6 replies
|
It's hard to tell, but I imagine openswoole (the runtime used to serve Shlink on the docker image) reserves some memory by default. I will try to investigate a bit further how this works, and if it's configurable, but if your instances don't have a lot of traffick, maybe you can try reducing the amount of task and web workers, as described here It uses 16 of each by default. I would try with 8 or so and see if it helps. |
0 replies
|
Awesome. I'll check this out and report back. Thanks!
------ Original Message ------
From "Alejandro Celaya" ***@***.***>
To "shlinkio/shlink" ***@***.***>
Cc "Ryan Peters" ***@***.***>; "Author"
***@***.***>
Date 8/11/2022 2:55:31 PM
Subject Re: [shlinkio/shlink] High memory usage? Over 200MB for
mostly-idle container (Discussion shlinkio/shlink#1505)
It's hard to tell, but I imagine openswoole <https://openswoole.com/>
(the runtime used to serve Shlink on the docker image) reserves some
memory by default.
I will try to investigate a bit further how this works, and if it's
configurable, but if your instances don't have a lot of traffick, maybe
you can try reducing the amount of task and web workers, as described
here <https://shlink.io/documentation/environment-variables/#server>
It uses 16 of each by default. I would try with 8 or so and see if it
helps.
—
Reply to this email directly, view it on GitHub
<https://github.com/shlinkio/shlink/discussions/1505#discussioncomment-3378284>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANN2X7DLXX2H3UIPEPT5BDVYVECHANCNFSM56JGWNHQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
… |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


After change this:
Worked, I think this can be close!