-
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
[BUG] Out-of-memory issue with limited memory VM #188
Comments
I think this isn't specific to Meteor per se, but rather by memory limitations imposed by the hosting, so for starters we could try running just OneSDK with higher GC pressure and make sure it doesn't leak. In general it would be helpful to learn what is the overhead of Comlink interpreter regarding memory usage, perhaps there are some possibilities of easy optimizations. |
@StorytellerCZ Thanks, I will add info about the Node version. Could you please add what's the version of I'd assume the high CPU usage would be quite normal for most projects upon the initial start, or is it not the case when you omit OneSDK? Also to be sure, the application crashes upon the start and not upon profile perform, right? So either we are allocating something huge on SDK initialization, or we just have too much dependencies. |
I'll try to get a repro on minimum Meteor project. It would be best if we could get it running with free hosting option or at least the tiny container. For the latest report I have used the latest 1.0.1 version. |
So, free hosting with Meteor React skeleton with the sdk only installed (nothing else added): manages to build and run |
Hello @StorytellerCZ, we have now identified and removed most memory consuming part of the SDK's dependencies, Typescript. It is not yet released to the public as there are some potential problems we need to solve first, we'll let you know when it is. I have tried tiny Meteor container with a beta release and it worked properly without running out of memory. It was an interesting experience working with Meteor and I have also identified possible friction points in the future, such as file I/O and will keep it in mind in the future. Thank you for your report! Here's some details if you're interested: |
@lukas-valenta Awesome! Thanks a lot and keep me posted! I will test it once you release. |
Tried with the latest version (Meteor and Superface) and still getting some issues:
node v14.19.3 Removing superface allows me to deploy without problems. |
@StorytellerCZ Thanks for an update! Unfortunately we still didn't get rid of dependency on TypeScript, since parser is still bundled. However, there's currently a refactoring initiative in progress, which will remove the parser from SDK. We plan to release it in v2.0 of SDK. |
Since v2 is out, I will try to take some time today to see if it fixes this issue. |
Originally reported by @StorytellerCZ.
Expected Behavior
When deploying the Meteor application with OneSDK installed, one expects it to work without any issues on standard hosting.
Current Behavior
After deploying the application to Meteor Galaxy (a Meteor-specific cloud hosting solution) the application immediately (?) crashes with OOM error:
https://gist.github.com/StorytellerCZ/4ce7196f416972ec2760d384def74439
Steps to Reproduce
To be added. I will try to reproduce this with minimal application; it's possible we are reaching Galaxy limit in addition to other libraries.
Your Environment
@superfaceai/[email protected]
The text was updated successfully, but these errors were encountered: