-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Memory leak when adding a bookmark link in post editor #20944
Comments
@JamesMarino do you see similar memory spikes when uploading an image into the editor? |
@kevinansfield I uploaded an image to the editor of size 5MB, did this about 6 times got the following increase in memory as seen below Garbage collection seems to be working and memory is freed without an OOM crash it seems. |
I was digging into profiling the It seems to be building some sort of structure with 22,000 objects using 117MB of memory which I assume is not being freed for some reason. Could the issue potentially lie in here in some inefficient code upstream in this library? I did notice as well the |
Sounds more like inefficient code (causing an OOM) as opposed to a memory leak... I suggest editing the post title to change "Memory leak" to "OOM". |
Issue Summary
Seeing a memory leak within Ghost when adding a Bookmark Link to my site. Seems to be only happening to certain URL's so far such as
We can see the memory spike and it takes just 2 links to max out my 512Mb limit on my Ghost Install and then OOM.
Could be related to forum post
Steps to Reproduce
Ghost Version
5.94.0
Node.js Version
18.20.4
How did you install Ghost?
Docker on Linux (Also seems to be an issue on un-dockerised as well)
Database type
MySQL 8
Browser & OS version
Chrome / MacOS
Relevant log / error output
Code of Conduct
The text was updated successfully, but these errors were encountered: