Skip to content
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

Running out of CPU inside of containers #1564

Open
ldanielw1 opened this issue May 22, 2024 · 3 comments
Open

Running out of CPU inside of containers #1564

ldanielw1 opened this issue May 22, 2024 · 3 comments
Labels
Type: Bug Something isn't working

Comments

@ldanielw1
Copy link

When running inside of a container with an input file of 2.5M, I am experiencing that redocly just hangs while running CPU% to 100%. Was wondering if there's any chance that this is because of some node dependencies that are particularly CPU intensive...?

No .redocly.yaml file used for this build.

Redocly version: 1.12.2
Node version: 20.12.2

@ldanielw1 ldanielw1 added the Type: Bug Something isn't working label May 22, 2024
@tatomyr
Copy link
Contributor

tatomyr commented May 24, 2024

Hi @ldanielw1, what command are you trying to run? What are the arguments? What is the file type, what's the spec version? Any logs output?

@ldanielw1
Copy link
Author

command and args: redocly build-docs /tmp/swagger_internal.json -o tmp/internal_index.html
The swagger file is generated via the ruby gem rswag-api, version 2.13.0

The only logs that we see are:

Found undefined and using theme.openapi options
Prerendering docs
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping
Non existing security scheme referenced: BearerToken. Skipping

But those logs also appear when the build is successful on other machines (outside of containers)

@tatomyr
Copy link
Contributor

tatomyr commented May 27, 2024

It's hard to figure out what's wrong without a reproducible sample. The tool does not use any CPU-intensive dependencies. But during the execution of the build-docs command react content is being rendered into an HTML string, so I suppose it's the main reason for the high load.
Potentially this could be related to a Redoc memory issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants