From 44d956770f7e9518ceedda2ee727a321840d72f1 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Mon, 16 Oct 2023 14:54:26 -0700 Subject: [PATCH] Link to Moderne CLI for memory issues (#237) Co-authored-by: Mike Sol --- 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).