Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.06 KB

faq.md

File metadata and controls

31 lines (20 loc) · 1.06 KB

FAQ

Q: I'm seeing heap out of memory errors, how do I resolve this?

Large OpenAPI specs can cause autorest to require more than the default max memory. You can increase Node max memory by setting the --memory option either in the cli or autorest config file(s).

Example:

memory: 8g      # Increase to 8g
memory: 4096m   # Increase to 4g

Alternatively setting the NODE_OPTIONS environment variable with the --max_old_space_size=<amount> flag.

For example

NODE_OPTIONS=--max_old_space_size=4096 # Increase to 4g
NODE_OPTIONS=--max_old_space_size=8192 # Increast to 8g

Q: I'm running into errors in the azure-rest-api-specs CI. However, I know I'm doing the right thing. How do I pass CI?

In this case, you want to use suppressions. See docs for them here.