-
Notifications
You must be signed in to change notification settings - Fork 0
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
High CPU and Memory usage due to develop container #217
Comments
I moved
Which was a good move, because now the persistent memory issues do not affect other websites. This is the Can devs here investigate this? |
Thanks for the updates. Did you find any logs related to this issue? |
You can find all the logs on Kibana: But currently there's barely any logs, and the containers are behaving so far: Here's the current trend: Ignore the drop off a the end, we are having issues with our metrics cluster: https://github.com/status-im/infra-hq/issues/125 |
Thanks @jakubgs Does the I think there is an issue with vercel/og given the logs you provided
But we are using it both of the production & staging website to produce the og-image (link previews) on the server. |
I don't believe this issue is specific to If you look at a 30 day graph you see it always goes up to the limit of 4 GB and releases memory only after restart: Ignore the two big spikes at the end, that's an artifact due to metrics cluster latency. The host is constantly using pretty much all the SWAP memory: |
Hey @jinhojang6 : I was planning on assigning this to myself and to begin investigating this issue if you don't mind. Thank you. |
Thanks for the help @siddarthkay . I don't have further information yet. Just suspect that the vercel/og makes the problem as written in the error log.
|
It seems that many people who are running NextJS with Docker experience the same issue. Updating to Next v14.1.3 (published last week) could solve the problem. |
yeah my money was on nextjs.. although upgrading to 14 would be a disruptive change no @jinhojang6 ? |
@siddarthkay You are totally right. But I think we have no choice but to upgrade it to resolve this memory leak issue. What do you think? |
I am always up for upgrading stuff :D @jinhojang6 |
@siddarthkay I've upgraded it to 14.1.3 (05d009c) and the staging website is working well : https://lpe-staging.vercel.app/ Let me update the live website if you are okay. |
That was quick! @jinhojang6 |
Updated https://press.logos.co/ Thanks! @siddarthkay |
Can we apply the same upgrade to the software used for https://free.technology/ as well? |
@jakubgs I did it. Thanks for the double-check. |
Indeed, the spikes are probably builds, but the fact it doesn't release resources seems like a bug to me. Garbage software. |
Looks like NextJS upgrade doesn't solve the issue. |
Okay I'll resume profiling the web app then. |
Restart added: https://github.com/status-im/infra-misc/commit/dbf648695214aaf47fb08a9bc6895938e02700bc Let's remove if the issue is fixed. |
It appears the problem still persists: The source appears to be the
Here's the graph: It seems like the daily restart is not enough. Based on today's growth of memory usage we'd need to restart every 6 hours. |
The logs contain a lot of those:
Probably unrelated tho. |
Summary:
Today I found the
develop
container using most of the CPU and Memory on the host:And spewing these logs:
Restart helped, at least for now.
Environment:
Alpine Linux 3.17
sha256:221faa7c3b63afc28ddb3788800874d001ef5cc720a37539e510de7161e8331c
The text was updated successfully, but these errors were encountered: