-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 ? #27
Comments
After more testing, it seems related to emojis. Underload test I confirm that external memory grows and never get garbage collected |
Using Bun? Could be Bun related but will need to investigate. |
Yes it was using bun. Reproduction is pretty simple.
|
This also happens in nodejs. |
Not sure if this is an issue with hono-og then, but maybe |
Could be, in which case this is bad. Seems strange though, I assume that package got exposed to quite some load |
What does |
That’s only for the Bun output, Bun couldn’t handle loading external WASM files, so had to inline them. |
@jxom so good new is that it doesn't look to be |
Didn’t you say it happens on Node.js though? Node.js uses the |
Satori + Resvg works fine on both node and bun |
Not sure where the memory leak would arise then as this library is a simple wrapper over As always, a minimal reproducible example would help a lot so I can investigate further. |
To reproduce. Spin up a new app. I've tried Node and Bun. Take any image path, eg: http://localhost:3000/image?image=..... Add a memory logger middleware
Run an https://www.artillery.io load test on that path Notice the memory grows linearly with the number of calls and never gets garbage collected |
If you are saying that a NodeJS setup doesn't use the wrapped Vercel-og then it could be on Vercel-og side. They do some some dynamic font loading that may be the issue. However I can confirm that satori + revsg on their own do no have this issue |
Fixed via #28. |
When running an application that generate a lot of image, the memory seem to be steadily increasing, after some point this error show up.
Can there be a memory leak somewhere ?
The text was updated successfully, but these errors were encountered: