-
Notifications
You must be signed in to change notification settings - Fork 948
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
Critical memory issue since 1.0.21 #3242
Comments
Seeing this as well on
|
If you remove the initializeNodeRuntime and use symbols, your site's performance will be degraded. |
We just published some perf improvements: reusing an Isolate VM context across all data binding evaluations. This should reduce memory usage during SSR. Available at 1.0.25, does not require any change besides updating the version. |
@MaximeGratens If you can try this new version and let me know how it fares performance-wise, that would be great. |
I get this in local and production : TypeError: Cannot destructure property 'ivmIsolateOptions' of 'undefined' as it is undefined. |
As a work around for now @MaximeGratens , can pass an empty object to
|
Wow, what timing! I was going to open a similar issue for the Vue SDK, but now it might make more sense to comment here instead. I've been delaying a major upgrade from the It took some time to dig into what part of our content caused this, because some pages behaved fine. In our case, any version that included I recreated a very narrow version of the issue with a quick Nuxt repo for SSR plus a lightweight Docker container that could be used to watch memory use over time, like so: Will keep that around just in case, but I updated to Figured this could be anecdotal evidence of the fix for other SSR environments 🤞 |
We're in production with version 1.0.25 and the initializeNodeRuntime({}) function; So far, we haven't seen any crashes or memory limits (we're testing on a multiple instance with 512mb of ram). The main page of our product takes between 1 and 2 seconds to load, which isn't very SEO-friendly and isn't what you're selling on your website. We can't use a cache because these pages are loaded from google or facebook ads with different query parameters each time. We always have very slow pages and it's the same thing as @kevintruby, it's when we try to loop. You have this inside issiue #3240 |
@kevintruby Thanks for sharing all of these insights. By reusing Isolate contexts across all data-binding evaluations, the latest change should get rid of memory leaks. Do let me know if there are any persistent issues when you deploy your Vue SDK test to production. @MaximeGratens Thanks for testing the latest version. It sounds like this issue may be specific to the builder feature of iterating over an array of dynamically fetched data? I will respond in your other issue. |
I am closing this issue as the specific memory leak caused by The unrelated performance issue tied to repeated blocks on data bindings can be tracked here #3240 |
Additionally: I patched See |
@samijaber I don't think the problem has been really solved. 2 grafs of 2 differents projects using builder and remix. Both server are crashing after sometimes, we are using 1.0.26. This is the last 24 hours of our production server. |
As another data point, I can confirm that this fix resolved our memory issues with |
Thanks folks. @MaximeGratens we are actively investigating the other sources of memory issues that you are facing and will respond to them in #3240 |
Describe the bug
Hello,
Since 1.0.21 and using the ini
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The memory or cpu of the server will increase until it will crash
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
We deploy the sdk 1.0.23 without the initiate node and you can see in the screen that the memory issue is fixed
The text was updated successfully, but these errors were encountered: