-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
JavaScript heap out of memory and/or coredump #2383
Comments
Thanks for letting us know about this. Please check if you have any circular references in your OpenAPI description, and also if you can build the docs on bare metal or if this problem is specific to docker? (note: may be related to #2474 ) |
Tested on bare metal too (node 18.16.1-1, node 20.4.0) the same problem |
Is there a method/script to check this? |
You can run |
I'm transferring it back since the issue is on Redoc / Reference Docs side. |
Describe the bug
Redocly cli crash on docker and bare metal (node 18.16.1-1, node 20.4.0).
Expected behavior
Generated documentation.
Minimal reproducible OpenAPI snippet(if possible)
1.
docker run --rm -p 80:80 dockware/play:latest
wget -O shopware-admin-openapi3.json http://localhost/api/_info/openapi3.json?type=jsonapi
docker run --rm -v ./:/spec redocly/cli build-docs shopware-admin-openapi3.json
--> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
docker run --rm -v ./:/spec --env NODE_OPTIONS=--max_old_space_size=32000 redocly/cli build-docs shopware-admin-openapi3.json
--> ~18GB memory used --> coredump
Screenshots
Additional context
on bare metal:
redocly lint shopware-admin-openapi3.json
...
Woohoo! Your OpenAPI definition is valid. 🎉
You have 76 warnings.
npm list -g
/usr/lib
└── @redocly/cli@1.0.0-rc.2
this is default and minimal schema for shopware https://github.com/shopware/platform/
shopware-admin-openapi3.json.zip
logs.log
The text was updated successfully, but these errors were encountered: