-
-
Notifications
You must be signed in to change notification settings - Fork 317
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 allocation issue #2340
Comments
So I'm guessing something like |
Running some tests in docker
Let's try again without limits:
Let's try to run that build
Memory issues seem to only happen at build, which is sort of expected to take quite some memory. It seems possible to build it in a container of 512m, if you tune it well. 512m is really pushing it though. |
In render.com, I believe fails at the |
Perhaps, if the end-user application is using prisma. Toolpad itself doesn't use prisma. |
I have narrowed down a bit more the problem:
|
In https://github.com/oliviertassinari/mui-olivier-tools/pull/1/files, did this start happening between 0.1.19 -> 0.1.20 or between 0.1.13 -> 0.1.20? |
The issue seems to have been introduced in v0.1.18, per oliviertassinari/mui-olivier-tools@a69b619. |
Great to see improvements in memory consumption. I had a look at the min memory requirement for more complex apps as I was curious:
But we can't compare Toolpad to these products so much, a bit of a different category. I think https://mui.com/toolpad/tutorials/render-deploy/#creating-a-new-app-on-render could be set more clearly, we don't precise the minimum hardware requirements. I tried to upgrade in oliviertassinari/mui-olivier-tools#3 to v0.1.22. It failed. In the last commit, I created a dummy express server to better isolate the problem. It might be an issue with the initial memory allocated during the start of |
Could be, I guess there'll be a memory spike on most apps during initialization. I would expect render.com to have a low pass filter in place though to ignore that. Could it be |
I don't think so, I did the 3rd commit https://github.com/oliviertassinari/mui-olivier-tools/pull/3/commits precisely to rule out this possibility. It deploys correctly https://mui-olivier-tools-pr-3.onrender.com/ |
I'm reopening, as in the worse case, I think we should document the minimum runtime requirement like https://docs.strapi.io/dev-docs/deployment#hardware-and-software-requirements, this also connects to #2432, so that developers have a higher chance to succeed in their deployment. |
#2689 solved a significant chunk of the issue. Memory has been down significantly since v0.1.29: I could upgrade oliviertassinari/mui-olivier-tools#5 🎉 To close this issue, I think it's mostly a matter of:
|
Steps to reproduce 🕹
Steps:
NODE_OPTIONS='--max-old-space-size=396'
Current behavior 😯
Crash memory allocation issue
Expected behavior 🤔
Works
Context 🔦
Trying to deploy the example of Toolpad in render.com
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: