Skip to content

Commit

Permalink
Link to Moderne CLI for memory issues (#237)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Sol <[email protected]>
  • Loading branch information
mike-solomon and mike-solomon authored Oct 16, 2023
1 parent 4dd3323 commit 44d9567
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand All @@ -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).
Expand Down

0 comments on commit 44d9567

Please sign in to comment.