From 4933519d552540f5307db02f0ff03932745c5358 Mon Sep 17 00:00:00 2001 From: Mike Sol Date: Mon, 16 Oct 2023 11:39:52 -0700 Subject: [PATCH] Link to Moderne CLI for memory issues --- reference/faq.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reference/faq.md b/reference/faq.md index 7d401b76df..95c076baaa 100644 --- a/reference/faq.md +++ b/reference/faq.md @@ -6,7 +6,9 @@ ## I'm getting `java.lang.OutOfMemoryError: Java heap space` when running OpenRewrite. -You can increase the size of the Java heap to see if that helps: +You can either increase the size of the Java heap or build and run recipes with the [Moderne CLI](https://docs.moderne.io/). + +**Java heap instructions** {% tabs %} {% tab title="Gradle" %} @@ -23,6 +25,10 @@ mvn rewrite:run {% endtab %} {% endtabs %} +**Moderne CLI** + +The Moderne CLI builds the LST artifacts for your repository in pieces if the repository can't fit into memory entirely. It also allows you to run recipes against multiple repositories at once. + ## My recipe appears to hang when running. What's happening? Is there a progress report? OpenRewrite is likely building up a model of your code and resolving types – this can take a while. Right now, there is not a progress report for recipe runs. However, there is a suggestion to add progress indicators that you can +1 [here](https://github.com/openrewrite/rewrite-maven-plugin/issues/544).