diff --git a/scripts/tools/zap/generate.py b/scripts/tools/zap/generate.py index 8e393cf968c61c..daef29b518b926 100755 --- a/scripts/tools/zap/generate.py +++ b/scripts/tools/zap/generate.py @@ -170,6 +170,8 @@ def runJavaPrettifier(templates_file, output_dir): def main(): checkPythonVersion() + # The maximum meory usage is over 4GB (#15620) + os.environ["NODE_OPTIONS"] = "--max-old-space-size=8192" zap_file, zcl_file, templates_file, output_dir = runArgumentsParser() runGeneration(zap_file, zcl_file, templates_file, output_dir)