High memory usage? Over 200MB for mostly-idle container #1505
Unanswered
binarydad
asked this question in
Help wanted
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
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 #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
<#1505 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANN2X7DLXX2H3UIPEPT5BDVYVECHANCNFSM56JGWNHQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
… |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How Shlink is set-up
Containerized, version 3.1.2, hosted on ubuntu docker host. Database is mysql on another server.
Summary
Curious 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!
Beta Was this translation helpful? Give feedback.
All reactions