-
Notifications
You must be signed in to change notification settings - Fork 83
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
Too much memory use & possible memory leak #380
Comments
Hello Nanahira, thank you for maintaining the instance and for being the owner of hibi.moecube.com. Regarding the issue of the instance consuming 4 GB of server memory and triggering the monitoring system's alarm, it may be caused by caching enabled by default. It is normal for this to occur when the request volume is high. You can refer to #114 for more information. I recommend upgrading to the latest version of HibiAPI, including all dependencies, as this may help with the memory usage issue. However, if memory still grows with low request volume, there may be a potential memory leak in the program that requires further analysis. |
With a careful check of the logs of both our gateways and CDN, we found there were 1000 requests per day, which isn't a high number. Is that amount of memory and request rate looking fine on other instances, especially the official one? |
For your reference, this is the memory graph of the public demo It does appear that even with the use of diskcache, the memory usage is still slowly increasing. Given the reported request volume, it is likely that there is a memory leak present in the program. As a workaround, you can set up a scheduled restart to reduce the impact of the memory leak. |
If you're using the default config then you have to set how much in-memory it can use since on default the size is not defined so it ends up using all your memory. For example I use |
This is Nanahira, the maintainer of MyCard, also the instance owner of https://hibi.moecube.com. Recently we saw the instance ate up 4 GB of our server memory, blew up our monitor system's alarm.
Is this software consuming that amount of memory, or perhaps my own misconfiguration? Looking for help, thanks.
The text was updated successfully, but these errors were encountered: